SA-MP Forums Archive
if player logs in rcon? - 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: if player logs in rcon? (/showthread.php?tid=277228)



if player logs in rcon? - Admigo - 17.08.2011

Heey guys,
I want to make if someone logs into rcon he gets money but how can i do that?


Re: if player logs in rcon? - Kingunit - 17.08.2011

Make a command like /givemoney only for RCON users.


Re: if player logs in rcon? - Badger(new) - 17.08.2011

When a player logs into RCON, this callback is called.


Re: if player logs in rcon? - Darnell - 17.08.2011

Here you go.
pawn Код:
public OnRconLoginAttempt(ip[], password[], success)
{
    if(success) //If the password was correct
    {
        GivePlayerMoney(playerid, amount); //Change amount to howmuch money you want him to get.
    }
    return 1;
}