25.04.2011, 15:00
Ok,so I amde this but I don't know what's worng:
public OnPlayerRequestClass(playerid,classid)
public OnPlayerRequestClass(playerid,classid)
pawn Код:
{
new gTeam[MAX_PLAYERS];
if(classid == 98)
{
gTeam[playerid] = TEAM_ROBBERS;
}
if(classid == 100)
{
gTeam[playerid] = TEAM_ROBBERS;
}
if(classid == 101)
{
gTeam[playerid] = TEAM_ROBBERS;
}
if(classid == 284)
{
gTeam[playerid] = TEAM_COPS;
}
if(classid == 285)
{
gTeam[playerid] = TEAM_COPS;
}
if(classid == 286)
{
gTeam[playerid] = TEAM_COPS;
}
return 1;
}
public OnPlayerSpawn(playerid)
{
new gTeam[MAX_PLAYERS];
if(gTeam[playerid] == TEAM_ROBBERS)
{
SetPlayerColor(playerid,WHITE);
}
else if(gTeam[playerid] == TEAM_COPS)
{
SetPlayerColor(playerid,BLUE);
}
return 1;
}