Code
public OnPlayerCommandText(playerid, cmdtext[])
{
new name[256];
new string[256];
if (strcmp("/bb", cmdtext, true, 10) == 0)
{
GetPlayerName(playerid,name,24);
format(string,sizeof(string),".::%d Прощается со всеми!:.",name);
SendClientMessageToAll(0xAAFF00FF,string);
return 1;
}
if (strcmp("/hello", cmdtext, true, 10) == 0)
{
GetPlayerName(playerid,name,24);
format(string,sizeof(string),".::%d Здароваетс со всеми!:.",name);
SendClientMessageToAll(0xAAFF00FF,string);
return 1;
}
if (strcmp("/day", cmdtext, true, 10) == 0)
{
GetPlayerName(playerid,name,24);
format(string,sizeof(string),".::%d Желает всем приятного дня!:.",name);
SendClientMessageToAll(0xAAFF00FF,string);
return 1;
}
if (strcmp("/evening", cmdtext, true, 10) == 0)
{
GetPlayerName(playerid,name,24);
format(string,sizeof(string),".::%d Желает всем доброго вечера!:.",name);
SendClientMessageToAll(0xAAFF00FF,string);
return 1;
}
return 0;
}