how to check if player is registered yini - 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: how to check if player is registered yini (
/showthread.php?tid=647927)
how to check if player is registered yini -
MrCesar - 13.01.2018
hey guys, i am using this spawn skin:
Код:
forward SkipSpawn(playerid);
public OnPlayerRequestClass(playerid)
{
SetTimerEx("SkipSpawn",1,0,"i",playerid);
return 1;
}
public SkipSpawn(playerid)
{
SpawnPlayer(playerid);
return 1;
}
now i want to code a tutorial eg roleplay servers, and how do i make the player spawn if he's registered and go to the tutorial if he's not, when i gmx with the code above it skips the login screen, and spawns the player before it lets u enter the password :O
Re: how to check if player is registered yini -
pulsare - 13.01.2018
Quote:
Originally Posted by MrCesar
hey guys, i am using this spawn skin:
Код:
forward SkipSpawn(playerid);
public OnPlayerRequestClass(playerid)
{
SetTimerEx("SkipSpawn",1,0,"i",playerid);
return 1;
}
public SkipSpawn(playerid)
{
SpawnPlayer(playerid);
return 1;
}
now i want to code a tutorial eg roleplay servers, and how do i make the player spawn if he's registered and go to the tutorial if he's not, when i gmx with the code above it skips the login screen, and spawns the player before it lets u enter the password :O
|
Use this for example
new registered[MAX_PLAYERS];
new tutorial[MAX_PLAYERS]; // New
registered[playerid] = 0; ( = 1; ) // Set
if(registered[playerid] == 0) ( == 0; ) // query ( if )
Set registered[playerid] = 1; after login for example or use enums
Re: how to check if player is registered yini -
MrCesar - 13.01.2018
Quote:
Originally Posted by pulsare
Use this for example
new registered[MAX_PLAYERS];
new tutorial[MAX_PLAYERS]; // New
registered[playerid] = 0; ( = 1; ) // Set
if(registered[playerid] == 0) ( == 0; ) // query ( if )
Set registered[playerid] = 1; after login for example or use enums
|
i didn't really understand :O