31.01.2009, 22:48
Well for starters missing opening { and closing } for the OnPlayerSpawn
Do you have this at the top of your script under the #defines
Are you assigning gTeam[playerid] a variable in your script.
pawn Код:
public OnPlayerSpawn(playerid)
{
SetPlayerInterior(playerid,0);
if(gTeam[playerid] == TEAM_GREEN)
{
SetPlayerColor(playerid,0x33AA33AA); // green
GameTextForPlayer(playerid,"~g~Let the fight begin",3000,5);
}
else if(gTeam[playerid] == TEAM_BLUE)
{
GameTextForPlayer(playerid,"~b~Let the fight begin",3000,5);
SetPlayerColor(playerid,0x3333AAAA); // blue
}
}
pawn Код:
new gTeam[MAX_PLAYERS];