Raised This Month: $ Target: $400
 0% 

how can i give it a nightvision free to a player?


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
alan_el_more
Veteran Member
Join Date: Jul 2008
Location: amxmodx-es.com
Old 04-02-2009 , 18:49   how can i give it a nightvision free to a player?
Reply With Quote #1

how can i give it a nightvision free to a player?
thanks in advance
__________________
alan_el_more is offline
SonicSonedit
Veteran Member
Join Date: Nov 2008
Location: Silent Hill
Old 04-02-2009 , 19:05   Re: how can i give it a nightvision free to a player?
Reply With Quote #2

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
__________________

SonicSonedit is offline
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 04-02-2009 , 19:38   Re: how can i give it a nightvision free to a player?
Reply With Quote #3

Quote:
Originally Posted by alan_el_more View Post
how can i give it a nightvision free to a player?
thanks in advance
Use cs_set_user_nvg().
Arkshine is offline
alan_el_more
Veteran Member
Join Date: Jul 2008
Location: amxmodx-es.com
Old 04-02-2009 , 20:06   Re: how can i give it a nightvision free to a player?
Reply With Quote #4

Quote:
Originally Posted by arkshine View Post
thanks arkshine
__________________
alan_el_more is offline
Dores
Veteran Member
Join Date: Jun 2008
Location: You really don't wanna k
Old 04-03-2009 , 07:48   Re: how can i give it a nightvision free to a player?
Reply With Quote #5

Quote:
Originally Posted by alan_el_more View Post
thanks arkshine
What about SonicSonedit?
__________________
O o
/Ż________________________
| IMMA FIRIN' MAH LAZOR!!!
\_ŻŻŻ
Dores is offline
Owyn
Veteran Member
Join Date: Nov 2007
Old 04-18-2009 , 10:25   Re: how can i give it a nightvision free to a player?
Reply With Quote #6

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?
__________________
☜ Free Mozy ☂backup\҉sync user
Quote:
Американский форум - Задаёшь вопрос, потом тебе отвечают.
Израильский форум - Задаёшь вопрос, потом тебе задают вопрос.
Русский форум - Задаёшь вопрос, потом тебе долго рассказывают, какой ты мудак.
Owyn is offline
Send a message via ICQ to Owyn
Anggara_nothing
Veteran Member
Join Date: Jan 2009
Location: Indonesia
Old 04-18-2009 , 10:32   Re: how can i give it a nightvision free to a player?
Reply With Quote #7

is this work ???
Quote:
give_item(id, "item_nightvision")
Anggara_nothing is offline
xPaw
Retired AMX Mod X Moderator
Join Date: Jul 2008
Old 04-18-2009 , 11:37   Re: how can i give it a nightvision free to a player?
Reply With Quote #8

No.
__________________
xPaw is offline
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 02:27.


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