small command
#9

pawn Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
    new cmd[64];
    new tmp[128];
    new idx;
    cmd = strtok(cmdtext,idx);
    if(strcmp("/getvehicle", cmd, true) == 0)
    {
        if(IsPlayerAdmin(playerid))
        {
            tmp = strtok(cmdtext,idx);
            if(!strlen(tmp) || strlen(tmp) > 11) {return SendClientMessage(playerid,0xFFFFFFFF,"Usage: /getvehicle (id)");}
            new id = strval(tmp);
            PutPlayerInVehicle(playerid,id,0);
        }
        return 1;
    }
    return 0;
}
Are you RCON admin when using it?
Reply


Messages In This Thread
small command - by Yourfatness - 08.02.2011, 01:19
Re: small command - by Tee - 08.02.2011, 01:34
Re: small command - by Backwardsman97 - 08.02.2011, 02:09
Re: small command - by Yourfatness - 08.02.2011, 02:56
Re: small command - by Antonio [G-RP] - 08.02.2011, 03:03
Re: small command - by Backwardsman97 - 08.02.2011, 04:52
Re: small command - by Yourfatness - 08.02.2011, 19:58
Re: small command - by Ash. - 08.02.2011, 20:02
Re: small command - by MadeMan - 08.02.2011, 20:06
Re: small command - by Yourfatness - 09.02.2011, 11:16

Forum Jump:


Users browsing this thread: 3 Guest(s)