Teams....
#1

How the fuck do you make teams for a TDM? I can't just figure out this on my own so please, Give me a skiss on how it could look like.
It most be very very Simple so you can understand anything....

//Al, please!!!
Reply
#2

just look at sftdm game mode its in your game modes folder.
Reply
#3

Quote:
Originally Posted by Daem
just look at sftdm game mode its in your game modes folder.
Actually, That helped me really much, Thanks...

I could still need some help, Just post :]
Reply
#4

I will show you an of example of 2 teams

Police

&

Grove

Put this on top of your script, like above OnGameModeInit

pawn Код:
#define TEAM_POLICE 0
#define TEAM_GROVE 1
Put this also somewhere in above OnGameModeIniti

pawn Код:
new gTeam[MAX_PLAYERS];
Now put this somewhere under your OnGameModeInit

pawn Код:
AddPlayerClass(107,2000.0933,1565.3741,15.3672,186.3705,24,150,0,0,0,0); // Grove
AddPlayerClass(283,2003.2732,1564.7144,15.3672,186.0572,24,150,0,0,0,0); // Cops
Now find OnPlayerRequestClass and put this under

pawn Код:
if (classid == 0)
    {
    gTeam[playerid] = TEAM_GROVE;
    GameTextForPlayer(playerid,"~r~Grove",500,3);
    }
    else if (classid == 1)
    {
    gTeam[playerid] = TEAM_POLICE;
    GameTextForPlayer(playerid,"~g~Police",500,3);
    }
This is simply setting player's team by the skin they choose. If you have more questions, ask.

What is done here is that you define the both teams, and if player's skin is case 0, which is case GROVE, it means he'll be set to team Grove.
If he chooses the second skin, which is Case 1, he'll be set to team Police.
Reply
#5

or.. you just could use SetPlayerTeam...
Reply
#6

Quote:
Originally Posted by Daem
or.. you just could use SetPlayerTeam...
Yes but then they have godmode automaticly, and if someone just only want's teams without godmode they have to gonna do it on XtremeChio 's way.
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)