Login Kick
#1

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

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

in my GM or my FS Admin system?
Reply
#4

I guess in your admin FS.
Reply
#5

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.
Reply
#6

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

Yes, it work. Ths so much man

Clan close topic
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)