Login 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 System (
/showthread.php?tid=108020)
Login System -
_Healer_ - 11.11.2009
Hello all
i want a Script When he Join Server Register First
If he dont register he Can't Spawn any one Answear Fast pls
Re: Login System -
TheNuttyScientist - 11.11.2009
public OnPlayerRequestSpawn(playerid)
{
if(!_IS_PLAYER_LOGGED_DEFINE_[playerid])
{
SendClientMessage(playerid, 0xFFFFFFAA, "You need to login before you can spawn! Use '/login [password]'.");
return 0;
}
return 1;
}
Use this in PAWN
Re: Login System -
retart441 - 12.11.2009
Quote:
Originally Posted by Blackblood.
public OnPlayerRequestSpawn(playerid)
{
if(!_IS_PLAYER_LOGGED_DEFINE_[playerid])
{
SendClientMessage(playerid, 0xFFFFFFAA, "You need to login before you can spawn! Use '/login [password]'.");
return 0;
}
return 1;
}
Use this in PAWN
|
That won't solve the problem at all. Considering he wants a script were he needs to register, that thing will only send the message Login before spawning. Thats it.
May I suggest
http://forum.sa-mp.com/index.php?topic=126584.0 - A quick easy tutorial on how to build a login/register system.
Good luck.