17.02.2010, 09:59
i make a new gamemode and i want to make teams how do to tams?
#define TEAM_MAFIA 0 #define TEAM_GANG 1 new gTeam[MAX_PLAYERS];
OnPlayerRequestClass(playerid ,classid) { switch (classid) { case 0: { GameTextForPlayer(playerid, "~g~Los Santos", 1000, 3); SetPlayerColor(playerid,COLOR_GREEN); gTeam[playerid] = TEAM_LS; } case 1: { GameTextForPlayer(playerid, "~Y~Las Venturas", 1000, 3); SetPlayerColor(playerid,COLOR_YELLOW); gTeam[playerid] = TEAM_LV; } } return 1; }