Quote:
Originally Posted by Mr.Anonymous
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; }
|
Doesn't work. I check this and when I type /fp it says Mexix facepalms towards Mexix (Mexix is my in game name)