15.08.2013, 19:39
Hello i have one problem when i make command /id and playername he tell just my self dont work for other player here its code
Thanks
pawn Код:
dcmd_id(playerid, params[])
{
new pid,PlayerName[MAX_PLAYER_NAME];
GetPlayerName(playerid, PlayerName, MAX_PLAYER_NAME);
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>");
SendClientMessage(playerid, 0xE89B5BBB, "Players found:");
format(str, sizeof(str), "> %s (ID:%d) ",PlayerName[pid] ,pid );
SendClientMessage(playerid, COLOR_WHITE, str);
return 1;
}