SA-MP Forums Archive
Login Kick - 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 Kick (/showthread.php?tid=157957)



Login Kick - RatHack - 08.07.2010

Hi

im searching for a, when u join in the server, u must login, if u dont /login password u can't spawn

anyone know?


Re: Login Kick - kLx - 08.07.2010

Add in
OnPlayerRequestSpawn:

if ( !aLogged [ playerid ] )
{
SendClientMessage ( playerid, COLOR_GREY, "** You must login before spawning." );
return false;
}
just replace the aLogged with your login check.


Re: Login Kick - RatHack - 08.07.2010

in my GM or my FS Admin system?


Re: Login Kick - Hiddos - 08.07.2010

I guess in your admin FS.


Re: Login Kick - RatHack - 08.07.2010

I putted it in mi FS

it give me the next errors:

C:\Documents and Settings\Propietario\Escritorio\sa-mp server\filterscripts\LuxAdmin.pwn(772) : error 010: invalid function or declaration
C:\Documents and Settings\Propietario\Escritorio\sa-mp server\filterscripts\LuxAdmin.pwn(775) : error 010: invalid function or declaration
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase


2 Errors.


Re: Login Kick - O_x - 08.07.2010

pawn Код:
public OnPlayerRequestSpawn(playerid)
{
    if(AccInfo[playerid][LoggedIn] == 0 && AccInfo[playerid][Registered] == 1)
    {
        SendClientMessage(playerid,COLOR,"You must login before you can spawn! Use /login [password]");
        return 0;
     }
     return 1;
}
Should work,just change the COLOR to the color you'd like of course.


Re: Login Kick - RatHack - 08.07.2010

Yes, it work. Ths so much man

Clan close topic