28.02.2013, 17:48
pawn Код:
CMD:findid(playerid, params[])
{
new giveplayerid, giveplayer[MAX_PLAYER_NAME], string[256];
if(sscanf(params, "u", giveplayerid)) return SCM(playerid, COLOR_GREY, "USAGE: /findid [playername]");
GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer));
for(new i = 0; i < MAX_PLAYERS; i++)
{
format(string, sizeof(string), "Player Name: %s (Player-ID: %d).", giveplayer, i);
SCM(playerid, COLOR_LIGHTRED, string);
}
return 1;
}