help cmd id
#5

pawn Code:
CMD:checkphone(playerid, params[])
{
    new id,string[128],name[MAX_PLAYER_NAME];
    if(sscanf(params, "u",id)) return SendClientMessage(playerid, -1,"USE /checkphone [ID/Player name]");
    for(new i = 0; i < MAX_PLAYERS; i++)
    {
        GetPlayerName(i, name, sizeof(name));
        if(strfind(name, id, true) != -1)
        {
            format(string,sizeof(string),"Number: | %d | User: | %s |",YourPhoneNumVariable, name);
            SendClientMessage(playerid,-1,string);
        }
    }    
    return 1;
}
Untested code, but it should work. Not sure.. please fix my code if anyone see any mistake.
Reply


Messages In This Thread
help cmd id - by tooMuch - 08.02.2015, 19:37
Re: help cmd id - by Knappen - 08.02.2015, 20:47
Re: help cmd id - by Sime30 - 08.02.2015, 20:48
Re: help cmd id - by tooMuch - 09.02.2015, 10:37
Re: help cmd id - by De4dpOol - 09.02.2015, 11:12
AW: help cmd id - by Nero_3D - 09.02.2015, 11:12
Re: help cmd id - by tooMuch - 09.02.2015, 11:22
Re: help cmd id - by De4dpOol - 09.02.2015, 11:30
Re: help cmd id - by tooMuch - 09.02.2015, 11:49
Re: help cmd id - by De4dpOol - 09.02.2015, 11:57

Forum Jump:


Users browsing this thread: 1 Guest(s)