SAN News, LSP, Medic spawns, are fucked up
#1

Everytime I get spawned, it spawns in the sky, also getting inside the studio/hospital/prison is fucked up, there is the spawn codes:
Quote:

if (PlayerInfo[playerid][pMember] == 4 || PlayerInfo[playerid][pLeader] == 4)//Medic spawn
{
hostimer[playerid] = SetTimerEx("EnterHospital",3000,0,"i",playerid);
TogglePlayerControllable(playerid,0);
SetPlayerPos(playerid,1482.6300,-2637.1663,290.6512);
SetPlayerInterior(playerid,0);
SetPlayerFacingAngle(playerid, 2.2504);
SetPlayerToTeamColor(playerid);
SetPlayerPos(playerid, 1180.2388,-1331.6196,1006.402;
SetPlayerInterior(playerid,6);
SetPlayerFacingAngle(playerid, 0);
PlayerInfo[playerid][pInt] = 6;
return 1;
}

Quote:

if (PlayerInfo[playerid][pMember] == 9 || PlayerInfo[playerid][pLeader] == 9) //News spawn
{
TogglePlayerControllable(playerid, 0);
hostimer[playerid] = SetTimerEx("EnterHospital",3000,0,"i",playerid);
SetPlayerToTeamColor(playerid);
SetPlayerInterior(playerid,3);
SetPlayerPos(playerid, 355.7899,204.0173,1008.382;
SetPlayerFacingAngle(playerid, 13.9345);
PlayerInfo[playerid][pInt] = 3;
AC_GivePlayerWeapon(playerid, 43, 20);
return 1;
}

Quote:

if (IsAPrisonGuard(playerid))//LSP spawn
{
hostimer[playerid] = SetTimerEx("EnterHospital",3000,0,"i",playerid);
TogglePlayerControllable(playerid,0);
SetPlayerToTeamColor(playerid);
SetPlayerInterior(playerid, 2);
SetPlayerPos(playerid, 1113.2122,1526.7195,5.8393);
SetPlayerFacingAngle(playerid, 176.9196);
PlayerInfo[playerid][pInt] = 2;
return 1;
}

Reply
#2

If you spawn in the sky it's because of one of the following:
The map is not loaded (if you are using a map for the interiors/where the ppl spawn)
The coordinates are not correct
You teleport a player to the wrong virtual world, in which the map does not exist, causing them to spawn in the air.
There are other possibilities, but this was all i could think of.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)