Would this work - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Would this work (
/showthread.php?tid=193828)
Would this work -
Kitten - 27.11.2010
Solved
Re: Would this work -
Buzzbomb - 27.11.2010
it should
Re: Would this work -
WillyP - 27.11.2010
I don't think so, not unless you want a random team inside of a team
Re: Would this work -
Cypog - 27.11.2010
This looks senseless, but it works!
Re: Would this work -
Miguel - 27.11.2010
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.
}
Re: Would this work -
Kitten - 27.11.2010
Solved
Re: Would this work -
Cypog - 27.11.2010
What do you nead theese defines for anyway?
The TEAM_ prefix doesn't make sense for me.
Re: Would this work -
Kitten - 27.11.2010
Solved
Re: Would this work -
Cypog - 27.11.2010
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
Re: Would this work -
Greek Gangster - 27.11.2010
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