18.12.2010, 03:24
I fail at "GetPlayerName" =/
How to "Get my name" and get the "Other Player name"?
Name1 has been banned by Name2
Name1 = The player who get banned
Name2 = The player who ban him
How to "Get my name" and get the "Other Player name"?
pawn Код:
new name[MAX_PLAYER_NAME], string[44];
GetPlayerName(playerid, name, sizeof(name));
format(string, sizeof(string), "%s(%d) has been banned by %s(%d).",name(playerid), playerid, name(targetid), playerid);
SendClientMessageToAll(0xFFFF00AA, string);
Name1 = The player who get banned
Name2 = The player who ban him