Raised This Month: $ Target: $400
 0% 

3 things: restart round, block NVG, and status bars


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Rolnaaba
Veteran Member
Join Date: May 2006
Old 05-22-2007 , 21:20   3 things: restart round, block NVG, and status bars
Reply With Quote #1

I need help with three things real fast if you dont mind

1) How can I force the server to restart the round?
2) How can I block people from buying a pair of Night Vision Goggles? And if I cant block them from buying it, can I detect when they buy it, and remove it? I was was at plugin_init calling a continuesly looping function what will check each player every 10 seconds or so for nvg and removing it if they had them, but was hopping for something more efficient.
3) Can someone show me how to make, and modify/manipulate a status bar, like what comes up when you defuse the bomb? I think I remember seeing it was a message (message_begin...) but cant remember.

All help is appreciated
HEY v3x!
__________________
DO NOT PM me about avp mod.
Rolnaaba is offline
teame06
i have a hat
Join Date: Feb 2005
Location: Hat City
Old 05-22-2007 , 22:41   Re: 3 things: restart round, block NVG, and status bars
Reply With Quote #2

1.
Code:
new mp_restartround = get_cvar_pointer("mp_restartround"); //... set_pcvar_num(mp_restartround, 1);

2. Let them waste their money. I think you can block the nvg from enabling.

I think it will work.
Code:
register_clcmd("nightvision", "_NightVision"); //... public _NightVision(client) {     return PLUGIN_HANDLED; }

3.

Code:
ShowBarTime(client, time) {     message_begin(MSG_ONE, get_user_msgid("BarTime"), _, client);     write_short(time);     message_end(); }
__________________
No private support via Instant Message
GunGame:SM Released
teame06 is offline
Send a message via AIM to teame06
Rolnaaba
Veteran Member
Join Date: May 2006
Old 05-23-2007 , 11:23   Re: 3 things: restart round, block NVG, and status bars
Reply With Quote #3

wow incredible simple, thanks.
would
Code:
new mp_restartround;
be declared globally then assigned:
Code:
mp_restartround = get_cvar_pointer("mp_restartround");
in plugin_init or can i do this anywhere?
__________________
DO NOT PM me about avp mod.

Last edited by Rolnaaba; 05-23-2007 at 11:25.
Rolnaaba is offline
Rolnaaba
Veteran Member
Join Date: May 2006
Old 05-23-2007 , 11:28   Re: 3 things: restart round, block NVG, and status bars
Reply With Quote #4

also, how would I be able to stop that bar before it fills and restart it?
like say on the Death event, restart the killers bar to the begining.
__________________
DO NOT PM me about avp mod.
Rolnaaba is offline
regalis
Veteran Member
Join Date: Jan 2007
Location: F*cking Germany
Old 05-23-2007 , 11:55   Re: 3 things: restart round, block NVG, and status bars
Reply With Quote #5

Quote:
Originally Posted by Rolnaaba View Post
wow incredible simple, thanks.
would Code:
new mp_restartround;

be declared globally then assigned:
Code:
mp_restartround = get_cvar_pointer("mp_restartround");

in plugin_init or can i do this anywhere?
plugin init seems suitable ;)
__________________
regalis is offline
teame06
i have a hat
Join Date: Feb 2005
Location: Hat City
Old 05-23-2007 , 13:29   Re: 3 things: restart round, block NVG, and status bars
Reply With Quote #6

Quote:
Originally Posted by Rolnaaba View Post
also, how would I be able to stop that bar before it fills and restart it?
like say on the Death event, restart the killers bar to the begining.
I think you would have to send another BarTime message with time being 0.
__________________
No private support via Instant Message
GunGame:SM Released
teame06 is offline
Send a message via AIM to teame06
Rolnaaba
Veteran Member
Join Date: May 2006
Old 05-23-2007 , 13:42   Re: 3 things: restart round, block NVG, and status bars
Reply With Quote #7

so send it with time being 0 that will fill it all the way up then i can start a new one...with time whatever I want. but will the mesage overwrite old one or compound a new one?
__________________
DO NOT PM me about avp mod.
Rolnaaba 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 10:39.


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