20.01.2013, 00:01
That would be because your command fails in quite a few ways....
This:
EDIT: Or it works, but either way, the command above is more efficient.
This:
pawn Код:
if(strcmp(cmd, "/a***f**k", true) == 0)
{
if(IsPlayerAdmin(playerid))
{
new ID = strval(tmp);
if(!strlen(tmp)) return SendClientMessage(playerid, COLOR_ORANGE, "USAGE: /analfuck [id]");
if(!IsPlayerConnected(ID)) return SendClientMessage(playerid, 0xFFFFFFFF, "Player not connected.");
new str[128],fpname[MAX_PLAYER_NAME],myname[MAX_PLAYER_NAME];
GetPlayerName(ID,fpname,sizeof(fpname));
GetPlayerName(playerid,myname,sizeof(myname));
format(str,128,"%s has taken %s's *********. He ***** them into their ****! The impact was so hard that the user died!",myname,fpname);
SetPlayerHealth(ID, 0);
SendClientMessageToAll(0xFF66FFAA,str);
}
return 1;
}