Strcmp > DCMD [+REP!] Fast Please
#6

Here's the zcmd one:

pawn Код:
CMD:id(playerid, params[])
{
        if(IsPlayerConnected(playerid))
        {
            tmp = strtok(params, idx);
            if(!strlen(tmp))
            {
                SendClientMessage(playerid, COLOR_WHITE, "USAGE: /id [playerid/PartOfName]");
                return 1;
            }
            giveplayerid = ReturnUser(tmp);
            if(IsPlayerConnected(giveplayerid))
            {
                if(giveplayerid != INVALID_PLAYER_ID)
                {
                    GetPlayerNameEx(giveplayerid, giveplayer, sizeof(giveplayer));
                    format(string, sizeof(string), "Name: %s, ID: %d", giveplayer, giveplayerid);
                    SendClientMessage(playerid, COLOR_GRAD1, string);
                }
            }
            else
            {
                format(string, sizeof(string), "   %d is not an active player !", giveplayerid);
                SendClientMessage(playerid, COLOR_GRAD1, string);
            }
        }
        return 1;
}
Reply


Messages In This Thread
Strcmp > DCMD [+REP!] Fast Please - by Aira - 19.03.2012, 10:35
Re: Strcmp > DCMD [+REP!] Fast Please - by Mark™ - 19.03.2012, 10:39
Re: Strcmp > DCMD [+REP!] Fast Please - by Aira - 19.03.2012, 10:42
Re: Strcmp > DCMD [+REP!] Fast Please - by Mark™ - 19.03.2012, 10:44
Re: Strcmp > DCMD [+REP!] Fast Please - by Aira - 19.03.2012, 10:46
Re: Strcmp > DCMD [+REP!] Fast Please - by Mark™ - 19.03.2012, 10:47
Re: Strcmp > DCMD [+REP!] Fast Please - by Dripac - 19.03.2012, 11:02
Re: Strcmp > DCMD [+REP!] Fast Please - by Mark™ - 19.03.2012, 11:05

Forum Jump:


Users browsing this thread: 2 Guest(s)