command get id of player help
#5

pawn Код:
if(!strcmp("/getid", cmd, true))
    {
        new string[256],tmp[256];
        new cud = 0;
        tmp = strtok(cmdtext, idx);
        if(!strlen(tmp)) return SendClientMessage(playerid, COLOR_WHITE, "( ! ) /getid <name>");
        scm(playerid,COLOR_WHITE,"( ! ) ------------------------------");
        scm(playerid,COLOR_WHITE,"( ! ) ---------List of Players------");
        scm(playerid,COLOR_WHITE,"( ! ) ------------------------------");
        for(new i=0;i<MAX_PLAYERS;i++)
        {
            if(IsPlayerConnected(i))
            {
                if(strfind(PlayerName(i), tmp, true) != -1)
                {
                    format(string,256,"( ! ) %s ID:%d",PlayerName(i),i);
                    scm(playerid,COLOR_YELLOW,string);
                    cud++;
                }
            }
        }
        if(cud == 0)
        {
            scm(playerid,COLOR_RED,"( ! ) Not found a player with that name !");
        }
        scm(playerid,COLOR_WHITE,"( ! ) ------------------------------");
        return 1;
    }
in strcmp, if you'll ask me I'll make in ZCMD
Reply


Messages In This Thread
command get id of player help - by NewbieScripter - 09.03.2013, 20:44
Re: command get id of player help - by DaRk_RaiN - 09.03.2013, 20:50
Re: command get id of player help - by NewbieScripter - 09.03.2013, 20:51
Re: command get id of player help - by DaRk_RaiN - 09.03.2013, 20:54
Re: command get id of player help - by mineralo - 09.03.2013, 21:00
Re: command get id of player help - by Hoda - 09.03.2013, 21:24
Re: command get id of player help - by Threshold - 09.03.2013, 23:26
AW: command get id of player help - by morocco - 09.03.2013, 23:44
Respuesta: command get id of player help - by JustBored - 09.03.2013, 23:53

Forum Jump:


Users browsing this thread: 3 Guest(s)