SA-MP Forums Archive
[Help] /register - 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)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: [Help] /register (/showthread.php?tid=81206)



[Help] /register - joeri55 - 08.06.2009

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.


Re: [Help] /register - [HiC]TheKiller - 09.06.2009

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
}



Re: [Help] /register - joeri55 - 09.06.2009

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.



Re: [Help] /register - Vince - 09.06.2009

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;
}



Re: [Help] /register - joeri55 - 09.06.2009

Where must I paste it in my script?


Re: [Help] /register - [HiC]TheKiller - 10.06.2009

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).


Re: [Help] /register - [HiC]TheKiller - 10.06.2009

-Double post-

Delete