Raised This Month: $12 Target: $400
 3% 

Hide N Seek v4.6 BETA by Jon


Post New Thread Reply   
 
Thread Tools Display Modes
ingmar13
Member
Join Date: Jun 2008
Old 06-29-2008 , 12:29   Re: Hide & Seek 3.0 + Weaponchance
Reply With Quote #21

Can the frostnade color be random?
ingmar13 is offline
Jon
Veteran Member
Join Date: Dec 2007
Old 06-29-2008 , 14:12   Re: Hide & Seek 3.0 + Weaponchance
Reply With Quote #22

Quote:
Originally Posted by ingmar13 View Post
Can the frostnade color be random?
Change get_color func to this (untested):
Code:
get_color(&red, &grn, &blu, cvarid) {     new color[16], r[4], g[4], b[4];         if(cvarid == 1)         get_pcvar_string(cvar_hudcolor, color, 15)             else if(cvarid == 2)         get_pcvar_string(cvar_fadecolor, color, 15)     if(cvarid != 3)     {         parse(color, r, 3, g, 3, b, 3)         red = str_to_num(r);         grn = str_to_num(g);         blu = str_to_num(b);     }         else     {         red = random(256)         grn = random(256)         blu = random(256)     } }
Jon is offline
PuNkAiK
Junior Member
Join Date: May 2008
Old 06-29-2008 , 15:27   Re: Hide & Seek 3.0 + Weaponchance
Reply With Quote #23

hi Jon ! can you add a hostage remover in your plugin? plz ? for cs_assault ....

Last edited by PuNkAiK; 06-29-2008 at 15:39.
PuNkAiK is offline
ingmar13
Member
Join Date: Jun 2008
Old 06-29-2008 , 16:07   Re: Hide & Seek 3.0 + Weaponchance
Reply With Quote #24

one more question.

how to get 3 flashbangs.
and grenade?
ingmar13 is offline
ingmar13
Member
Join Date: Jun 2008
Old 06-29-2008 , 16:07   Re: Hide & Seek 3.0 + Weaponchance
Reply With Quote #25

Quote:
Originally Posted by Jon View Post
Change get_color func to this (untested):
Code:
get_color(&red, &grn, &blu, cvarid) {     new color[16], r[4], g[4], b[4];         if(cvarid == 1)         get_pcvar_string(cvar_hudcolor, color, 15)             else if(cvarid == 2)         get_pcvar_string(cvar_fadecolor, color, 15)     if(cvarid != 3)     {         parse(color, r, 3, g, 3, b, 3)         red = str_to_num(r);         grn = str_to_num(g);         blu = str_to_num(b);     }         else     {         red = random(256)         grn = random(256)         blu = random(256)     } }

thanks, but where i need to put it ?
i can't find the right place. to much get_color
. i putted some where, i have errors. i'm not a good scripter , so can u fix it for me ?

Last edited by ingmar13; 06-29-2008 at 16:13.
ingmar13 is offline
Jon
Veteran Member
Join Date: Dec 2007
Old 06-29-2008 , 16:39   Re: Hide & Seek 3.0 + Weaponchance
Reply With Quote #26

Replace the whole "get_color" at the bottom with the one I gave you. To get 3 flashbangs you must use an extra plugin, can't remember the name, just use search.

Last edited by Jon; 06-29-2008 at 16:44.
Jon is offline
Exolent[jNr]
Veteran Member
Join Date: Feb 2007
Location: Tennessee
Old 06-29-2008 , 21:21   Re: Hide & Seek 3.0 + Weaponchance
Reply With Quote #27

Quote:
Originally Posted by Jon View Post
... To get 3 flashbangs you must use an extra plugin, can't remember the name, just use search.
Code:
// When giving weapons give_item(plr, "weapon_flashbang"); cs_set_user_bpammo(plr, CSW_FLASHBANG, 3);
__________________
No private work or selling mods.
Quote:
Originally Posted by xPaw View Post
I love you exolent!
Exolent[jNr] is offline
ingmar13
Member
Join Date: Jun 2008
Old 06-30-2008 , 07:23   Re: Hide & Seek 3.0 + Weaponchance
Reply With Quote #28

Quote:
Originally Posted by X-olent View Post
Code:
// When giving weapons give_item(plr, "weapon_flashbang"); cs_set_user_bpammo(plr, CSW_FLASHBANG, 3);

i allready found that
ingmar13 is offline
ingmar13
Member
Join Date: Jun 2008
Old 06-30-2008 , 07:31   Re: Hide & Seek 3.0 + Weaponchance
Reply With Quote #29

Quote:
Originally Posted by Jon View Post
Replace the whole "get_color" at the bottom with the one I gave you. To get 3 flashbangs you must use an extra plugin, can't remember the name, just use search.

Code:
create_blast3(const origin[3]) {
	// smallest ring
	new r, g, b;
	get_color(r, g, b, 3)
	
	message_begin(MSG_BROADCAST, SVC_TEMPENTITY);
	write_byte(TE_BEAMCYLINDER);
	write_coord(origin[0]); // start X
	write_coord(origin[1]); // start Y
	write_coord(origin[2]); // start Z
	write_coord(origin[0]); // something X
	write_coord(origin[1]); // something Y
	write_coord(origin[2] + 385); // something Z
	write_short(frostnade_explotion); // sprite
	write_byte(0); // startframe
that one?
ingmar13 is offline
ingmar13
Member
Join Date: Jun 2008
Old 06-30-2008 , 07:34   Re: Hide & Seek 3.0 + Weaponchance
Reply With Quote #30

i can't change it, can some one make it good for me?
ingmar13 is offline
Reply


Thread Tools
Display Modes

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 17:30.


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