Jump to content

script Anti-S0beitackej-GOD-MOD xD


ffredyk

Recommended Posts

  • Majitel

Splacal sem to dneska rano z nudy xD

 

#include 

new Float:OldHP[MAX_PLAYERS];

forward GodBurn();
forward GodCheck();

public OnGameModeInit()
{
// Don't use these lines if it's a filterscript
SetTimer("GodBurn",60000,1);
return 1;
}

public GodBurn()
{
for(new i;i	{
    if(IsPlayerConnected(i))
    {
        new Float:X,Float:Y,Float:Z;
        GetPlayerPos(i,X,Y,Z);
		GetPlayerHealth(i,OldHP[i]);
		CreateExplosion(X+1,Y+1,Z,1,5);
		CreateExplosion(X-1,Y-1,Z,1,5);
		CreateExplosion(X+1,Y-1,Z,1,5);
		CreateExplosion(X-1,Y+1,Z,1,5);
		SendClientMessage(i,BARVA,"[] Kontrola GOD MODU!");
	}
}
SetTimer("GodCheck",1000,0);
}

public GodCheck()
{
   for(new i;i	{
    if(IsPlayerConnected(i))
    {
		new Float:HP;
		GetPlayerHealth(i,HP);
		if(HP == OldHP[i])
		{
		    new str[80];
		    format(str,80,"[] Hrac %s byl pozitivni na GOD MOD!",Jmeno(i));
		    SendClientMessageToAll(BARVA,str);
			//Kick(i);
			//Ban(i);
		}
	}
}
}

 

Doufam ze to bude fungovat xD

Link to comment
Share on other sites

  • Majitel
ale potom to ser* hru nie ? ked strielaš zrazu ta to testne a pod. xD

 

Je to hrozne rychly.. Ale ted me napadlo ze sem ho nicim neuhasil xD

Link to comment
Share on other sites

Splacal sem to dneska rano z nudy xD

 

#include 

new Float:OldHP[MAX_PLAYERS];

forward GodBurn();
forward GodCheck();

public OnGameModeInit()
{
// Don't use these lines if it's a filterscript
SetTimer("GodBurn",60000,1);
return 1;
}

public GodBurn()
{
for(new i;i	{
    if(IsPlayerConnected(i))
    {
        new Float:X,Float:Y,Float:Z;
        GetPlayerPos(i,X,Y,Z);
		GetPlayerHealth(i,OldHP[i]);
		CreateExplosion(X+1,Y+1,Z,1,5);
		CreateExplosion(X-1,Y-1,Z,1,5);
		CreateExplosion(X+1,Y-1,Z,1,5);
		CreateExplosion(X-1,Y+1,Z,1,5);
		SendClientMessage(i,BARVA,"[] Kontrola GOD MODU!");
	}
}
SetTimer("GodCheck",1000,0);
}

public GodCheck()
{
   for(new i;i	{
    if(IsPlayerConnected(i))
    {
		new Float:HP;
		GetPlayerHealth(i,HP);
		if(HP == OldHP[i])
		{
		    new str[80];
		    format(str,80,"[] Hrac %s byl pozitivni na GOD MOD!",Jmeno(i));
		    SendClientMessageToAll(BARVA,str);
			//Kick(i);
			//Ban(i);
		}
	}
}
}

 

Doufam ze to bude fungovat xD

 

Na něco si zapomněl :d

 

stock Jmeno(playerid)
{
  new j[255];
  GetPlayerName(playerid,j,255);
  return j;
}

Link to comment
Share on other sites

  • 3 weeks later...
  • 1 year later...

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...