19.04.2014, 06:52
Quote:
Verifique
E obrigatуrio ter essa linha Код:
public OnGameModeInit() { AddPlayerClass( 19, -1754.3842, 958.3917, 24.8828+0.2, 182.5793, 24, 500, 0, 0, 0, 0 ); return 1; } Код:
public OnPlayerRequestClass( playerid, classid ) { switch(classid) // This is like a if/elseif statement. { case 0: { SetPlayerPos(playerid, 1935.4731, 1018.3829, 992.4687); SetPlayerInterior(playerid, 10); SetPlayerFacingAngle(playerid, 270.1134); SetPlayerCameraPos(playerid, 1931.9731, 1022.3829, 993.9687); SetPlayerCameraLookAt(playerid, 1935.4731, 1018.3829, 992.4687); } } return 1; } Код:
public OnPlayerSpawn(playerid) { return 1; } Код:
public OnGameModeInit() { AddPlayerClass( 19, -1754.3842, 958.3917, 24.8828+0.2, 182.5793, 24, 500, 0, 0, 0, 0 ); //case 0 AddPlayerClass( 20, -1754.3842, 958.3917, 24.8828+0.2, 182.5793, 24, 500, 0, 0, 0, 0 ); //case 1 return 1; } public OnPlayerRequestClass( playerid, classid ) { switch(classid) // This is like a if/elseif statement. { case 0: { SetPlayerPos(playerid, 1935.4731, 1018.3829, 992.4687); SetPlayerInterior(playerid, 10); SetPlayerFacingAngle(playerid, 270.1134); SetPlayerCameraPos(playerid, 1931.9731, 1022.3829, 993.9687); SetPlayerCameraLookAt(playerid, 1935.4731, 1018.3829, 992.4687); } case 1: { SetPlayerPos(playerid, 1935.4731, 1018.3829, 992.4687); SetPlayerInterior(playerid, 10); SetPlayerFacingAngle(playerid, 270.1134); SetPlayerCameraPos(playerid, 1931.9731, 1022.3829, 993.9687); SetPlayerCameraLookAt(playerid, 1935.4731, 1018.3829, 992.4687); } } return 1; } |
pawn Код:
public OnGameModeInit()
{
AddPlayerClass( 19, -1754.3842, 958.3917, 24.8828+0.2, 182.5793, 24, 500, 0, 0, 0, 0 );
return 1;
}