SA-MP Forums Archive
Login & Register system - 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: Login & Register system (/showthread.php?tid=176026)



Login & Register system - Ne0 - 11.09.2010

Guys I need your help

I wanna put on my server a register & login system like this:
-If a player enter on my server to not spawn until they not logged(to spawn him after /login [password])

and more much...


Re: Login & Register system - LifeStyle - 11.09.2010

On top:
pawn Код:
new LoggedIn[MAx_PLAYERS] = 0;
When he logs in:
pawn Код:
LoggedIn[playerid] = 1;
For onplayerspawn:
pawn Код:
if(LoggedIn[playerid] == 0) return SendClientMessage(playerid,color,"You cannot spawn if you are not logged in! */login password*");



Re: Login & Register system - Ne0 - 11.09.2010

thx much man i tried this now