How to disable "spawn" thingy... - 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)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: How to disable "spawn" thingy... (
/showthread.php?tid=261591)
[Solved]How to disable "spawn" thingy... -
RoCK'N'Rolla - 14.06.2011
hi there,
On my server, after a player has connected, some textdraws appearing first (before spawning). But if the player clicks "Spawn", script goes wrong. So, i want to disable that "Spawn" button (at least no effect after clicked it). Any ideas?
Re: How to disable "spawn" thingy... -
Calgon - 14.06.2011
You could spawn them and then force them in to spectating?
There are many methods, I've forgotten which are the best.
Re: How to disable "spawn" thingy... -
playbox12 - 14.06.2011
When they connect put the player in spectator mode, that'll bypass it, process your script, pull him out of spectator mode and spawn him using whats said above (SpawnPlayer - or put him back into class selection).
Re: How to disable "spawn" thingy... -
XGh0stz - 14.06.2011
Why not try return 0 at the end of OnPlayerRequestClass?
(Assuming you want to skip ALL Character Selection SAMP Features)
If anything, that should stop them from spawning if not knock out the buttons too, worth a shot though...
Re: How to disable "spawn" thingy... -
RoCK'N'Rolla - 14.06.2011
Thanks to all, problem has been solved.
Код:
public OnPlayerConect(playerid)
{
ViewingTextDraws[playerid] = 1;
}
public OnPlayerRequestSpawn(playerid)
{
if(ViewingTextDraws[playerid] == 1) return 0;
return 1;
}