Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public autofahrzeugheiler()
- {
- if(isPlayerAnAdmin(playerid,4))
- {
- for (new i = 0; i < MAX_PLAYERS; i++)
- {
- if(IsPlayerConnected(i))
- {
- new Float:health, auto;
- if (IsPlayerInAnyVehicle(i))
- {
- auto = GetPlayerVehicleID(i);
- GetVehicleHealth(auto, health);
- if (health < 1000)
- {
- SetVehicleHealth(auto, 1000);
- RepairVehicle(auto);
- }
- }
- }
- }
- }
- return 1;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement