SA-MP Forums Archive
[BUG]Help me.. - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: [BUG]Help me.. (/showthread.php?tid=569684)



[BUG]Help me.. - Connor Smith - 01.04.2015

Код:
	        else if (playertextid == PlayerData[playerid][pTextdraws][22])
		{
	              if (!strlen(PlayerData[playerid][pBirthdate]))
			  return SendClientMessage(playerid, COLOR_LIGHTRED, "");

		      else if (!strlen(PlayerData[playerid][pOrigin]))
	                  return SendClientMessage(playerid, COLOR_LIGHTRED, "");

		      else
		      {
	                     for (new i = 11; i < 23; i ++) 
                             {
		                   PlayerTextDrawHide(playerid, PlayerData[playerid][pTextdraws][i]);
			     }
                             switch (PlayerData[playerid][pGender])
                             {
                                   case 1:
                                       PlayerData[playerid][pSkin] = 26;
			           case 2:
               		               PlayerData[playerid][pSkin] = 193;
                             }
			     for (new i = 0; i < 100; i ++) 
                             {
		                   SendClientMessage(playerid, -1, "");
			     }
			     TogglePlayerSpectating(playerid, 0);
			     ShowNeedsTextdraw(playerid, 1);
			     PlayerData[playerid][pCreated] = 1;
			     SetPlayerPos(playerid, 1642.1957, -2334.4849, 13.5469);
	    		     SetPlayerFacingAngle(playerid, 0.0);
			     SetPlayerInterior(playerid, 0);
			     SetPlayerVirtualWorld(playerid, 0);
	    		     SetCameraBehindPlayer(playerid);
			     TogglePlayerControllable(playerid, 1);
		      }
		}


When I create account and click SPAWN on textdraw its spawning me but I die.
Whats wrong, can anyone helps?



Re : [BUG]Help me.. - nicolaskettler - 01.04.2015

Try to use SetSpawnInfo https://sampwiki.blast.hk/wiki/SetSpawnInfo


Re: [BUG]Help me.. - nezo2001 - 01.04.2015

Remove SetPlayerPos and replace with
PHP код:
SetSpawnInfoplayerid,  teamskin,1642.1957, -2334.484913.54690.0weapon1,weapon1_ammo weapon2,weapon2_ammoweapon3weapon3_ammo); //I got the spawn information from your SetPlayerPos and Angle
SpawnPlayer(playerid); 



Re: [BUG]Help me.. - Connor Smith - 01.04.2015

Quote:
Originally Posted by nezo2001
Посмотреть сообщение
Remove SetPlayerPos and replace with
PHP код:
SetSpawnInfoplayerid,  teamskin,1642.1957, -2334.484913.54690.0weapon1,weapon1_ammo weapon2,weapon2_ammoweapon3weapon3_ammo); //I got the spawn information from your SetPlayerPos and Angle
SpawnPlayer(playerid); 
Its not workings guys..


Re: [BUG]Help me.. - Threshold - 01.04.2015

Try removing the TogglePlayerSpectating line.


Re: [BUG]Help me.. - Connor Smith - 02.04.2015

Quote:
Originally Posted by Threshold
Посмотреть сообщение
Try removing the TogglePlayerSpectating line.
Its not working, now when I enter the server its banning me hah


Re: [BUG]Help me.. - Connor Smith - 03.04.2015

Any help? :O


Re: [BUG]Help me.. - Golf - 03.04.2015

try to add +1 to z cord

PHP код:
SetSpawnInfoplayerid,  teamskin,1642.1957, -2334.484913.5469 +0.0weapon1,weapon1_ammo weapon2,weapon2_ammoweapon3weapon3_ammo); //I got the spawn information from your SetPlayerPos and Angle
SpawnPlayer(playerid); 



Re: [BUG]Help me.. - Connor Smith - 05.04.2015

Quote:
Originally Posted by Golf
Посмотреть сообщение
try to add +1 to z cord

PHP код:
SetSpawnInfoplayerid,  teamskin,1642.1957, -2334.484913.5469 +0.0weapon1,weapon1_ammo weapon2,weapon2_ammoweapon3weapon3_ammo); //I got the spawn information from your SetPlayerPos and Angle
SpawnPlayer(playerid); 
Not working :/