/*                                                                                                  
                                        Oilrig - MAIN SKRIPT                                        
                                                                                                    
                                       (c)2011 by JohnTooray                                        
                                          one_end studios                                           
                                                                                                    
      This script is using code snippets and ideas made by members of the gtamp.com board and       
   projectcerbera.com. You can use parts of my code - if you want. Maybe credit me - if you want.   
                                                                                                  */

/*                                                                                                  
                                      DEKLARIERUNGEN                                                
                                                                                                  */
//{
//{-------------- Generelles ---------------\\
//{ Spieler
PLAYER_PED player1 = (111.5, 137.5, 5.0) 7 0
PLAYER_PED player2 = (119.5, 148.5, 5.0) 10 270
PLAYER_PED player3 = (108.5, 149.5, 255.0) 11 90
PLAYER_PED player4 = (120.5, 137.5, 4.0) 9 315
PLAYER_PED player5 = (112.5, 146.4, 3.0) 13 180
PLAYER_PED player6 = (116.9, 135.0, 255.0) 8 270 // }
//{ Counter
COUNTER loop = 1//}
//{ Feuer
OBJ_DATA fire1 = (114.8, 143.3, 7.0) 0 FIRE
OBJ_DATA fire2 = (114.6, 143.3, 7.0) 0 FIRE
OBJ_DATA fire3 = (114.6, 143.4, 7.0) 0 FIRE
OBJ_DATA fire4 = (114.7, 143.2, 7.0) 0 FIRE
OBJ_DATA fire5 = (114.9, 143.3, 7.0) 0 FIRE
OBJ_DATA fire6 = (114.9, 143.1, 7.0) 0 FIRE
OBJ_DATA fire7 = (115.0, 143.2, 7.0) 0 FIRE
OBJ_DATA fire8 = (115.1, 143.1, 7.0) 0 FIRE // }
//}
//{-------------- Power-Ups ---------------\\
//{ Double Damage
GENERATOR dd1 = (120.5, 137.5) 0 COLLECT_35 500 500 1 // }
//{ Fast Reload
GENERATOR fr1 = (113.5, 143.5) 0 COLLECT_36 500 500 1 // }
//{ Armor
GENERATOR kev1 = (110.5, 144.0) 0 COLLECT_31 500 500 1 // }
//{ Health
GENERATOR h1 = (106.5, 146.5) 0 COLLECT_30 500 500 1
GENERATOR h2 = (121.5, 146.5) 0 COLLECT_30 500 500 1 // }
//}
//{----------------- Kran ------------------\\
CRANE_DATA kran = (115.5, 138.5) 178 NO_HOMECRANE
//}
/*                                                                                                */
                                          LEVELSTART /*                                           */
/*                                                                                                */
//{ Generelle Einstellungen
SET_SHADING_LEVEL ( 23 )
SET_AMBIENT_LEVEL ( 0.3 , 0 )
DECLARE_POLICELEVEL (0) //}
//{ Power Ups aktivieren
SWITCH_GENERATOR (dd1, ON)
SWITCH_GENERATOR (fr1, ON)
SWITCH_GENERATOR (kev1, ON)
SWITCH_GENERATOR (h1, ON)
SWITCH_GENERATOR (h2, ON) //}
/*                                                                                                LL
                                       WHILE_EXEC LOOP                                              
LL                                                                                                */
WHILE_EXEC (loop = 1)
//{ Unendlich Standard-Waffen - by Ben'Cerbera'Millard & Pyro
 IF (CHECK_CHARACTER_HEALTH (player1, 0))
  GIVE_WEAPON (player1,     MACHINE_GUN, 99)
  GIVE_WEAPON (player1, ROCKET_LAUNCHER, 99)
  GIVE_WEAPON (player1,   FLAME_THROWER, 99)
  GIVE_WEAPON (player1,         MOLOTOV, 99)
 ENDIF
 IF (CHECK_CHARACTER_HEALTH (player2, 0))
  GIVE_WEAPON (player2,     MACHINE_GUN, 99)
  GIVE_WEAPON (player2, ROCKET_LAUNCHER, 99)
  GIVE_WEAPON (player2,   FLAME_THROWER, 99)
  GIVE_WEAPON (player2,         MOLOTOV, 99)
 ENDIF
 IF (CHECK_CHARACTER_HEALTH (player3, 0))
  GIVE_WEAPON (player3,     MACHINE_GUN, 99)
  GIVE_WEAPON (player3, ROCKET_LAUNCHER, 99)
  GIVE_WEAPON (player3,   FLAME_THROWER, 99)
  GIVE_WEAPON (player3,         MOLOTOV, 99)
 ENDIF
 IF (CHECK_CHARACTER_HEALTH (player4, 0))
  GIVE_WEAPON (player4,     MACHINE_GUN, 99)
  GIVE_WEAPON (player4, ROCKET_LAUNCHER, 99)
  GIVE_WEAPON (player4,   FLAME_THROWER, 99)
  GIVE_WEAPON (player4,         MOLOTOV, 99)
 ENDIF
 IF (CHECK_CHARACTER_HEALTH (player5, 0))
  GIVE_WEAPON (player5,     MACHINE_GUN, 99)
  GIVE_WEAPON (player5, ROCKET_LAUNCHER, 99)
  GIVE_WEAPON (player5,   FLAME_THROWER, 99)
  GIVE_WEAPON (player5,         MOLOTOV, 99)
 ENDIF
 IF (CHECK_CHARACTER_HEALTH (player6, 0))
  GIVE_WEAPON (player6,     MACHINE_GUN, 99)
  GIVE_WEAPON (player6, ROCKET_LAUNCHER, 99)
  GIVE_WEAPON (player6,   FLAME_THROWER, 99)
  GIVE_WEAPON (player6,         MOLOTOV, 99)
 ENDIF
 //}
ENDWHILE
LEVELEND
