RSSy MYGO.pl Opublikowano Lipiec 20, 2022 o 17:40 RSSy Udostępnij Opublikowano Lipiec 20, 2022 o 17:40 any idea how to turn this into the csgo round loser bonus. Example: If the terrorist team loses 1 round, the loser bonus starts at 1,900. If they lose another, 500 will be added for losing a consecutive round, then it would be 2,400. If they lose another round, it would be 2,900. Now, if the terrorist team wins a round, the loser bonus will be subtracted. 500 and it would be 2400 and the CT team would be added the 500 for losing the round, then it would be 2400 loser bonus for the TT and 1900 for the CT I am very bad at explaining myself. PHP Code: public RoundEnd(WinStatus:status, ScenarioEventEndRound:event, Float:tmDelay) { new iNumConsecutiveTerroristLoses = 0; new iNumConsecutiveCTLoses = 0; new iLoserBonus; if ( status == WINSTATUS_TERRORISTS ) { if ( iNumConsecutiveTerroristLoses > 1 ) { iLoserBonus = 1400; } iNumConsecutiveTerroristLoses = 0; iNumConsecutiveCTLoses++; } else if ( status == WINSTATUS_CTS ) { if ( iNumConsecutiveCTLoses > 1 ) { iLoserBonus = 1400; } iNumConsecutiveCTLoses = 0; iNumConsecutiveTerroristLoses++; } if ( iNumConsecutiveTerroristLoses > 0 && iLoserBonus < 3000 ) { iLoserBonus += 500; } else if ( iNumConsecutiveCTLoses > 0 && iLoserBonus < 3000 ) { iLoserBonus += 500; } client_print_color(0,1,"^4CT %i - %i TR (Bonus:%i)",iNumConsecutiveCTLoses,iNumConsecutiveTerroristLoses,iLoserBonus); } Przeczytaj cały wpis Odnośnik do komentarza Udostępnij na innych stronach Więcej opcji udostępniania...
Rekomendowane odpowiedzi