25.06.2014, 16:22
Entonces intenta con GetVehicleHealt
Pero como quieres que sea cuando se suba al auto seria algo asi
Pero como quieres que sea cuando se suba al auto seria algo asi
pawn Код:
public OnPlayerStateChange(playerid, newstate, oldstate)
{
if(PlayerVip[playerid] == 0)
{
new Float:health;
new veh = GetPlayerVehicleID(playerid);
GetVehicleHealth(veh, health);
if(health < 1000) return
SetVehicleHealth(veh, 999);
}