Spawn bug
#1

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);
Reply
#2

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?
Reply
#3

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.
Reply
#4

are you taking about ULRP Script? -_-
Reply
#5

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).
Reply
#6

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)
Reply
#7

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.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)