07.06.2012, 10:38
How to Block Vehicle Repair In Derby Area?
I used this:
but the problem is even i press any key out of Derby or DM.. it gives me that Message.. 'Use /exitdm before you can Fix your Veh' and nothing happenes.
I used this:
pawn Код:
if(PRESSED(KEY_SUBMISSION))
{
new vehicleid = GetPlayerVehicleID(playerid);
if(IsPlayerInVehicle(playerid, vehicleid) || IsPlayerInDM[playerid] == 0)
{
SetVehicleHealth(vehicleid,1000.0);
RepairVehicle(GetPlayerVehicleID(playerid));
PlayerPlaySound(playerid, 1133, 0.0, 0.0, 0.0);
}
}
else return SendClientMessage(playerid, COLOR_RED,"Use /exitdm before you can Fix your Vehicle!");
return 1;
}