Quote:
Originally Posted by Stuun
First of all make sure you have teams under GameModeInit like that
PHP Code:
public OnGameModeInit()
{
SetGameModeText("Blank text");
AddPlayerClass(Here you put skin id ,Put here your coordinates,weapon 1,weapon_ammo,weapon 2,weapon_ammo,weapon 3,weapon_ammo);//That
|
So AddPlayerClass is used to add a team?
Quote:
Originally Posted by Stuun
2.
Make how much teams you want but here ima make only 5.
|
Where and how then?
Quote:
Originally Posted by Stuun
3.
Define your team at the top like that
PHP Code:
#define TEAM_TEST//You don't put test, Put your team name
|
How to add more teams?
Quote:
Originally Posted by Stuun
5.
Now we will use cases this will be in OnPlayerSpawn
PHP Code:
case 1 .. 5://1 .. 5 is the ids and ".." is the numbers inside it like 2,3,4 and under it add bracket "{"
Like that:
PHP Code:
case: 1 .. 5:
{// That is a bracket.
|
1- What does those IDs stand for?
2- sooo like this?
pawn Code:
public OnPlayerSpawn(playerid)
{
case 1 .. 5:
{
//
}
return 1;
}
Quote:
Originally Posted by Stuun
6.
Now we will use SetPlayerTeam.
PHP Code:
SetPlayerTeam(playerid, TEAM_TEST);//SetPlayerTeam is sets the team so the friendly fire will be off. Then put the team name of course so the server will understand that they are team.
Now close bracket like that "}"
|
But 'TEAM_TEST' didn't get a value at the #define. Will that also work?