16.12.2013, 02:47
pawn Код:
CMD:getid(playerid, params[])
{
new str[1000], targetid, Name[MAX_PLAYER_NAME];
if(sscanf(params, "u", targetid))
{
return 1;
}
if(!IsPlayerConnected(targetid)) return SendClientMessage(playerid, COLOR_RED, "[ERROR]{FFFFFF} Player not connected");
{
GetPlayerName(targetid, Name1, sizeof(Name1));
format(str, sizeof(str), "%s ID is: %d", Name1, targetid, str2);
SendClientMessage(playerid, FF0066, str);
}
return 1;
}