[Help] half_rounds and then only count until 16 Score
Hey there guys,
So, i'm really new in scripting, i've been spending the last 5 days reading about pawn, AMX Mod X scripting and the tutorials available in here, and i'm starting to understand source files of some basic plugins. So, i'm trying to edit this plugin: https://sourcemod.net/showthread.php?t=90898 What happens in that plugin is that it switches teams based on the number of rounds we want to make a half. So, i want the first half of the 'game' to be played within 15 rounds (for example: CT Team score: 9 ; T Team score: 6). After that, and here it is the problem, i want it to be played until any of the teams reaches, first, the score 16 (which means, in the example above, that the CT team have to score 7 more rounds or the T Team has to score 10 more rounds). But the plugin is defined for, after team switches, play the same number of rounds that we define has half (being that: if i define it to 15 rounds, it switches the teams, and then they have to play 15 MORE rounds). The code that i'm editing is here: PHP Code:
I'm stuck here. I thank you in advance for your help. |
Re: [Help] half_rounds and then only count until 16 Score
Do i have to, in the beginning state a function that would finish the match when a team wins 16 rounds? Or should i build this divided in like 2 halfs? The first one when it counts 15 rounds and then switches teams, and the second one counting the rounds not in total but for a singular team (until one of them reaches 16)?
|
Re: [Help] half_rounds and then only count until 16 Score
Quote:
|
Re: [Help] half_rounds and then only count until 16 Score
Sorry about that. Not trying to bump, i was posting my doubt as i've been thinking and trying to see the problem and solve it from diferent perspectives.
Anyway, i'm not going to do it again, thanks for the warning. |
Re: [Help] half_rounds and then only count until 16 Score
Quote:
|
Re: [Help] half_rounds and then only count until 16 Score
You can also see other codes like this!
|
Re: [Help] half_rounds and then only count until 16 Score
I've been looking at that code, but i can't find the way that p1mp finds the winner team..
|
Re: [Help] half_rounds and then only count until 16 Score
From your post, I assume that you want it to restart after 15 rounds, but not reset the team score. However, if a team reaches 16 rounds - the team wins - and everything is reset.
Below code is just the basic thought behind this to show you how; Code:
|
Re: [Help] half_rounds and then only count until 16 Score
stop posting in bold holy fuck
|
Re: [Help] half_rounds and then only count until 16 Score
Xellath,
Your help is just amazing. Thank you very much. With the comments, i'm able to understand every step of the code. It's because of helpful people like you that we, begginers, register and like this forum. I always see people talking about karma+ , but i'm not familiar with that feature. When i have suficient threads or posts, or when i fully understand how that works, be sure that i will be giving you some Karma points. I will now try to modificate some stuff, add other features, etc, to increase my skills and pratice. Thanks again. |
| All times are GMT -4. The time now is 08:30. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.