Spawn problem - 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: Spawn problem (
/showthread.php?tid=283875)
Spawn problem -
Marricio - 17.09.2011
I've got a spawn problem, wich i had in past scripts and i have no clue how to fix it up.
I add the next code in the script:
In any part of my script that would be logic to add in, my problem is, it doesnt spawns, it still shows the skin bar(added in 0.3a), wich i DONT want to be there.
I've tried adding SetSpawnInfo but it spawns me, BUT it sets me skin 0 (idk why) and it shows radar and etc, i tried adding TogglePlayerSpectating but still dont works.
If you guys have any clue it would be really usefull and +rep.
Thanks,
Marricio.
Re: Spawn problem - Emmet_ - 17.09.2011
Put this in your login script:
Re: Spawn problem -
Marricio - 17.09.2011
Quote:
Originally Posted by Emmet_
Put this in your login script:
|
I said i added that in most logic places, including that.
Re: Spawn problem -
RoleplayEditor - 17.09.2011
is it your own script or editing one ?
Re: Spawn problem -
Marricio - 17.09.2011
Quote:
Originally Posted by RoleplayEditor
is it your own script or editing one ?
|
Its my own script.
Re: Spawn problem -
[MWR]Blood - 17.09.2011
What do you exactly want to do? Skip the class selection and spawn the player?
Re: Spawn problem -
Marricio - 17.09.2011
Exactly, something like that.
Re: Spawn problem -
[MWR]Blood - 17.09.2011
pawn Код:
public OnPlayerRequestClass(playerid, classid)
{
SpawnPlayer(playerid);
return 0;//You have to return 0 to skip the class selection!
}
Re: Spawn problem -
Marricio - 17.09.2011
Shame it didnt worked, I'm making a roleplay script so after it logins in or register the skin bar shows up.
Re: Spawn problem -
Tee - 17.09.2011
I suggesting killing the player. (Set health to 0.0)