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

Bool Bug


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
lolzin123
Member
Join Date: Apr 2009
Old 08-10-2009 , 13:51   Bool Bug
Reply With Quote #1

The bool is only for specs... but if i gonna to spec and set the bool to true and go back to ct the bool continius at true.

Have one way to make the bool false when go to ct or tr?
lolzin123 is offline
minimiller
Veteran Member
Join Date: Aug 2007
Location: United Kingdom
Old 08-10-2009 , 13:54   Re: Bool Bug
Reply With Quote #2

hook team change and set it as false?
__________________
minimiller is offline
Send a message via MSN to minimiller
lolzin123
Member
Join Date: Apr 2009
Old 08-10-2009 , 14:10   Re: Bool Bug
Reply With Quote #3

how i do this...
lolzin123 is offline
Bugsy
AMX Mod X Moderator
Join Date: Feb 2005
Location: NJ, USA
Old 08-10-2009 , 16:04   Re: Bool Bug
Reply With Quote #4

Set bool to true when spectator and false for all other? Please explain better\clearer if this is incorrect.

PHP Code:
UNASSIGNED false
TERRORIST 
false
CT 
false
SPECTATOR 
true 
PHP Code:
new boolg_bTeamSpec33 ];

register_event"TeamInfo" "fw_EvTeamInfo" "a" );

public 
fw_EvTeamInfo()
{
    static 
szTeam]; read_dataszTeam );
    
    
g_bTeamSpecread_data) ] = bool:( szTeam] == 'S' );

__________________

Last edited by Bugsy; 08-11-2009 at 23:01.
Bugsy 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 17:39.


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