how to check if player is registered yini
#1

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

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

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
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)