SpawnPlayer doesn't work !
#1

Hey guys, i am making my gm and if i go to server --> login table and if i pressed LOGIN so that should auto-spawn me.

i set it after load account variables but it doesn't work. Please help me !!
Reply
#2

It would help if we could see the code ?
Reply
#3

pawn Код:
SpawnPlayer(playerid);
Reply
#4

Quote:
Originally Posted by Markx
Посмотреть сообщение
pawn Код:
SpawnPlayer(playerid);
Yes bro, i know it and i use this

Код:
if (dialogid == D_LOGIN)
	{
	    if (response)
		{
		   ...
                   .....
                    ....

                    ....
                   set all variables
					
			P_DATA[playerid][Login] = true;
			return SpawnPlayer(playerid);
		}
	}
Reply
#5

First , OnPlayerConnect you shot SetSpawnInfo to this playerid ....
Then whenever you load your variables, you should first spawn the player , then load them .


This forum requires that you wait 120 seconds between posts. Please try again in 18 seconds.BULLSHIT!
Reply
#6

ok i must set first spawnplayer(playerid) ?
Reply
#7

You got a register system ?
Anyways, You gotta SetSpawnInfo(playerid....)
https://sampwiki.blast.hk/wiki/SetSpawnInfo

Then you will need to spawnplayer
then set the player variables , and give him weapons.
Reply
#8

eehm, i have register system by dini
Reply
#9

i must use setspawn info in that dialog

SetSpawnInfo(.....
SpawnPlayer(playerid);
Reply
#10

Yes, and idk if it will help, never actually tried, but try returning 0 in OnPlayerRequestClass. I got SetSpawnInfo and SpawnPlayer in my zombie script and I'm returning 0 in OnPlayerRequestClass, everything works.
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)