commands for admin?
#1

Hi all,how to set this 2 commands only for rcon admins?

Код:
   if (strcmp("/fix", cmdtext, true) == 0 || strcmp("/vrepair", cmdtext, true) == 0) if(GetPlayerState(playerid)-1) return RepairVehicle(GetPlayerVehicleID(playerid)),ChangeVehicleColor(GetPlayerVehicleID(playerid),random(126),random(126)), SendClientMessage(playerid, 0xAAFFCC33, "Vehicle colored & repaired!"); else return SendClientMessage(playerid, 0xFF9933AA, "You have to be a driver in a vehicle!");
Код:
if(!strcmp(cmd, "/nos", true))
    {
        if(IsPlayerInInvalidNosVehicle(playerid, GetPlayerVehicleID(playerid))) return SendClientMessage(playerid, COLOR_RED, "This car can't have NOS!");
        if(!IsPlayerInAnyVehicle(playerid)) return SendClientMessage(playerid, COLOR_ORANGE, "You need to be inside a vehicle to do this!");
        AddVehicleComponent(GetPlayerVehicleID(playerid), 1010);
        GivePlayerMoney(playerid, -2500);
        PlayerPlaySound(playerid,1133,0.0,0.0,0.0);
        return true;
    }
Thanks
Reply


Messages In This Thread
commands for admin? - by Face9000 - 20.09.2010, 12:58
Re: commands for admin? - by James124 - 20.09.2010, 13:13
Re: commands for admin? - by Mauzen - 20.09.2010, 13:14
Re: commands for admin? - by BO$$ - 23.10.2010, 11:53
Respuesta: commands for admin? - by The_Moddler - 23.10.2010, 12:05
Re: commands for admin? - by [NoV]LaZ - 23.10.2010, 12:07
Re: Respuesta: commands for admin? - by pushingmyluck - 23.10.2010, 12:11
Respuesta: commands for admin? - by [NoV]LaZ - 23.10.2010, 12:19
AW: commands for admin? - by Saitecx - 23.10.2010, 12:23
Re: Respuesta: commands for admin? - by pushingmyluck - 23.10.2010, 14:34

Forum Jump:


Users browsing this thread: 1 Guest(s)