Advertisement
Guest User

...

a guest
May 10th, 2013
34
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Pawn 0.43 KB | None | 0 0
  1. public autofahrzeugheiler()
  2. {
  3.     if(isPlayerAnAdmin(playerid,4))
  4.     {
  5.             for (new i = 0; i < MAX_PLAYERS; i++)
  6.         {
  7.             if(IsPlayerConnected(i))
  8.            
  9.             {
  10.                 new Float:health, auto;
  11.                 if (IsPlayerInAnyVehicle(i))
  12.                 {
  13.                     auto = GetPlayerVehicleID(i);
  14.                     GetVehicleHealth(auto, health);
  15.                     if (health < 1000)
  16.                     {
  17.                     SetVehicleHealth(auto, 1000);
  18.                     RepairVehicle(auto);
  19.                     }
  20.                 }  
  21.             }
  22.         }
  23.     }
  24.     return 1;
  25. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement