05.08.2011, 12:10
3438-3855
forward RandMessagesx();
public RandomMessage()
{
TextDrawSetString(ShadowsRandom, RandomMessages[random(sizeof(RandomMessages))]);
return 1;
}
forward AutoRepair(playerid,vehicleid);
public AutoRepair(playerid,vehicleid)
if (IsPlayerInAnyVehicle(playerid))
{
new Float:health;
GetVehicleHealth(vehicleid, health);
if (health < 950)
{
RepairVehicle(vehicleid);
SetVehicleHealth(vehicleid, 1000);
}
}
forward RandMessagesx();
public RandomMessage()
{
TextDrawSetString(ShadowsRandom, RandomMessages[random(sizeof(RandomMessages))]);
return 1;
}
forward AutoRepair(playerid,vehicleid);
public AutoRepair(playerid,vehicleid)
if (IsPlayerInAnyVehicle(playerid))
{
new Float:health;
GetVehicleHealth(vehicleid, health);
if (health < 950)
{
RepairVehicle(vehicleid);
SetVehicleHealth(vehicleid, 1000);
}
}