Spawning after Login
#1

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?
Reply
#2

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

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

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
Reply


Forum Jump:


Users browsing this thread: 3 Guest(s)