15.07.2010, 19:48
Like spawn a car using /v only on world 1 but it will not apply on world 0, how can i do that? also can you please tell me how to auto repair a vehicle on certain world like autorepair on world 1 only?
new vw = GetPlayerVirtualWorld(playerid); //create vehicle SetVehicleVirtualWorld(vehicleid,vw);
public OnPlayerUpdate(playerid)
{
new Float:health;
new veh;
veh = GetPlayerVehicleID(playerid);
GetVehicleHealth(veh, health);
if(IsPlayerInAnyVehicle(playerid) && GetPlayerState(playerid) == PLAYER_STATE_DRIVER)
{
RepairVehicle(GetPlayerVehicleID(playerid));
}
return 1;
}