09.03.2011, 17:28
hey friends i have these auto repair filterscripts... :-
but this is only for defined area only.....and i have one more auto repair fs....but that is only for admin....i want to both in 1 fs....please help....work in area only for players and for admins enywhere i mean...
pawn Код:
public AutoR()
{
for(new playerid=0; playerid<MAX_PLAYERS; playerid++)
{
if(IsPlayerConnected(playerid))
if(PlayerToPoint(2500, playerid, 563.4977,2079.7036,50.0636))//Full Lv
{
new Float:health, cid;
if (IsPlayerInAnyVehicle(playerid))
{
cid = GetPlayerVehicleID(playerid);
GetVehicleHealth(cid, health);
if (health < 300)
{
SetVehicleHealth(cid,1000);
GameTextForPlayer(playerid, "Vehicle Repaired!",2000,5);
}
}
}
}
return 1;
}