dont work
#4

pawn Код:
dcmd_id(playerid, params[])
{
    new pid,PlayerName[MAX_PLAYERS][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:%i) ",PlayerName[pid] ,pid );
    SendClientMessage(playerid, COLOR_WHITE, str);
    return 1;
}
Try this.
Reply


Messages In This Thread
dont work - by ScRipTeRi - 15.08.2013, 10:29
Re: dont work - by ScRipTeRi - 15.08.2013, 11:12
Re: dont work - by -Prodigy- - 15.08.2013, 11:24
Re: dont work - by Sanady - 15.08.2013, 11:25
Re: dont work - by ScRipTeRi - 15.08.2013, 12:37
Re: dont work - by Sanady - 15.08.2013, 13:37

Forum Jump:


Users browsing this thread: 1 Guest(s)