20.07.2011, 19:04
pawn Код:
public FixAllCar()
{
for(new playerid = 0; playerid < MAX_PLAYERS; playerid++)
{
if(IsPlayerVipType(playerid,3))
{
if(IsPlayerConnected(playerid) && IsPlayerInAnyVehicle(playerid))
{
new vehicleid = GetPlayerVehicleID(playerid);// gettin the vehicle id
SetVehicleHealth(vehicleid,1000.0);// set the vehicle healt
}
}
}
return 1;//You dont need it but you can use it
}
[EDIT]I late