Command question.
#2

pawn Код:
CMD:ee(playerid, params[])
{
    new Float:EX,Float:EY,Float:EZ;
    if(!IsPlayerInAnyVehicle(playerid))
    if(gClass[playerid] != CLASS_PILOT) return SP COLOR_RED, "[ERROR]: You need to be a Pilot (Rank "#PILOT_RANK"); to use this command");
    {
        GetPlayerPos(playerid, EX,EY,EZ);
        SetPlayerPos(playerid, EX,EY,EZ+5);
        GivePlayerWeapon(playerid, 46, 1);
    }
        else
    {
        SP COLOR_RED, "[ERROR]: You are not in any vehicle");  
    }
    return 1;
}
Reply


Messages In This Thread
Command question. - by Strier - 31.01.2013, 20:40
Re: Command question. - by tyler12 - 31.01.2013, 20:43
Re: Command question. - by Roach_ - 31.01.2013, 21:11
AW: Re: Command question. - by Blackazur - 31.01.2013, 21:13
Respuesta: Command question. - by Strier - 31.01.2013, 21:25
Re: Command question. - by mamorunl - 31.01.2013, 21:36

Forum Jump:


Users browsing this thread: 1 Guest(s)