i'm trying to make a way to spawn items (in this case, a smoke grenade) on the player after getting 300 points.
Here is my script:
I already added a way to show how many points do you have in that life (thanks Yates for helping me with that),
for example, if you kill an enemy, you get 100 points. or if you capture a flag in DOM gamemode, you get 100 points.
The "pon" is how many points do you have now.
Now the problem (line 10 to line 15):
I tried to create a way to spawn a Smoke grenade after getting 300 points. But I had no ideia on what addhook to use, I tried the ms100, since it's gonna check 10 times in 1 second, but there is no id parameter. So I'm using the "move".
The line 13 is the code that should spawn the item, but it's not working.
Also, there is an error on the console: LUA ERROR: sys/lua/autorun/ks.lua:13: ')' expected near '...'
So guys, please help me to fix that.
Thank you for helping me.