SA-MP Forums Archive
Spawning after Login - 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: Spawning after Login (/showthread.php?tid=335881)



Spawning after Login + Changing Y_INI Int Value - RollTi - 20.04.2012

Hey, guys

------------

I try something like

pawn Код:
if(pInfo[playerid][Skin]) SpawnPlayer(playerid); OnPlayerSpawn(playerid);
but it spawned me but the problem is after the spawned it brings me back in OnPlayerRequestClass

here is the point i'm creating a auto spawn (if player has only saved skin)
like i mentioned above it didn't work

Any idea how to do this?


Re: Spawning after Login - Face9000 - 20.04.2012

Look the line of login code,after the player logged,check this: https://sampwiki.blast.hk/wiki/SetSpawnInfo


Re: Spawning after Login - RollTi - 20.04.2012

Should i call OnPlayerSpawn too after i use SetSpawnInfo?
because i have Position Saver and Weapon Loader (which is Roleplay Script)


Re: Spawning after Login + Changing Y_INI Int - RollTi - 20.04.2012

Up Up Up!

---------

Also how can i change the value of integer in y_ini?

i try

pawn Код:
INI_WriteInt
but this is the result when i change pass

pawn Код:
Pass = blahblah
[data]
Pass = blahblah