15.08.2013, 20:34
pawn Код:
dcmd_id(playerid, params[])
{
new pid, PlayerName[MAX_PLAYER_NAME+1];
if(!IsPlayerConnected(pid)) return SendClientMessage(playerid,COLOR_RED, "Player not found.");
if(sscanf(params, "u", pid)) return SendClientMessage(playerid,COLOR_WHITE, "USAGE: /id <part of name>");
GetPlayerName(pid, PlayerName, sizeof(PlayerName));
SendClientMessage(playerid, 0xE89B5BBB, "Players found:");
format(str, sizeof(str), "> %s (ID:%d) ", PlayerName, pid );
SendClientMessage(playerid, COLOR_WHITE, str);
return 1;
}