. Just input random values for it.
Код:
forward SpawnajIgraca(playerid);
public SpawnajIgraca(playerid)
{
if(PlayerInfo[playerid][pSpawnPos] == 1)
{
//SetPlayerPos(playerid, 1732.9124, -1912.0067, 13.5622);
SetSpawnInfo( playerid, 0, 0, 1732.9124, -1912.0067, 13.5622, 0, 0, 0, 0, 0, 0, 0 );
SetPlayerInterior(playerid, 0);
SetPlayerFacingAngle(playerid, 90);
SetPlayerVirtualWorld(playerid, 0);
}
if(PlayerInfo[playerid][pSpawnPos] == 2) // aerodrom
{
//SetPlayerPos(playerid, 1642.0559,-2334.5571,13.5469);
SetSpawnInfo( playerid, 0, 0, 1642.0559,-2334.5571,13.5469, 0, 0, 0, 0, 0, 0, 0 );
SetPlayerInterior(playerid, 0);
SetPlayerFacingAngle(playerid, 90);
SetPlayerVirtualWorld(playerid, 0);
}
if(PlayerInfo[playerid][pSpawnPos] == 3) // kuca
{
new k = PlayerInfo[playerid][pKuca];
//SetPlayerPos(playerid, InfoKuce[k][IntXKuce], InfoKuce[k][IntYKuce], InfoKuce[k][IntZKuce]);
SetSpawnInfo( playerid, 0, 0, InfoKuce[k][IntXKuce], InfoKuce[k][IntYKuce], InfoKuce[k][IntZKuce], 0, 0, 0, 0, 0, 0, 0 );// SpawnPlayer(playerid);
SetPlayerInterior(playerid, InfoKuce[k][IntIDKuce]);
SetPlayerVirtualWorld(playerid, InfoKuce[k][VWKuce]);
SetPlayerFacingAngle(playerid, 90);
}
if(PlayerInfo[playerid][pSpawnPos] == 4) // stan
{
new s = PlayerInfo[playerid][pStan];
//SetPlayerPos(playerid, InfoStana[s][IntXStana], InfoStana[s][IntYStana], InfoStana[s][IntZStana]);
SetSpawnInfo( playerid, 0, 0, InfoStana[s][IntXStana], InfoStana[s][IntYStana], InfoStana[s][IntZStana], 0, 0, 0, 0, 0, 0, 0 );//SpawnPlayer(playerid);
SetPlayerInterior(playerid, InfoStana[s][IntIDStana]);
SetPlayerVirtualWorld(playerid, InfoStana[s][VWStana]);
SetPlayerFacingAngle(playerid, 90);
}
if(PlayerInfo[playerid][pSpawnPos] == 5) // firma
{
new f = PlayerInfo[playerid][pFirma];
//SetPlayerPos(playerid, InfoFirme[f][IntXFirme], InfoFirme[f][IntYFirme], InfoFirme[f][IntZFirme]);
SetSpawnInfo( playerid, 0, 0, InfoFirme[f][IntXFirme], InfoFirme[f][IntYFirme], InfoFirme[f][IntZFirme], 0, 0, 0, 0, 0, 0, 0 );//SpawnPlayer(playerid);
SetPlayerInterior(playerid, InfoFirme[f][IntIDFirme]);
SetPlayerVirtualWorld(playerid, InfoFirme[f][VWFirme]);
SetPlayerFacingAngle(playerid, 90);
}
if(PlayerInfo[playerid][pSpawnPos] == 6)
{
if(PlayerInfo[playerid][pMember] == 1) { SetPlayerPos(playerid, 254.7281,77.9892,1003.6406); SetPlayerInterior(playerid,6); }
if(PlayerInfo[playerid][pMember] == 2) { SetPlayerPos(playerid, 246.375991,109.245994,1003.218750); SetPlayerInterior(playerid,10); }
if(PlayerInfo[playerid][pMember] == 3) { SetPlayerPos(playerid, 732.4429,-1355.9352,15.1563); SetPlayerInterior(playerid,0); }
if(PlayerInfo[playerid][pMember] == 4) { SetPlayerPos(playerid, 288.745971,169.350997,1007.171875); SetPlayerInterior(playerid,3); }
if(PlayerInfo[playerid][pMember] == 5) { SetPlayerPos(playerid, 2496.049804,-1695.238159,1014.742187); SetPlayerInterior(playerid,3); } // tu sam stao
if(PlayerInfo[playerid][pMember] == 6) { SetPlayerPos(playerid, 2807.619873,-1171.899902,1025.570312); SetPlayerInterior(playerid,8); }
if(PlayerInfo[playerid][pMember] == 7) { SetPlayerPos(playerid, 2324.419921,-1145.568359,1050.710083); SetPlayerInterior(playerid,12); }
if(PlayerInfo[playerid][pMember] == 8) { SetPlayerPos(playerid, 1235.8954, -823.5475, 1083.1563); SetPlayerInterior(playerid,5); }
if(PlayerInfo[playerid][pMember] == 9) { SetPlayerPos(playerid, 321.6736,1121.5057,1083.8828); SetPlayerInterior(playerid,5); }
}
SetPlayerSkin(playerid, PlayerInfo[playerid][pSkin]);
}