What's wrong with my code?
hello all, second post, woot!
anywho i have aproblem here, i've been doing alot of tweaking with other ppl's scripts and learning quite a bit, however i've been trying to add a restrict feature to the bazooka mod plugin by More. so far i've managed to get this Code:
public forward_playerprethink(id) {It seems logically sound and compiles without any errors but it just simply doesn't work. here's his post if you want the plugin: http://forums.alliedmods.net/showthread.php?p=72047 on a side note i think the cvar only takes effect if it was set before the server was created. i want to be able to turn it on and off in realtime. another side note, i asked a while ago if he could make an amx_bazooka_give function for that plugin, well... i don't need it now, i already did it :P not bad for my first week of scripting eh? |
Code:
|
okay i'll try that later tonight... i don't have time to test it right now..
Progress: I just finished putting team colors on the smoke trails the rockets make, andi changed the sounds a tiny bit, plus lots of other tweaks and fun stuffs. later all |
v3x, my guess is that forward_playerprethink is a FM hook, though I don't know why you wouldn't use client_PreThink.
|
I was thinking that as well, but was too lazy to find out :)
|
yeah, well the code isn't mine, i'm just modifying it so i can learn how things work :P
I tested the code last night and it works perfectly, i just had to modify a few more things so it didn't always say "switched to heat-seeking mode" when the other modes were restricted. thx for your help guys |
| All times are GMT -4. The time now is 23:43. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.