16.12.2011, 05:53
pawn Код:
public repair(playerid)
{
new Float:x, Float:y, Float:z;
new vehicleid = GetPlayerVehicleID(playerid);
GetPlayerPos(playerid, x, y, z);
for(new i = 0; i < MAX_PLAYERS;i++)
{
if(IsPlayerInVehicle(i, vehicleid))
{
if(IsPlayerInRangeOfPoint(i, 650.0, -1171.4510, -226.3357, 14.1484))
{
SetVehicleHealth(vehicleid, 1000.0);
}
if(IsPlayerInRangeOfPoint(i, 150.0, 1977.5227, -2352.5647, 13.1115))
{
SetVehicleHealth(vehicleid, 1000.0);
}
if(IsPlayerInRangeOfPoint(i, 150.0, 1757.5624, -2536.8030, 13.1132))
{
SetVehicleHealth(vehicleid, 1000.0);
}
if(IsPlayerInRangeOfPoint(i, 150.0, 1972.2734, -2527.6707, 13.1140))
{
SetVehicleHealth(vehicleid, 1000.0);
}
if(IsPlayerInRangeOfPoint(i, 150.0, 1490.7642, -2510.8005, 13.1258))
{
SetVehicleHealth(vehicleid, 1000.0);
}
if(IsPlayerInRangeOfPoint(i, 100.0, 1724.5593, -2275.1589, 61.8035))
{
SetVehicleHealth(vehicleid, 1000.0);
}
}
}
return 1;
}
