AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   client cmd problem (https://forums.alliedmods.net/showthread.php?t=20327)

haimmaik 11-06-2005 11:26

client cmd problem
 
i managed to do that nightvision thing (thanks for helping >_<)
anyway when i want to turn it off i do

Code:
client_cmd(id,nightvision) cs_set_user_nvg(id,0)

but in the game it doesnt shut the nightvision... lock it on...
i cant even shut it down with the N button... (i guess cuz set_user_nvg is 0)... but why didnt the client_cmd work?? :S

Zenith77 11-06-2005 11:39

Re: client cmd problem
 
Quote:

Originally Posted by haimmaik
i managed to do that nightvision thing (thanks for helping >_<)
anyway when i want to turn it off i do

Code:
client_cmd(id,nightvision) cs_set_user_nvg(id,0)

but in the game it doesnt shut the nightvision... lock it on...
i cant even shut it down with the N button... (i guess cuz set_user_nvg is 0)... but why didnt the client_cmd work?? :S


the command needs to be a string...

Code:
client_cmd(id, "nightvision")

haimmaik 11-06-2005 14:08

ye it is a string.. just here i 4got to put it :)


All times are GMT -4. The time now is 23:55.

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