if not registered could not spawn.
#1

I know how to make this. But i have some problem.

pawn Код:
public OnPlayerRequestSpawn(playerid)
{
    if(!GetPVarInt(playerid, "Logged", 0))
    {
        SendClientMessage(playerid,COLOR_GREEN,"You need to /register.");
        return 0;
    }
    return 1;
}
correct this. Thank You.
Reply
#2

Код:
if(GetPVarInt(playerid, "Logged") == 0) return SendClientMessage(playerid,COLOR_GREEN,"You need to /register.");
Reply
#3

Quote:
Originally Posted by exclide1
Посмотреть сообщение
Код:
if(GetPVarInt(playerid, "Logged") == 0) return SendClientMessage(playerid,COLOR_GREEN,"You need to /register.");
that will return 1 and spawn the player. You must return 0 to prevent this from happen; however, the check was correct.
Reply
#4

didn't worked perfectly...
Reply
#5

Quote:
Originally Posted by Champ
Посмотреть сообщение
didn't worked perfectly...
Код:
public OnPlayerRequestSpawn(playerid)
{
    if(GetPVarInt(playerid, "Logged") == 0)
	{
		SendClientMessage(playerid,COLOR_GREEN,"You need to /register.");
		return 0;
	}
	return 1;
}
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)