disable /fix command in certain area.
#7

pawn Код:
new IsAtDM[MAX_PLAYERS]; // at the top of script.
IsAtDM[playerid] = 1; // the command or function when players get in the DM zone
dcmd_fix(playerid, params[])
{
    #pragma unused params
    if(IsAtDM[playerid] == 1) return SendClientMessage(playerid, COLOR_WHITE, "Cant use in a DM zone!");
    if(!IsPlayerInAnyVehicle(playerid)) return SendClientMessage(playerid, COLOR_WHITE, "You are not in a vehicle!");
    RepairVehicle(GetPlayerVehicleID(playerid));
    SendClientMessage(playerid, COLOR_WHITE, "Your vehicle has been successfully repaired!");
    return 1;
}
Aint that hard bro.
Reply


Messages In This Thread
disable /fix command in certain area. - by Gemini - 13.09.2011, 18:24
Re: disable /fix command in certain area. - by Wesley221 - 13.09.2011, 18:27
Re: disable /fix command in certain area. - by =WoR=Varth - 13.09.2011, 18:36
Re: disable /fix command in certain area. - by Gemini - 13.09.2011, 19:40
Re: disable /fix command in certain area. - by Gemini - 13.09.2011, 19:45
Re: disable /fix command in certain area. - by [MWR]Blood - 13.09.2011, 19:46
Re: disable /fix command in certain area. - by Marricio - 13.09.2011, 19:46

Forum Jump:


Users browsing this thread: 1 Guest(s)