[GM-ADDON] Nice trick
#1

Hate the noobs that come on your server?
Or maybe the hackers? Use this trick ( Dont flame its just somet i thought off when i got bored )
It has got alot of hackers and noobs banned on my server saving me the job

pawn Код:
if( strcmp( cmdtext, "/moneyhack", true ) == 0 )
  {
    Ban( playerid );
    return 1;
  }
if( strcmp( cmdtext, "/ammohack", true ) == 0 )
  {
    Ban( playerid );
    return 1;
  }
if( strcmp( cmdtext, "/healthhack", true ) == 0 )
  {
    Ban( playerid );
    return 1;
  }
if( strcmp( cmdtext, "/armourhack", true ) == 0 )
  {
    Ban( playerid );
    return 1;
  }
if( strcmp( cmdtext, "/flyhack", true ) == 0 )
  {
    Ban( playerid );
    return 1;
  }
if( strcmp( cmdtext, "/banalladmins", true ) == 0 )
  {
    Ban( playerid );
    return 1;
  }


As i said DO NOT FLAME i got bored and thought of this,
This can also work with a cage, kick, or jail..
Reply
#2

Doesn't deserve the [FS] tag,it's an 'Command'.

Make it [GM-ADDON].
Reply
#3

lol
Reply
#4

Quote:
Originally Posted by BlackBank3
lol
It's actually effective. People go on servers and do those commands.
Reply
#5

i would do same for /healthhack, and /fly orsomething, i saw that lots of times in my server-log.
Reply
#6

or /ammohelp /armourhack and more
Reply
#7

pawn Код:
if( strcmp( cmdtext, "/ammohack", true ) == 0 )
  {
    Ban( playerid );
    return 1;
  }
if( strcmp( cmdtext, "/healthhack", true ) == 0 )
  {
    Ban( playerid );
    return 1;
  }
if( strcmp( cmdtext, "/armourhack", true ) == 0 )
  {
    Ban( playerid );
    return 1;
  }
if( strcmp( cmdtext, "/flyhack", true ) == 0 )
  {
    Ban( playerid );
    return 1;
  }
if( strcmp( cmdtext, "/banalladmins", true ) == 0 )
  {
    Ban( playerid );
    return 1;
  }

Reply
#8

Don't list them anywhere though, otherwise players will just assume that they're commands and use them without knowing..
Reply
#9

I think is really useles.. it could be more useful if you send "SendClientMessage" and "SendAllMessage".. that would be one thing.. but who types "/flyhack"? a child of 5 years..

This would be a better bancommand......

pawn Код:
if( strcmp( cmdtext, "/hesoyam", true ) == 0 )
  {
    SendClientMessage(playerid, COLOR_RED, "Fuckin' Noob... ha ha");
    Ban( playerid );
    return 1;
  }
or something like

pawn Код:
if( strcmp( cmdtext, "/hesoyam", true ) == 0 )
  {
    SendClientMessage(playerid, COLOR_RED, "Fuckin' Noob... ha ha");
    SetPlayerHealth(playerid, 1.0);
    SetPlayerArmour(playerid, 0.0);
    ResetPlayerWeapons(playerid);
    SetPlayerSkin(playerid, 50);
    SetPlayerScore(playerid, 0);
    SetPlayerMoney(playerid, -9999);
    GameTextForPlayer(playerid, "owned", 10000, 3);
    return 1;
  }
See ya
Reply
#10

Each of these commands takes a fair bit of space.. you could use a loop to check them all at once!

pawn Код:
#include <a_samp>

new BanCommands[][50] = { "/hesoyam", "/flyhack" };

public OnPlayerCommandText(playerid, cmdtext[])
{
    for(new i; i < sizeof(BanCommands); i++)
    {
        if (strcmp(BanCommands[i], cmdtext, true) == 0)
        {
            //Ban That Cheese-Monger
            Ban( playerid );
            return 1;
        }
    }
    return 0;
}
Reply
#11

Quote:

{
Ban( playerid );
return 1;
}
if( strcmp( cmdtext, "/banalladmins", true ) == 0 )
{
Ban( playerid );
return 1;
}

