17.06.2012, 01:19
Try My Cmd
pawn Код:
CMD:achat(playerid, params[])
{
new Text[128];
new string[140];
new n[MAX_PLAYER_NAME];
GetPlayerName(playerid,n,sizeof(n));
if(PInfo[playerid][Level] < 3) return SendClientMessage(playerid,0xFF8000C8,"You need to be level 3 to use this command!");
if(sscanf(params,"s[128]",Text)) return SendClientMessage(playerid,0xFF0000C8,"USAGE:/Say [Text]");
format(string,sizeof(string),"{FF0000}[Admin:%s]:{00FF00}%s",n,Text);
SendClientMessageToAll(0xFF8000C8, string);
return 1;
}