AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   how can i give it a nightvision free to a player? (https://forums.alliedmods.net/showthread.php?t=89140)

alan_el_more 04-02-2009 18:49

how can i give it a nightvision free to a player?
 
how can i give it a nightvision free to a player?
thanks in advance :D

SonicSonedit 04-02-2009 19:05

Re: how can i give it a nightvision free to a player?
 
If you want to give Nightvision in Zombie Plague then sorry, but it's impossible, hardcoded ZP nightvision will override yours.
If you want to give nightvision and it's not related to Zombie Plague, you can send nightvision messages. Here is example from ZP:
PHP Code:

// Game Nightvision
set_user_gnvision(idtoggle)
{
    
// Toggle NVG message
    
message_begin(MSG_ONEg_msgNVGToggle_id)
    
write_byte(toggle// toggle
    
message_end()


toggle = 1/0

Arkshine 04-02-2009 19:38

Re: how can i give it a nightvision free to a player?
 
Quote:

Originally Posted by alan_el_more (Post 795760)
how can i give it a nightvision free to a player?
thanks in advance :D

Use cs_set_user_nvg().

alan_el_more 04-02-2009 20:06

Re: how can i give it a nightvision free to a player?
 
Quote:

Originally Posted by arkshine (Post 795811)

thanks arkshine :)

Dores 04-03-2009 07:48

Re: how can i give it a nightvision free to a player?
 
Quote:

Originally Posted by alan_el_more (Post 795844)
thanks arkshine :)

What about SonicSonedit?

Owyn 04-18-2009 10:25

Re: how can i give it a nightvision free to a player?
 
this will give a player the nightvision tool right? will this turn his new nightvision ON after or i have to client_cmd nightvision after?

Anggara_nothing 04-18-2009 10:32

Re: how can i give it a nightvision free to a player?
 
is this work ???
Quote:

give_item(id, "item_nightvision")

xPaw 04-18-2009 11:37

Re: how can i give it a nightvision free to a player?
 
No.


All times are GMT -4. The time now is 02:27.

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