18.12.2012, 19:24
Try this:
pawn Код:
COMMAND:fp(playerid, params[])
{
new Player;
new Str[128], Name[24], Target[24];
if(!sscanf(params, "d", Target)) return SendClientMessage(playerid, 0xFF00FFFF, "USAGE: /facepalm [id]");
if(!IsPlayerConnected(Target))
SendClientMessage(playerid, 0xFFFFFFFF, "Player is not connected");
GetPlayerName(playerid, Name, 24);
GetPlayerName(PlayerId, Target, 24);
format(Str, 128, "%s facepalms towards %s", Name, Target);
SendClientMessageToAll(0xFFFFFFFF, Str);
return 1;
}