17.09.2009, 21:39
this is what I did..
and so on.. "case number:" would be the id of the team defined, such as "#define TEAM_GROVE 0" would be case 0: for the grove team.
EDIT:
Forgot to tell you, put "CamPositions(playerid, classid);" under OnPlayerRequestClass
Код:
CamPositions(playerid, classid) { switch(classid) { case 0: { SetPlayerPos(playerid,x,y,z); SetPlayerFacingAngle(playerid,angle); SetPlayerCameraPos(playerid,x,y,z); SetPlayerCameraLookAt(playerid,x,y,z); } case 1: { SetPlayerPos(playerid,x,y,z); SetPlayerFacingAngle(playerid,angle); SetPlayerCameraPos(playerid,x,y,z); SetPlayerCameraLookAt(playerid,x,y,z); } } }
EDIT:
Forgot to tell you, put "CamPositions(playerid, classid);" under OnPlayerRequestClass