SA-MP Forums Archive
Force a Player to Register/Login - 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: Force a Player to Register/Login (/showthread.php?tid=127383)



Force a Player to Register/Login - laserhel50 - 13.02.2010

Title tells all, how to make a Player Forced to register/Login?

And, how do i delete/Bypass the Skin Selection?


Re: Force a Player to Register/Login - Jeffry - 13.02.2010

Well, you could block the spawn or something. I made it, that if a non-logged in player spawns, he gets teleported to the RC Hall.

Depends alot on your script.


Re: Force a Player to Register/Login - laserhel50 - 13.02.2010

could you suggest something or...??


Re: Force a Player to Register/Login - truffes - 13.02.2010

Well, it really depends alot on your Script.
I will give you an example:

Quote:

public OnPlayerRequestSpawn(playerid)
{
if (gPlayerLogged[playerid] == 1) // Or whatever you got here
{ }
else
{
SendClientMessage(playerid, 0xFF0000AA, "Login before you spawn!");
return 0;
}
return 1;
}