Login System
#1

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
Reply
#2

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
Reply
#3

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.

Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)