22.04.2012, 13:52
This is my OnPlayerRequestClass:
I added Case 2 and case 3 also adding the AddPlayerClass but it won't show case 2 + 3? Help?!
Код:
public OnPlayerRequestClass(playerid, classid) { switch(classid) { case 0: { //Police Spawn SetPlayerPos(playerid, 2296.5662,2451.6270, 10.8203); SetPlayerFacingAngle(playerid, 87.8270); //Camera Position Police SetPlayerCameraPos(playerid, 2293.3640,2451.7341,12.8203); //Police Spawn SetPlayerCameraLookAt(playerid, 2296.5662,2451.6270, 10.8203); PlayerInfo[playerid][Team] = Cops; } case 1: { SetPlayerPos(playerid, 2516.9578,2447.6992,11.0313); SetPlayerFacingAngle(playerid, 269.7719); SetPlayerCameraPos(playerid, 2521.2405,2447.5195,12.0313); SetPlayerCameraLookAt(playerid, 2516.9578,2447.6992,11.0313); PlayerInfo[playerid][Team] = Civilian; } case 2: { SetPlayerPos(playerid, 2296.5662,2451.6270, 10.8203); SetPlayerFacingAngle(playerid, 87.8270); //Camera Position Police SetPlayerCameraPos(playerid, 2293.3640,2451.7341,12.8203); //Police Spawn SetPlayerCameraLookAt(playerid, 2296.5662,2451.6270, 10.8203); PlayerInfo[playerid][Team] = Cops; } case 3: { SetPlayerPos(playerid, 2516.9578,2447.6992,11.0313); SetPlayerFacingAngle(playerid, 269.7719); SetPlayerCameraPos(playerid, 2521.2405,2447.5195,12.0313); SetPlayerCameraLookAt(playerid, 2516.9578,2447.6992,11.0313); PlayerInfo[playerid][Team] = Civilian; } } return 1; }