Question - OnPlayerSpawn - 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: Question - OnPlayerSpawn (
/showthread.php?tid=439903)
Question - OnPlayerSpawn -
Akcent_Voltaj - 27.05.2013
Can it be interior: 1 at onplayerspawn or it has to be interior 0 ??because I put everthing and the interior dosent load!i need help in teamviewer ..no one can help me..i have this problem since last month..its a saving/loading position...
Re: Question - OnPlayerSpawn -
Mystique - 27.05.2013
Wherever you want to spawn you have to use the correct interior. Where's your character spawning? If it isn't inside an interior it should be 0.
Re: Question - OnPlayerSpawn -
Akcent_Voltaj - 27.05.2013
so look. I spawn in LSPD with interior 6!!!!!So after I go outside in interior 0 and if I die I spawn in pd and fall with interior 0!
Re: Question - OnPlayerSpawn -
Mystique - 27.05.2013
Show me your OnPlayerSpawn callback.
Re: Question - OnPlayerSpawn -
Akcent_Voltaj - 27.05.2013
il give teamviewer?
Re: Question - OnPlayerSpawn -
Mystique - 27.05.2013
I don't have teamviewer, just post your OnPlayerSpawn callback.
Re: Question - OnPlayerSpawn -
Akcent_Voltaj - 27.05.2013
EDIT!
Re: Question - OnPlayerSpawn -
Mystique - 27.05.2013
First of all, why is there a
Код:
SpawnPlayer(playerid);
inside OnPlayerSpawn? And as you can see your variable sets the
Код:
PlayerInfo[playerid][pInt]
to 0 when the player spawns which means that if your player is supposed to spawn inside the PD the interior won't load since your SetPlayerInterior functions sets your interior to 0.
Re: Question - OnPlayerSpawn -
Akcent_Voltaj - 27.05.2013
yes.i said above in EDIT!im doing tests..cause no one knows..
Re: Question - OnPlayerSpawn -
Mystique - 27.05.2013
I want to know one thing. Is the player only supposed to spawn inside the LSPD or are there any other places the player would spawn?