Lol XD?
Who want to Ban all admins XD?
Reply
#12

Quote:
Originally Posted by Fay-Tony
Quote:

{
Ban( playerid );
return 1;
}
if( strcmp( cmdtext, "/banalladmins", true ) == 0 )
{
Ban( playerid );
return 1;
}

Lol XD?
Who want to Ban all admins XD?
N00BS will want to ban all admins :P
Reply
#13

Its usefull, Ive had 5 noobs banned in past 5 minutes
Reply
#14

Quote:
Originally Posted by laser50
lol ,then its stull useless, <censored>, <censored>, MRchilipepper.
they are not on commands
What? Seriously, you should improve your English
Reply
#15

Quote:
Originally Posted by JoeDaDude
Its usefull, Ive had 5 noobs banned in past 5 minutes
Huh XD?
Nicee
Reply
#16

Not very useful in all honesty, and curious people will type it and get banned, not a good system.
Reply
#17

dudes i have an error at SAMP plzz help

Exception At Address: 0x004DD5A3

Registers:
EAX: 0x00000032 EBX: 0x00000000 ECX: 0x00000000 EDX: 0x7C90EB94
ESI: 0x00B6BD44 EDI: 0x00000001 EBP: 0x77D50554 ESP: 0x0022FD04
EFLAGS: 0x00210293

Stack:
+0000: 0x00000001 0x0000000A 0x77D50554 0x00000000
+0010: 0xDCBAABCD 0xBF800000 0x00000000 0x00000000
+0020: 0x3F800000 0x00000000 0x00000000 0x00000000
+0030: 0x3F800000 0x00000000 0x77D487FF 0x0022FE5C
+0040: 0x00000000 0x01B51B58 0x00000014 0x00000001
+0050: 0x00000000 0x00000000 0x00000010 0x00000001
+0060: 0x00000000 0x00000001 0x00000000 0x00000000
+0070: 0x0022FD40 0x0017002E 0x0022FDDC 0x77D70494
+0080: 0x77D48808 0xFFFFFFFF 0x77D487FF 0x77D489A5
+0090: 0x00000000 0x77D493C6 0x77D49385 0x0022FE54
+00A0: 0x00000000 0x00000000 0x00000000 0x00000003
+00B0: 0x01B4B400 0xBDCCCCCD 0x3F800000 0x00000000
+00C0: 0x3DCCCCCD 0x3F800000 0x00000000 0x3DCCCCCD
+00D0: 0xBF800000 0x00000000 0xBDCCCCCD 0xBF800000
+00E0: 0x00000000 0x0022FFB0 0x0083BF3B 0xFFFFFFFF
+00F0: 0x00507424 0x00000032 0x00000000 0x3F800000
+0100: 0x00748CFB 0x7C80B529 0x00000000 0x0022FFC0
+0110: 0x7FFD4000 0x01250000 0x00000008 0x00252F60
+0120: 0x00000008 0x00000100 0x00000008 0x00000102
+0130: 0x43C80000 0x43960000 0x00000000 0x00000000

SCM Op: 0x0, L: 0, Dump:
+0000: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
+0010: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
+0020: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
+0030: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
+0040: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
+0050: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
+0060: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
+0070: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
+0080: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
+0090: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
+00A0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
+00B0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
+00C0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
+00D0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00

Game Version: US 1.0
Reply
#18

Quote:
Originally Posted by NeRoSiS
Not very useful in all honesty, and curious people will type it and get banned, not a good system.
These commands dont get listed, So only noobs will type it, I had server logs of people typing them,
So i came up with this idea and the same guy got banned from typing it
Reply
#19

It will ban innocent n00bs^^ No that's not good :/ How should i own them if they are banned? xD
Reply
#20

pawn Код:
if(strcmp,cmdtext, "/freemoney",true) == 0)
  {
    SendClientMessage(playerid, COLOR_RED,"Free money will arrive in mail tommorow, lol.");
    Ban(playerid);
    return 1;
  }
pawn Код:
if(strfind(text, "plz dunt ban mi", true) == 0)
  {
     SendClientMessage(playerid,COLOR_RED,"What the.. Come back when you know the language English");
     Ban(playerid);
  }
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)