Help Command
#3

I guess this will help you out.


Код HTML:
new TrueRcon[MAX_PLAYERS];

public OnPlayerConnect(playerid)
{
    TrueRcon[playerid] = 0;
    return 1;
}

public OnRconLoginAttempt(ip[], password[], success)
{
    if(!success)
    	Kick(playerid);
    if(success && !TrueRcon[playerid])
        Kick(playerid);
    return 1;
}

CMD:truercon(playerid,params[])
{
	if(IsPlayerConnected(playerid))
	{
	    // add your admin line here
	    if(PlayerInfo[playerid][pAdmin] < 6) return SendClientMessage(playerid, -1, " You are not premitted ");
		TrueRcon[playerid] = 1;
	}
}
Reply


Messages In This Thread
Help Command - by itachi - 24.03.2015, 21:06
Re: Help Command - by JaydenJason - 24.03.2015, 21:09
Re: Help Command - by kepa333 - 24.03.2015, 21:26
Re: Help Command - by itachi - 24.03.2015, 21:37
Re: Help Command - by kepa333 - 24.03.2015, 22:09

Forum Jump:


Users browsing this thread: 1 Guest(s)