#Heshan||eUNLOCK|| Posted February 15, 2018 Share Posted February 15, 2018 hellow ! i need to know how player spwan with parachute in sky like pubg player spwaning im use this for freeroam pls help me friends Link to comment
KaMi Posted February 15, 2018 Share Posted February 15, 2018 2 hours ago, #Heshan||eUNLOCK|| said: hellow ! i need to know how player spwan with parachute in sky like pubg player spwaning im use this for freeroam pls help me friends function asdd(thePlayer) giveWeapon ( thePlayer, 46, 1 ) -- This function give one parachute to player setPedWeaponSlot ( thePlayer, 11 ) --This function set the weapon slot of the player end addEventHandler( "onPlayerJoin", root, function( ) setTimer( asdd, 200, 1, source ) end) Link to comment
#Heshan||eUNLOCK|| Posted February 16, 2018 Author Share Posted February 16, 2018 19 hours ago, <~KaMiKaZe~> said: function asdd(thePlayer) giveWeapon ( thePlayer, 46, 1 ) -- This function give one parachute to player setPedWeaponSlot ( thePlayer, 11 ) --This function set the weapon slot of the player end addEventHandler( "onPlayerJoin", root, function( ) setTimer( asdd, 200, 1, source ) end) client ? or server ? but thanks a lot my chung <3 20 hours ago, <~KaMiKaZe~> said: function asdd(thePlayer) giveWeapon ( thePlayer, 46, 1 ) -- This function give one parachute to player setPedWeaponSlot ( thePlayer, 11 ) --This function set the weapon slot of the player end addEventHandler( "onPlayerJoin", root, function( ) setTimer( asdd, 200, 1, source ) end) does not work bro pls tell me how to active this ? Link to comment
MrKAREEM Posted February 16, 2018 Share Posted February 16, 2018 function Spawn() giveWeapon(source, 46, 500) -- Give Parachute end -- end The Function addEventHandler("onPlayerJoin", getRootElement(), Spawn) -- On Player Join Start Function Try This Link to comment
NeXuS™ Posted February 16, 2018 Share Posted February 16, 2018 function spawnHandler() giveWeapon(source, 46, 500) end addEventHandler("onPlayerSpawn", getRootElement(), spawnHandler) This is the right code. He needs to give them a parachute when they spawn, not when they join. Link to comment
#Heshan||eUNLOCK|| Posted February 17, 2018 Author Share Posted February 17, 2018 23 hours ago, NeXuS™ said: function spawnHandler() giveWeapon(source, 46, 500) end addEventHandler("onPlayerSpawn", getRootElement(), spawnHandler) This is the right code. He needs to give them a parachute when they spawn, not when they join. Thns bro what is the type client or server ? Link to comment
#Heshan||eUNLOCK|| Posted February 17, 2018 Author Share Posted February 17, 2018 1 hour ago, NeXuS™ said: Server. Thank you very much ? Link to comment
VenomOG Posted February 17, 2018 Share Posted February 17, 2018 Try this im new to Scripting but Wiki helpeda bit function giveWeaponsOnSpawn ( theSpawnpont, theTeam ) giveWeapon ( source, , 1 ) -- Gives the M4 weapon with 200 ammo end addEventHandler ( "onPlayerSpawn", getRootElement(), giveWeaponsOnSpawn ) -- attach the event handler 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