22.12.2015, 22:26
Use this.
EDIT: Fixed the pid. Forgot to add it
PHP код:
COMMAND:asay(playerid, params[])
{
if(level[playerid] != 6) return SendClientMessage(playerid,COLOR_RED,"You are not admin level 6");
new pid, towhat[64];
if(sscanf(params, "us[64]", pid, towhat)) return SendClientMessage(playerid, COLOR_RED, "Usage: /asay [PlayerID] [Text]");
new string[128];
format(string, sizeof(string), "%s", towhat);
SendClientMessage(pid,COLOR_RED, string);
return true;
}