Medwar Posted July 11, 2018 Share Posted July 11, 2018 (edited) Hello.... i need help. i starting scripting and i need support whit this script. function giveWeaponsOnPlayerSpawn (TheSpawnpoint, theTeam) giveWeapon (source, 26, 20) -- sawed-off and 20 ammo end addEventHandler ("onPlayerSpawn", getRootElement (), giveWeaponsOnSpawn) META: <meta> <script src="script.lua" type="server"/> <meta> ¿wich is the problem here? thanks Edited July 11, 2018 by Medwar Link to comment
Hamatora Posted July 11, 2018 Share Posted July 11, 2018 (edited) function giveWeaponsOnPlayerSpawn() giveWeapon (source, 26, 20) end addEventHandler ("onPlayerSpawn", getRootElement (), giveWeaponsOnPlayerSpawn) -- use function's name here And the meta: <meta> <script src="script.lua" type="server"/> </meta> Use '/debugscript 3' to check the errors within the script. Edited July 11, 2018 by Hamatora 1 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