Would this work
#1

Solved
Reply
#2

it should
Reply
#3

I don't think so, not unless you want a random team inside of a team
Reply
#4

This looks senseless, but it works!
Reply
#5

It won't work. Why?

Example:
pawn Код:
#define TEAM_X 0
#define TEAM_Y 0

switch(gTeam[playerid])
{
    case TEAM_X: {/*do something*/}
    case TEAM_Y: {/*do something else*/}
}

// Would be the same as:

switch(gTeam[playerid])
{
    case 0: {/*do something*/}
    case 0: {/*do something else*/}
    // They both would do the same.
}
Reply
#6

Solved
Reply
#7

What do you nead theese defines for anyway?

The TEAM_ prefix doesn't make sense for me.
Reply
#8

Solved
Reply
#9

Use
Код:
#define TEAM_ZOMBIE 0
#define TEAM_HUMAN 1
for team defines

and
Код:
#define PLAYER_ZOMBIE 0 // Zombie
#define PLAYER_HUNTER 1 // Zombie
#define PLAYER_CHARGER 2 // Zombie
#define PLAYER_HUMAN 3 // Human
#define PLAYER_MEDIC 4 // Human
#define PLAYER_ARMY 5 // Human
for skill defines
Reply
#10

Quote:
Originally Posted by Kitten
Посмотреть сообщение
but how would i make so i made this right now
pawn Код:
#define TEAM_ZOMBIE 0 // Zombie
#define TEAM_HUNTER 1 // Zombie
#define TEAM_CHARGER 2 // Zombie
#define TEAM_HUMAN 3 // Human
#define TEAM_MEDIC 4 // Human
#define TEAM_ARMY 5 // Human
so do i just SetPlayerTeam for zombie all to 0 ?
same as humans to 3?
Nice One Kitten Nice Job
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)