Jump to content

Duel [help]


PaulDK

Recommended Posts

hey guys i want to create Duel Script .

that 2 people fight in 1 arenas but i need 4 arenas .

if you type /duel [ name or id ] [ place ] please help me .

then give weapons if 1 player die 2 will spawn in the SpawnLocations .

if the player 1 quit or player 2 quit all will back to position . :?:

HELP ME PLEASE SOMEBODY .

Link to comment
  • Moderators

This is not a place to make requests for scripts. We can only help you to achieve this.

addCommandHandler 
getPlayerFromName 
-- getPlayerFromId --EDIT: 
getElementByID 
getElementPosition 
setElementData --to store some datas "in" a player, like it's original position and a state that will let you know he is in duel. 
setElementPosition -- to teleport them 
setElementDimension -- (optional) to "teleport" them in another dimensions so no one can see/kill/be killed by them. 
getPedWeapon --in a loop to get all weapon the player currently has 
getPedTotalAmmo --in the same loop to get the ammo for that weapon 
takeAllWeapons --to remove all weapons for a player 
giveWeapon -- to give the weapons for the duel 
  
onPlayerWasted 
onPlayerQuit 
getElementData --to get the datas we stored "in" the players earlier 

Come back with some code if you can't get it to work.

Edited by Guest
Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...