Raised This Month: $32 Target: $400
 8% 

Transferring all players in one team


Post New Thread Reply   
 
Thread Tools Display Modes
OciXCrom
Veteran Member
Join Date: Oct 2013
Location: Macedonia
Old 05-06-2017 , 20:08   Re: Transferring all players in one team
Reply With Quote #21

PHP Code:
new g_iWins

// when someone wins
g_iWins++

// the message
show_hudmessage(0"Wins: %i"g_iWins
__________________
OciXCrom is offline
Send a message via Skype™ to OciXCrom
Krtola
Veteran Member
Join Date: Oct 2013
Location: Serbia
Old 05-07-2017 , 04:23   Re: Transferring all players in one team
Reply With Quote #22

How to detect when Rambo win?
Ramba can be in CT team but also in TS team.
Krtola is offline
Send a message via Skype™ to Krtola
Craxor
Veteran Member
Join Date: Jan 2016
Location: Romania
Old 05-07-2017 , 04:49   Re: Transferring all players in one team
Reply With Quote #23

1. declare a global variable
2. assing it with Team id of the rambo in rambo select items.
3. Register these events:
PHP Code:
register_event("TeamScore""Event_gTeroWin""a""1=TERRORIST")
register_event("TeamScore""Event_CTWin""a""1=CT"
Then you check for global variable 'g_RamboTeam' in both events.


TERRORIST_WIN()
{
If ( Rambo_Team == IS_TERRORIST )
DO_SOMETHING
ELSE
MEANS Rambo is Ct and his team lose.
}

CT_WIN ( )
{
If ( Rambo_Team == Is_Terrorist )
YOU LOSE
ELSE
RAMBO WIN
}


You understand ?
__________________
Project: Among Us

Last edited by Craxor; 05-07-2017 at 04:56.
Craxor is offline
Send a message via ICQ to Craxor
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 16:06.


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