05.08.2011, 12:13
pawn Код:
forward RandMessagesx();
public RandomMessage()
{
TextDrawSetString(ShadowsRandom, RandomMessages[random(sizeof(RandomMessages))]);
return true;
}
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);
}
}
return true;
}