PaulDK Posted June 23, 2014 Share Posted June 23, 2014 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 Citizen Posted June 23, 2014 Moderators Share Posted June 23, 2014 (edited) 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 June 24, 2014 by Guest Link to comment
Castillo Posted June 24, 2014 Share Posted June 24, 2014 There's no such function "getPlayerFromId". Link to comment
Moderators Citizen Posted June 24, 2014 Moderators Share Posted June 24, 2014 There's no such function "getPlayerFromId". oh yeah, this is coming from my GM, my bad, I meant getElementByID Link to comment
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now