Is this will work?
#1

Код:
stock PatikrintiPrisijungimus(playerid)
{
if(GetPVarInt(playerid, "BlogasPrisijungimas") == GalimiPrisijungimai)
{
new
	ZaidejoVardas[MAX_PLAYER_NAME],
	Stringas[50]
	;
format(Stringas,sizeof(Stringas),"[AC] %s buvo uћblokuotas serveryje. Prieћastis: Bandymas prisijungti prie RCON.", ZaidejoVardas);
NusiustiZinuteVisiems(RAUDONA, Stringas);
Ban(playerid);
}
return true;
}
public OnRconLoginAttempt(ip[], password[], success)
{
	if(!success)
	{
	PlayerLoop(ID)
	{
	SetPVarInt(ID, "BlogasPrisijungimas", GetPVarInt(ID, "BlogasPrisijungimas") + 1);
	PatikrintiPrisijungimus(ID);
	}
	}
	return true;
}
Hey everybody. Im tryied to create an RCON login anticheat: If players try to connect into RCON with wrong pssw 2times, he will gets ban. And i cant test it now.
Im set BlogasPrisijungimas PVar 0 when player connect, and
Quote:

#define GalimiPrisijungimai 2

at the top of script
Reply


Messages In This Thread
Is this will work? - by Gh0sT_ - 20.10.2010, 11:46
Re: Is this will work? - by Cameltoe - 20.10.2010, 11:57

Forum Jump:


Users browsing this thread: 1 Guest(s)