Remote Mini Deadly Cars:Allow each player to remotly drive a minicar with vechicleguns (or whatever) once per death. That service costs X$ ofcourse. Please test that script... I didn`t check it yet.
Code:
PLAYER_PED playerx = (X.x , Y.y , Z.0) remap angle // first spawn of that player also his remap and angle
CHAR_DATA uniquenamex
COUNTER loop = 1 // basic loop
COUNTER playerxdeath = 1 // player x death counter
LEVELSTART
WHILE_EXEC ( loop = 1 )
IF (CHECK_CHARACTER_HEALTH(playerx, 0)) // checks whether the player is in game
IF (playerxdeath = 1) // checks whether the player died before
IF (LOCATE_CHARACTER_ANY_MEANS ( playerx , X.x , Y.y , Z.0 , width , height )) // place in which the player must be by car or foot (you can change ANY_MEANS to BY_FOOT or BY_CAR - but check it I don`t rly rememer )
IF (CHECK_SCORE_GREATER (playerx, cash)) // Checks player`s score
ADD_SCORE (playerx, -cash) // takes player`s
uniquenamex = CREATE_CAR ( X.x , Y.y , Z.0 ) remap angle cartype MINI_CAR END // Creates mini car in specific place. Also declares car`s remap and angle and type. If you want to have remote car (not mini) so you have to remove MINI_CAR
GIVE_WEAPON (uniquenamex , wepontype, ammount) // gives car weapon to your car
TAKE_REMOTE_CONTROL_OF_CAR (playerx, uniquenamex) // gives you power to remotly control car
SET playerxdeath = 0
ENDIF
ENDIF
ENDIF
ENDIF
IF ( HAS_CHARACTER_DIED (playerx ) ) // check whether the player has died
DELETE_ITEM ( p1g ) // if he did it script sets couter to 1
SET playerxdeath = 1
ENDIF
ENDWHILE
LEVELEND
And example:Code:
PLAYER_PED p1 = (176.5 , 147.5 , 2.0) 10 0
CAR_DATA remdem1
COUNTER loop = 1
COUNTER p1d = 0
LEVELSTART
WHILE_EXEC ( loop = 1 )
IF (CHECK_CHARACTER_HEALTH(p1, 0))
IF (p1d = 1)
IF (LOCATE_CHARACTER_ANY_MEANS ( p1 , 197.5 , 203.5 , 2.0 , 1.0 , 1.0 ))
IF (CHECK_SCORE_GREATER (p1, 5999))
ADD_SCORE (p1, -6000)
remdem1 = CREATE_CAR ( 169.5 , 155.5 , 2.0 ) 2 180 ISETTA MINI_CAR END
GIVE_WEAPON (remdem1, CAR_MACHINE_GUN, 50)
TAKE_REMOTE_CONTROL_OF_CAR (p1, remdem1)
SET p1d = 0
ENDIF
ENDIF
ENDIF
ENDIF
IF ( HAS_CHARACTER_DIED ( p1 ) )
SET p1d = 1
ENDIF
ENDWHILE
LEVELEND