There is a problem on the Spawn Button
#1

There is a problem on the Spawn Button When i connect to my gamemode its say you have to register or login
then i press on the spawn button and i spawned How to fix this problem?
Sorry for my bad english.
Reply
#2

It is because In Everybosy's tutorial at the end of the register dialog , its written SetPlayerPos , and spawn player ,
If you remove it someone can hack dialogs(skip them) so I recommend to use a bool to check if he is loggedIn or not,and then put this OnPlayerSpawn
PHP код:
public OnPlayerSpawn(playerid)
{
     if(
PlayerInfo[playerid][LoggedIn] == false)
    {
          
Kick(playerid);
     }
     return 
1;

Reply
#3

its not working.
Reply
#4

You can hide the spawn button by setting player in spectating mode (TogglePlayerSpectating) and if you want to spawn the player simply remove player from spectating mode the same way.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)