15.08.2013, 10:29
Hello i crate one command /id but when i make it to other player say just my name and when make other player tell just your self how to make it for can see and other player?
Thank you.
pawn Код:
dcmd_id(playerid, params[])
{
new pid,PlayerName[MAX_PLAYER_NAME];
GetPlayerName(playerid, PlayerName, MAX_PLAYER_NAME);
if(sscanf(params, "u", pid)) return SendClientMessage(playerid,COLOR_WHITE, "USAGE: /id <part of name>");
if(!IsPlayerConnected(pid)) return SendClientMessage(playerid,COLOR_RED, "Player not found.");
SendClientMessage(playerid, 0xE89B5BBB, "Players found:");
format(str, sizeof(str), "> %s (ID:%d) ",PlayerName ,pid );
SendClientMessage(playerid, COLOR_WHITE, str);
return 1;
}