[Help] /register
#1

Hello,

This is my /register script:
http://pastebin.com/m45512634

How can I make it so that people first need to do /register and then spawn.
Because now people press shift and think they allready got a account.
Reply
#2

pawn Код:
if(gPlayerLogged[playerid] == 0)
{
  SendClientMessage(playerid,COLOR_RED,"You must registered or logged in before spawning!");
  ForceClassSelection(playerid);//This will force the class selection so until they log in they cant spawn
}
Reply
#3

I've added it now but I still get 1 error.
http://pastebin.com/m49e6b036

pawn Код:
C:\Documents and Settings\Joeri\Bureaublad\samp server\gamemodes\penls.pwn(9380) : error 017: undefined symbol "ForcePlayerClassSelection"
Pawn compiler 3.2.3664          Copyright (c) 1997-2006, ITB CompuPhase


1 Error.
Reply
#4

The function is called ForceClassSelection
But I prefer doing this:

pawn Код:
public OnPlayerRequestSpawn(playerid)
{
  if(!logged[playerid])
  {
    SendClientMessage(playerid, COLOR_RED, "Login First!");
    return 0;
  }
  return 1;
}
Reply
#5

Where must I paste it in my script?
Reply
#6

Quote:
Originally Posted by Vince
The function is called ForceClassSelection
But I prefer doing this:

pawn Код:
public OnPlayerRequestSpawn(playerid)
{
  if(!logged[playerid])
  {
    SendClientMessage(playerid, COLOR_RED, "Login First!");
    return 0;
  }
  return 1;
}
OOPS, my mistake. Also that way is virtually the same .

Quote:
Originally Posted by Joeri
Where must I paste it in my script?
Mine in OnPlayerSpawn(playerid).
Reply
#7

-Double post-

Delete
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)