modified killcam help
I found a copy of Take13's killcam and tried to modify it so it'd only take a screenshot when someone makes a kill, once.
I wanted to be able to type into the console, amx_ss <player>, and have it disabled after they make a kill. This is like the 4th hack into the code I did, the first hack worked out really well for me, when I loaded it onto my listen server, and amx_ss'd myself and got a couple screenshots, the results were as I expected. However, when I uploaded it to the pub server, it wouldn't work, something about the id being 0 (further investigation indicates an index of 0 when using set_user_info is the server itself), which is clearly not the result I wanted. I did some looking at some other code and tried to mash some codes together to make things work, but alas, no matter what I throw at the script, it keeps returning 0, and causing a runtime error on the script. Code:
#include <amxmodx>lailoken |
Re: modified killcam help
instead of using user_info, you should just make a global array (ex. bool:KillCam[33]) and use that instead. (there are problems with user_info)
|
Re: modified killcam help
I'm not even sure how to go about doing that.
This pretty much is my experience with pawn. My only other experience with pawn is modifying some runes for runemod 2 (more or less changing certain values, hehe) Other than that, my coding experience is pretty much limited to mIRC scripts, php, some visual basic (pre- .net) and some C (took a class, can't remember much of it...) Maybe an example line involving that Bool::KillCam[33] so I can try? lailoken |
Re: modified killcam help
If you took a class in C you should remeber what a global variable is or if you don't you should read the basic tutorials for AMXX.
Code:
|
Re: modified killcam help
Code:
//set_user_info (player, "killcam", "on") |
| All times are GMT -4. The time now is 04:52. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.