#1

Hello, I have a problem . Always appears a bug (not all player) you must spawn leads them to coordinate 0,0,0` ` Why ? use SetSpawnInfo & OnPlayerSpawn

Screen:
Reply
#2

give us code..
Reply
#3

Код HTML:
SetSpawnInfo(playerid, 0, 0, 1742.9515, -1862.3721, 13.5764, 359.5591, 0, 0, 0, 0, 0, 0);
			SpawnPlayer(playerid);
Код HTML:
public OnPlayerSpawn(playerid)
{
    if(IsPlayerConnected(playerid))
	{
	    SetPlayerFactionColor(playerid);
	    if(gLogged[playerid] == 0)
		{
	    	KickWithMessage(playerid, COLOR_LIGHTRED, "** This server requires a Login BEFORE spawn (Kicked) **");
	 	}

        if(PlayerInfo[playerid][pSkin] > 0)
		{
			SetPlayerSkin(playerid, PlayerInfo[playerid][pSkin]);
		}
		else
		{
			SetPlayerSkin(playerid, PlayerInfo[playerid][pSkin]);
		}

	    if(PlayerInfo[playerid][pTutorial] == 0)
	    {
	        SetPlayerCameraPos(playerid, 1500.7156,-1778.1880,80.3080);
			SetPlayerCameraLookAt(playerid, 1500.7156,-1778.1880,80.3080);
			SetPlayerPos(playerid, 1437.6957,-2266.6355,13.5469);

			ShowPlayerDialog(playerid, DIALOG_SEX, DIALOG_STYLE_MSGBOX, "Character Gender", "Are you a male or a female?", "Male", "Female");
		}

		if (PlayerInfo[playerid][pMember] == 1 || PlayerInfo[playerid][pLeader] == 1)// Los Santos Police Departament spawn
		{
			SetPlayerFactionColor(playerid);
			PlayerInfo[playerid][pInterior] = 6;
			SetPlayerInterior(playerid, 6);
			SetPlayerPos(playerid, 216.9725,79.1339,1005.0391);
			SetPlayerFacingAngle(playerid, 0);
			return 1;
		}
		/*if (PlayerInfo[playerid][pMember] == 2 || PlayerInfo[playerid][pLeader] == 2)// Las Venturas Police Departament spawn
		{
			SetPlayerFactionColor(playerid);

			PlayerInfo[playerid][pInterior] = 3;
			SetPlayerInterior(playerid, 3);

			SetPlayerPos(playerid, 297.3488,186.3873,1007.1719);
			SetPlayerFacingAngle(playerid, 0);
			return 1;
		}
		if (PlayerInfo[playerid][pMember] == 3 || PlayerInfo[playerid][pLeader] == 3)// San Fierro Police Departament spawn
		{
			SetPlayerFactionColor(playerid);

			PlayerInfo[playerid][pInterior] = 0;
			SetPlayerInterior(playerid, 0);

			SetPlayerPos(playerid, -1606.3876,676.6782,-5.2422);
			SetPlayerFacingAngle(playerid, 0);
			return 1;
		}*/
		if (PlayerInfo[playerid][pMember] == 4 || PlayerInfo[playerid][pLeader] == 4)// FBI spawn
		{
			SetPlayerFactionColor(playerid);
			PlayerInfo[playerid][pInterior] = 3;
			SetPlayerInterior(playerid, 3);
			SetPlayerVirtualWorld(playerid, 1);
			SetPlayerPos(playerid, 297.4675,186.6026,1007.1719);
			SetPlayerFacingAngle(playerid, 90);
			return 1;
		}
  		if (PlayerInfo[playerid][pMember] == 5 || PlayerInfo[playerid][pLeader] == 5)// National Guard spawn
		{
			SetPlayerFactionColor(playerid);
			PlayerInfo[playerid][pInterior] = 0;
			SetPlayerInterior(playerid, 0);
			SetPlayerPos(playerid, 222.5067,1872.3901,13.7344);
			SetPlayerFacingAngle(playerid, 0);
			return 1;
		}
		if (PlayerInfo[playerid][pMember] == 6 || PlayerInfo[playerid][pLeader] == 6)// Paramedics Department spawn
		{
			SetPlayerFactionColor(playerid);
			PlayerInfo[playerid][pInterior] = 3;
			SetPlayerInterior(playerid, 3);
			SetPlayerPos(playerid, 288.7759,168.2169,1007.1719);
			SetPlayerFacingAngle(playerid, 0);
			return 1;
		}
		if (PlayerInfo[playerid][pMember] == 7 || PlayerInfo[playerid][pLeader] == 7)// Taxy Los Santos spawn
		{
			SetPlayerFactionColor(playerid);
			PlayerInfo[playerid][pInterior] = 18;
			SetPlayerInterior(playerid, 18);
			SetPlayerPos(playerid, -220.1717,1403.8214,27.7734);
			SetPlayerFacingAngle(playerid, 0);
			return 1;
		}
		if (PlayerInfo[playerid][pMember] == 8 || PlayerInfo[playerid][pLeader] == 8)// School Instructors spawn
		{
			SetPlayerFactionColor(playerid);
			PlayerInfo[playerid][pInterior] = 3;
			SetPlayerInterior(playerid, 3);
			SetPlayerPos(playerid, -2029.7311,-116.0656,1035.1719);
			SetPlayerFacingAngle(playerid, 0);
			return 1;
		}
		if (PlayerInfo[playerid][pMember] == 9 || PlayerInfo[playerid][pLeader] == 9)// Hitman Agency spawn
		{
			SetPlayerFactionColor(playerid);
			PlayerInfo[playerid][pInterior] = 1;
			SetPlayerInterior(playerid, 1);
			SetPlayerPos(playerid, -2163.7312,644.2786,1057.5938);
			SetPlayerFacingAngle(playerid, 0);
			return 1;
		}
		if (PlayerInfo[playerid][pMember] == 10 || PlayerInfo[playerid][pLeader] == 10)// News Reporters spawn
		{
			SetPlayerFactionColor(playerid);
			PlayerInfo[playerid][pInterior] = 15;
			SetPlayerInterior(playerid, 15);
			SetPlayerPos(playerid, 382.8199,1460.9938,1080.1875);
			SetPlayerFacingAngle(playerid, 0);
			return 1;
		}
		if (PlayerInfo[playerid][pMember] == 11 || PlayerInfo[playerid][pLeader] == 11)// Grove Street Families spawn
		{
			SetPlayerFactionColor(playerid);
			PlayerInfo[playerid][pInterior] = 5;
			SetPlayerInterior(playerid, 5);
			SetPlayerPos(playerid, 140.4286,1374.8578,1086.3372);
			SetPlayerFacingAngle(playerid, 0);
			GivePlayerWeapon(playerid, 5, 1);
			return 1;
		}
		if (PlayerInfo[playerid][pMember] == 12 || PlayerInfo[playerid][pLeader] == 12)// The Ballas Family spawn
		{
			SetPlayerFactionColor(playerid);
			PlayerInfo[playerid][pInterior] = 3;
			SetPlayerInterior(playerid, 3);
			SetPlayerPos(playerid, 957.0583,-51.0797,1001.1172);
			SetPlayerFacingAngle(playerid, 0);
			GivePlayerWeapon(playerid, 5, 1);
			return 1;
		}
		if (PlayerInfo[playerid][pMember] == 13 || PlayerInfo[playerid][pLeader] == 13)// Los Santos Vagos spawn
		{
			SetPlayerFactionColor(playerid);
			PlayerInfo[playerid][pInterior] = 12;
			SetPlayerInterior(playerid, 12);
			SetPlayerPos(playerid, 2324.3223,-1136.4896,1051.3047);
			SetPlayerFacingAngle(playerid, 0);
			GivePlayerWeapon(playerid, 5, 1);
			return 1;
		}
		if (PlayerInfo[playerid][pMember] == 14 || PlayerInfo[playerid][pLeader] == 14)// Varrios Los Aztecas spawn
		{
			SetPlayerFactionColor(playerid);
			PlayerInfo[playerid][pInterior] = 5;
			SetPlayerInterior(playerid, 5);
			SetPlayerPos(playerid, 319.7562,1122.0352,1083.8828);
			SetPlayerFacingAngle(playerid, 0);
			GivePlayerWeapon(playerid, 5, 1);
			return 1;
		}
	}
	return 1;
}
Reply
#4

Bug occurs if a car and then die !
Reply
#5

Please help me
Reply
#6

bump
Reply
#7

BUMB !
Reply
#8

where did you put this
PHP код:
SetSpawnInfo(playerid001742.9515, -1862.372113.5764359.5591000000);
            
SpawnPlayer(playerid); 
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)