14.11.2014, 04:28
I have problem with class selection,
class selection bugs after team_ta.
pawn Код:
#define TEAM_NONE 0
#define TEAM_EU 1
#define TEAM_RU 2
#define TEAM_US 3
#define TEAM_AU 4
#define TEAM_AS 5
#define TEAM_LA 6
#define TEAM_AR 7
#define TEAM_ME 8
#define TEAM_TA 9
#define MAX_TEAMS 10
pawn Код:
public OnPlayerRequestClass(playerid, classid)
{
SetPlayerInterior(playerid,0);
SetPlayerPos(playerid,222.472366,1822.878784,6.414062);
SetPlayerFacingAngle(playerid, 270.0);
SetPlayerCameraPos(playerid,224.472366,1822.878784,7.414062);
SetPlayerCameraLookAt(playerid,222.472366,1822.878784,6.414062);
gTeam[playerid]=classid+1;
SetPlayerTeam(playerid,gTeam[playerid]);
setskin(playerid);
return 1;
}