SA-MP Forums Archive
Spawn bug - 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 bug (/showthread.php?tid=656767)



Spawn bug - Julixparker - 23.07.2018

Good morning everyone,

I have a little problem with spawnear. My character takes several seconds to reappear.

public OnPlayerRequestClass(playerid, classid)
{
SetSpawnInfo(playerid, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
TogglePlayerSpectating(playerid, true);
return 1;
}

To spawn player i use:
TogglePlayerSpectating(playerid, false);


Re: Spawn bug - JasonRiggs - 23.07.2018

I don't understand what you're talking about? Where is the spawning code?? The code above is just responsible for not allowing the player to request a class (necessary for RP servers), Where is the spawn code?


Re: Spawn bug - Julixparker - 23.07.2018

Ok, I guess it does not explain me well. Could you explain how I can use "TogglePlayerSpectating" correctly? Please


I would like that when a player enters the server, the "spawn" buttons will not be seen and then it will reappear without problems.


Re: Spawn bug - RODELA - 23.07.2018

are you taking about ULRP Script? -_-


Re: Spawn bug - Julixparker - 23.07.2018

Quote:
Originally Posted by RODELA
Посмотреть сообщение
are you taking about ULRP Script? -_-
mmm..no I'm talking about the character that takes me a long time to spaw just (3 seconds).


Re: Spawn bug - GTLS - 24.07.2018

Does it happen only after he spawns for the first time or happens each time he spawns(like after exiting interiors, or after death etc)


Re: Spawn bug - Julixparker - 24.07.2018

Quote:
Originally Posted by GTLS
Посмотреть сообщение
Does it happen only after he spawns for the first time or happens each time he spawns(like after exiting interiors, or after death etc)
The first spawn only.