RCON only
#2

pawn Код:
COMMAND:repair(playerid, params[])
    {
        if(!IsPlayerAdmin(playerid)) return SendClientMessage(playerid, 0xFFFFFFFF, "You are not logged in as RCON ADMIN!");
        if(!IsPlayerInAnyVehicle(playerid)) return SendClientMessage(playerid, 0xFFFFFFFF, "You are not in a vehicle!");
        RepairVehicle(GetPlayerVehicleID(playerid));
        SendClientMessage(playerid, 0xFFFFFFFF, "Your vehicle has been successfully repaired!");
        return 1;
    }
You should use IsPlayerAdmin to make it only for RCON admin. Use the above code which I made, check if it works, was a fast one anyway :P

-FalconX
Reply


Messages In This Thread
RCON only - by rpx - 01.03.2012, 13:39
Re: RCON only - by FalconX - 01.03.2012, 13:46
Re: RCON only - by rpx - 01.03.2012, 13:53
Re: RCON only - by Ballu Miaa - 01.03.2012, 13:54
Re: RCON only - by Vasu99 - 01.03.2012, 13:57
Re: RCON only - by FalconX - 01.03.2012, 13:57
Re: RCON only - by rpx - 01.03.2012, 14:04
Re: RCON only - by FalconX - 01.03.2012, 14:06
Re: RCON only - by Vasu99 - 01.03.2012, 14:21
Re: RCON only - by FalconX - 01.03.2012, 14:40

Forum Jump:


Users browsing this thread: 2 Guest(s)