Spawn Screen wont go away - 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: Spawn Screen wont go away (
/showthread.php?tid=271450)
Spawn Screen wont go away -
slymatt - 24.07.2011
How do i go about getting rid of the spawn selection after death i mean the screen that comes up [<<] [>>] [SPAWN] Because i have to press spawn before my hospital code runs =S
Re: Spawn Screen wont go away -
Finn - 24.07.2011
I think if you return 1 in
OnPlayerRequestClass, player won't get into class selection after death.
Re: Spawn Screen wont go away -
slymatt - 24.07.2011
its already 1 i tried deleting everything in it and leaving just the 1 that doesnt work and i also tried setting it to 0 that didnt work either any more ideas?
Re: Spawn Screen wont go away -
MoroDan - 24.07.2011
PHP код:
new bool:Spawned[MAX_PLAYERS char] = {false, ...};
// OnPlayerConnect
Spawned {playerid} = false;
// OnPlayerSpawn
if(!Spawned {playerid}) Spawned {playerid} = true;
// OnPlayerRequestClass
if(Spawned {playerid}) TogglePlayerSpectating(playerid, 1);
Re: Spawn Screen wont go away -
slymatt - 24.07.2011
what do i put after false where yu have put ={false, ...};
Re: Spawn Screen wont go away -
Finn - 24.07.2011
You must have some filterscript returning 0. Go through all the filterscripts you use and check it out.
Re: Spawn Screen wont go away -
slymatt - 24.07.2011
i dont have a single filterscript. ive coded all myself.
Re: Spawn Screen wont go away -
MoroDan - 24.07.2011
This:
new bool:Spawned[MAX_PLAYERS char] = {false, ...}; you put under #include <a_samp>