Raised This Month: $ Target: $400
 0% 

Automatic nightvision


Post New Thread Reply   
 
Thread Tools Display Modes
JohnTheTech
Junior Member
Join Date: Jul 2004
Location: Seattle, Washington
Old 07-22-2004 , 22:32  
Reply With Quote #11

Ok ill give this one a shot... thanks ill post agian with the results
JohnTheTech is offline
Send a message via AIM to JohnTheTech Send a message via MSN to JohnTheTech
JohnTheTech
Junior Member
Join Date: Jul 2004
Location: Seattle, Washington
Old 07-22-2004 , 23:01  
Reply With Quote #12

Well no luck again.. compiled it installed it no problem.. but when the server starts it runs tell someone connects then the server crashes and i get this console erorr

./hlds_run: line 423: 14295 Segmentation fault $HL_CMD

i remove the plugin and no problem
JohnTheTech is offline
Send a message via AIM to JohnTheTech Send a message via MSN to JohnTheTech
jtp10181
Veteran Member
Join Date: May 2004
Location: Madison, WI
Old 07-22-2004 , 23:31  
Reply With Quote #13

you cannot give them NVG when they have not joined a team yet and are not alive.

catch the reset hud event and give players the NVG on a respawn, that should work.
__________________
jtp10181 is offline
Send a message via ICQ to jtp10181 Send a message via AIM to jtp10181 Send a message via MSN to jtp10181 Send a message via Yahoo to jtp10181
kusumuck
New Member
Join Date: Feb 2005
Old 02-24-2005 , 22:42  
Reply With Quote #14

Bumping this topic back up.... I want to know how to do the same thing but no one ever finished the code so it will work. Thanks.
kusumuck is offline
Votorx
Senior Member
Join Date: Jun 2004
Old 02-25-2005 , 07:12  
Reply With Quote #15

Code:
#include <amxmodx> #include <cstrike> public plugin_init() {     register_plugin("FreeNightvision","1.0","Votorx/Pherexia") } public pfn_spawn(id) {         if(is_user_connected(id)){                 cs_set_user_nvg(id,1)         } return PLUGIN_CONTINUE }


Just did the same thing but when they respawned like jtp10181 said.
__________________
Currently Looking for a mod team.
Votorx is offline
Send a message via AIM to Votorx Send a message via MSN to Votorx Send a message via Yahoo to Votorx
Sp4rt4n
Senior Member
Join Date: Dec 2004
Old 02-25-2005 , 08:52  
Reply With Quote #16

erm... i just edited AssKicR's nvg_mode plugin so the lights dont turn off, would i be able to post it in this thread or can i get in trouble for that?


if not, ill post it after school today
Sp4rt4n is offline
Send a message via MSN to Sp4rt4n
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 13:22.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode