first time register show server rules
#1

Hi I would like to make a dialog message box of rules, if he first time register to the server. It should appear under onplayerspawn.


Looking forwards!
Reply
#2

There are couple of ways to do this, you can try the following:
pawn Код:
//On top of your script
new bool: gRegistered[MAX_PLAYERS] = {false, ...};

// When they connect
gRegistered[playerid] = false;

// When they register
gRegistered[playerid] = true;

// When they disconnect
gRegistered[playerid] = false;

// OnSpawn
if(gRegistered[playerid])
{
    ShowPlayerDialog(playerid, 1337, DIALOG_STYLE_MSGBOX, "Rules", "Rules", "OK", "Close");
}
Reply
#3

Quote:
Originally Posted by -Prodigy-
Посмотреть сообщение
There are couple of ways to do this, you can try the following:
pawn Код:
//On top of your script
new bool: gRegistered[MAX_PLAYERS] = {false, ...};

// When they connect
gRegistered[playerid] = false;

// When they register
gRegistered[playerid] = true;

// When they disconnect
gRegistered[playerid] = false;

// OnSpawn
if(gRegistered[playerid])
{
    ShowPlayerDialog(playerid, 1337, DIALOG_STYLE_MSGBOX, "Rules", "Rules", "OK", "Close");
}
+rep working like a charm sweet!
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)