Admin CMD help
#5

Remove the line that asks if they're on admin duty...
pawn Код:
CMD:getcar(playerid, params[])
{
    // The one that was here
    if (PlayerInfo[playerid][pAdmin] >= 3)
    {
        new carid;
        if(sscanf(params, "d", carid)) return SendClientMessageEx(playerid, COLOR_WHITE, "USAGE: /getcar [carid]");
        new Float:plocx,Float:plocy,Float:plocz;

        GetPlayerPos(playerid, plocx, plocy, plocz);
        SetVehiclePos(carid,plocx,plocy+4, plocz);
        SetVehicleVirtualWorld(carid, GetPlayerVirtualWorld(playerid));
        LinkVehicleToInterior(carid, GetPlayerInterior(playerid));
    }
    else
    {
        SendClientMessageEx(playerid, COLOR_GRAD1, "You are not authorized to use that command!");
    }
    return 1;
}
Edit: Too fast for me
Reply


Messages In This Thread
Admin CMD help - by DuarteCambra - 22.03.2013, 12:26
Re: Admin CMD help - by InfiniTy. - 22.03.2013, 12:27
Re: Admin CMD help - by kristo - 22.03.2013, 12:27
Respuesta: Re: Admin CMD help - by DuarteCambra - 22.03.2013, 12:30
Re: Admin CMD help - by VitalRP - 22.03.2013, 12:34
Respuesta: Admin CMD help - by DuarteCambra - 22.03.2013, 12:40
Respuesta: Admin CMD help - by DuarteCambra - 22.03.2013, 12:52
Re: Respuesta: Admin CMD help - by InfiniTy. - 22.03.2013, 12:54
Respuesta: Re: Respuesta: Admin CMD help - by DuarteCambra - 22.03.2013, 13:05

Forum Jump:


Users browsing this thread: 1 Guest(s)