Posts: 1,830
Threads: 104
Joined: Jan 2011
Reputation:
46
Why make a new function for 3 lines? Not needed. Also you don't need to thread it, it won't matter when making a small mod but it will when making something big.
Posts: 184
Threads: 11
Joined: May 2011
Reputation:
1
Go into blackops/players/mods/mp_yourmod/config_mp.cfg
Open it and at the bottom add
seta developer "1"
seta debug_script "1"
at the bottom of it. Then close it, right click on it and make it `read only`.
Now try running your mod again and it will give you more specific errors.
Posts: 2,992
Threads: 55
Joined: Feb 2011
Reputation:
114
you can't give XP in blops
Posts: 2,992
Threads: 55
Joined: Feb 2011
Reputation:
114
copy the function giveminigun(), and call it at onplayerspawned exactly as in the code