06.02.2012, 18:00
pawn Код:
if(strcmp(cmd, "/announce", true) == 0)
{
if(pInfo[playerid][Admin] > 0)
{
tmp = strtok(cmdtext,idx), tmp2 = strtok(cmdtext,idx);
new Announce;
Announce = strval(tmp);
if(!strlen(tmp))
{
SendClientMessage(playerid, COLOR_YELLOW, "USAGE: /announce [message]");
}
else
{
format( string, sizeof(string), "%s", Announce );
GameTextForAll(string, 5000, 4 );
}
}
return 1;
}