JasperRieken Posted January 19, 2011 Share Posted January 19, 2011 i dont know how to give everyone some weapons when they join i tryed mta wiki can't find it Link to comment
Castillo Posted January 19, 2011 Share Posted January 19, 2011 With the code below it will give the player who joined a M4 with 9999 bullets. function giveWeaponsOnJoin() giveWeapon(source,31,9999,true) end addEventHandler("onPlayerJoin",getRootElement(),giveWeaponsOnJoin) Link to comment
Discord Moderators Zango Posted January 19, 2011 Discord Moderators Share Posted January 19, 2011 rather put it on onPlayerSpawn because it might give him a weapon before he has spawned, and I don't know whether it works then. so like > onPlayerJoin add event onPlayerSpawn and remove when triggered Link to comment
Castillo Posted January 19, 2011 Share Posted January 19, 2011 i was going to do that first, but suposed was ok when join Link to comment
JasperRieken Posted January 19, 2011 Author Share Posted January 19, 2011 Join is better 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