19.07.2010, 14:43
Yea I put it return 0; somewhere
for the auto repair only on world 1 but i didnt think that it will mess up the other woorlds
pawn Код:
public OnPlayerUpdate(playerid)
{
if(GetPlayerVirtualWorld(playerid)!=1)return 0;
new Float:health;
new veh;
veh = GetPlayerVehicleID(playerid);
GetVehicleHealth(veh, health);
if(IsPlayerInAnyVehicle(playerid) && GetPlayerState(playerid) == PLAYER_STATE_DRIVER)
{
RepairVehicle(GetPlayerVehicleID(playerid));
}
return 1;
}