|
|
#1 |
|
Big Clucker
![]() ![]() Join Date: Feb 2012
Location: Mars
Posts: 115
Reputation: 12
|
Okay,I'm working on a counterstrike gamemode with MULTIPLE maps.
Now, what I'm doing is trying to create a UNIT limit for each team Unit = Players. Once a player of that team dies = 1 unit goes down for that team. If the units of a team reach 0, the other team wins by default. Now I'm really confused, I have no idea how I can give the score to the other team with my code: pawn Code:
I'd appreciate a 20-30 minutes lesson on this and some doubt clearing OR simply if someone could tell me how to do it. |
|
|
|
|
|
#2 |
|
Gangsta
![]() ![]() ![]() ![]() Join Date: Aug 2010
Location: On This Mortal Coil
Posts: 705
Reputation: 233
|
In your case, I'd say you just give score to everyone who is NOT on the team of which the Units has ran out (so let's assume TEAM0 has no more units, TEAM1 would win, correct?).
To do this: pawn Code:
We assume the team IDs are 0 and 1, otherwise this example will not work; A better solution would be: pawn Code:
|
|
|
|
|
|
#3 |
|
Big Clucker
![]() ![]() Join Date: Feb 2012
Location: Mars
Posts: 115
Reputation: 12
|
Compiler crash with that code...
|
|
|
|
|
|
#4 |
|
Big Clucker
![]() ![]() Join Date: Nov 2011
Location: Indonesia
Posts: 126
Reputation: 23
|
like this?
pawn Code:
well, i don't sure if it works or not |
|
|
|
|
|
#5 |
|
Big Clucker
![]() ![]() Join Date: Feb 2012
Location: Mars
Posts: 115
Reputation: 12
|
Crashed with BOTH the codes.
|
|
|
|
![]() |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| What to Learn | killanator10 | Everything and Nothing | 15 | 31/08/2011 10:06 AM |
| How I learn PHP? | Ricop522 | Everything and Nothing | 4 | 19/06/2011 05:07 AM |
| Will this help me learn? | NewTorran | Everything and Nothing | 20 | 03/06/2010 08:44 PM |
| learn for nothing? | Sfinx_17 | Help Archive | 39 | 24/11/2009 05:01 PM |