17.05.2013, 12:48
It fires up the vehicle. I don't have any idea what's wrong.
pawn Код:
if(!strcmp(cmd, "/fix",true))
{
if(PlayerInfo[playerid][AdminLevel] >= 3)
{
new Float:health, vehicleid =GetPlayerVehicleID(playerid);
GetVehicleHealth(vehicleid, health);
if(!IsPlayerInAnyVehicle(playerid)) return SendClientMessage(playerid,COLOR_GREY,"You have to be in a vehicle in order to repair.");
SetVehicleHealth(vehicleid, 100);
GameTextForPlayer(playerid, "Vehicle repaired", 1000, 5);
}
else return 0;
return 1;
}