Menu

Show posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Show posts Menu

Messages - wilber32

#1
Snippet Showroom / Re: Auto Messages
Dec 21, 2015, 04:06 PM
Prefer the Kakan is simpler than this
#2
Snippet Showroom / Re: Anti-Lag
Dec 21, 2015, 04:04 PM
Hahaha kakán good system: P
#3
Snippet Showroom / Re: Anti-Lag
Dec 20, 2015, 10:53 PM
function onScriptLoad()
{
NewTimer( "AntiPing", 1000, 0 );
}

function AntiPing()
{
for (local i=0; i<GetMaxPlayers(); i++)
{
local player=FindPlayer(i);
if(player)
{
if (player.Ping >= 750 )
{
Message("Auto-Kicked:[ " + player.Name + " ] Reason:[ Execeeded ping 750ms ]");
player.Kick();
}
}
}
}
#4
Snippet Showroom / Anti-Lag
Dec 20, 2015, 05:28 PM
hi, friends today will show you an antilag to clear to everyone who sees porn as they play. :V

function onPlayerSpawn()
{
if (player.Ping >= the amount you want  )
{
Message("Auto-Kicked:[ " + player.Name + " ] Reason:[ Execeeded ping 750ms ]");
player.Kick();
}
}

Credits: [ZG]Luis, Wilber32
#5
Just download this Cleo on youtube https://www.youtube.com/watch?v=VN0JNZCnGt4
#6
Lol Hotdogcat Thijn if you're so script help me with that, what he hotdogcat says is true
#7
ah ok KAKAN
#8
You're smart, When the timer is ON , He killed the player and appears spawnkill, But as time passes employee He killed the player and appears spawnkill.
I noticed after -.-! that bug
#9
You should fit your script
#10
I have one simpler


Function Tables ();
{
QuerySQL( db, "CREATE TABLE IF NOT EXISTS Alias ( IP TEXT, Nicks TEXT )" );
}

function onPlayerJoin( player )
{
AddAlias( player );
}

function AddAlias( player )
{
   local a, subnet, q, data, newdata, found = false, i = 1;
   a=split(player.IP,".");
   subnet=a[0]+"."+a[1];
   q = QuerySQL( db, "SELECT Nicks FROM Alias WHERE IP='" + subnet + "'" );
   data = GetSQLColumnData( q, 0 );
   if ( !data ) QuerySQL( db, "INSERT INTO Alias VALUES('" + subnet + "', '" + player.Name + "')" );
   else{
          while ( GetTok( data, " - ", i ) )
          {
            if ( GetTok( data, " - ", i ) == player.Name ) found = true; break;
            i++;
          }
      newdata = data +" - "+ player.Name;
          if ( !found ) QuerySQL( db, "UPDATE Alias SET Nicks='" + newdata + "' WHERE IP='" + subnet + "'" );
    }
FreeSQLQuery( q );
}

function GetAlias( IP )
{
    local a, subnet, q, data;
    a=split(IP,".");
    subnet=a[0]+"."+a[1];
q = QuerySQL( db, "SELECT Nicks FROM Alias WHERE IP='" + subnet + "'" );
    data = GetSQLColumnData( q, 0 );
if ( data ) return data;
else return "None";
}

function onPlayerCommand( player, cmd, text )
{
else if ( cmd == "alias" )
{
   if ( stats[ player.ID ].Level < 3 ) MessagePlayer( "Error - You don't have access to it.", player);
   else if ( !text ) MessagePlayer( "Syntax: /alias <player>", player);
   else
   {
     local plr = GetPlayer( GetTok( text, " ", 1 ) );
     if ( !plr ) MessagePlayer( "Error - Unknown player.", player);
     else MessagePlayer( "" + plr.Name + "(" + plr.IP + ")'s aliases: " + GetAlias( plr.IP ) + ".", player );
   }
}

else if ( cmd == "salias" )
{
   if ( stats[ player.ID ].Level < 3 ) MessagePlayer( "Error - You don't have access to it.", player);
   else if ( !text ) MessagePlayer( "Syntax: /salias <subnet>", player);
   else
   {
     local ip = split(text, "."), length = NumTok(text, ".").tointeger();
if (  length < 2 ) PrivMessage( player, "Invalid IP" );
     else if (!IsNum( ip[0] )) MessagePlayer( "Error - Unknown IP.", player);
else if (!IsNum( ip[1] )) MessagePlayer( "Error - Unknown IP.", player);
     else MessagePlayer( "Subnet(" + text + ")'s aliases: " + GetAlias( text ) + ".", player );
   }
}
}

#11
Nice Diego
#12
That did not work for me kakán
#13
give me link
#14
if you're so scrit modifies this Thijn
#15
I only did this system