[BUG]Help me..
#1

Код:
	        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?
Reply
#2

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

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); 
Reply
#4

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..
Reply
#5

Try removing the TogglePlayerSpectating line.
Reply
#6

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

Any help? :O
Reply
#8

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); 
Reply
#9

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 :/
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)