16.07.2013, 17:09
First of all make AddPlayerClass under OnGameModInit
after this
pawn Код:
public OnGameModeInit()
{
AddPlayerClass(2,1759.3490,-1895.4958,13.5610,268.6081,-1,-1,-1,-1,-1,-1);
AddPlayerClass(269,1759.3490,-1895.4958,13.5610,268.6081,-1,-1,-1,-1,-1,-1);
return 1;
}
pawn Код:
public OnPlayerRequestClass(playerid, classid)
{
SetupPlayerForClassSelection(playerid);
return 1;
}
forward SetupPlayerForClassSelection(playerid);
public SetupPlayerForClassSelection(playerid)
{
SetPlayerInterior(playerid,14);
SetPlayerFacingAngle(playerid, 270.0);
PlayerPlaySound(playerid, 1186, 0.0, 0.0, 5.0);
SetPlayerPos(playerid,258.4893,-41.4008,1002.0234);
SetPlayerCameraPos(playerid,256.0815,-43.0475,1004.0234);
SetPlayerCameraLookAt(playerid,258.4893,-41.4008,1002.0234);
}