[SOLVED] Teams
#1

Quote:
Originally Posted by FUNExtreme
a is not a team. A is an id

Let me show you how it works:

for(new a = 0; a < MAX_PLAYERS; a ++)

will do

a = 0 (execute code for id 0)
then
a = 1 (execute code for id 1)
then
a = 2 (execute code for id 2)
then
....

Thats how it works, do you understand?
Im not sure but if a player with ID 0 Leaves and someone comes again with ID 0 would the FUNCTION affect him/her ?
_________________________________________________
EDITon'T worry SOLVED i got it THANKS TO ALL
Reply
#2

Remove the if gTeam == TEAM_GLOBAL.
Reply
#3

Quote:
Originally Posted by DarkPhoenix
Remove the if gTeam == TEAM_GLOBAL.
OK but there is another thing
THE EFFECT ONLY WORK ON THE PLAYER THAT ENTERS THE CHEKPOINT
I WANT THE EFFECT TO WORK ON THE HOLE TEAM
Reply
#4

Quote:
Originally Posted by [ĦŁ₣
ЉǾǖŦĦЗŁΛẄ ]
Loop through players then apply it to each ID:

for(new a; a < PLAYERCOUNT; a++)
{
SetCameraPos(a, coords...);
}

- 'a' being the playerid parameter in functions within the braces
- 'PLAYERCOUNT' in the loop declaration being your player slot count

Note: by the first note I mean put 'a' as the playerid parameter in the functions that you want to apply to all players,
don't replace the 'a' in the 'for' loop initiation with 'playerid' if that makes sense :P
Yeah it makes sense Thanks
Reply
#5

Sorry for doube post but
How do i set a team to be a team a
Reply
#6

a is not a team. A is an id

Let me show you how it works:

for(new a = 0; a < MAX_PLAYERS; a ++)

will do

a = 0 (execute code for id 0)
then
a = 1 (execute code for id 1)
then
a = 2 (execute code for id 2)
then
....

Thats how it works, do you understand?
Reply
#7

Quote:
Originally Posted by FUNExtreme
a is not a team. A is an id

Let me show you how it works:

for(new a = 0; a < MAX_PLAYERS; a ++)

will do

a = 0 (execute code for id 0)
then
a = 1 (execute code for id 1)
then
a = 2 (execute code for id 2)
then
....

Thats how it works, do you understand?
Im not sure but if a player with ID 0 Leaves and someone comes again with ID 0 would the FUNCTION affect him/her ?
_________________________________________________
EDITon'T worry SOLVED i got it THANKS TO ALL
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)