AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Bool Bug (https://forums.alliedmods.net/showthread.php?t=99896)

lolzin123 08-10-2009 13:51

Bool Bug
 
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?

minimiller 08-10-2009 13:54

Re: Bool Bug
 
hook team change and set it as false?

lolzin123 08-10-2009 14:10

Re: Bool Bug
 
how i do this... :D

Bugsy 08-10-2009 16:04

Re: Bool Bug
 
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' );




All times are GMT -4. The time now is 18:20.

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