[FilterScript] Anti Server Advertisement-Anti car warp
#1

Some code i share today is for an admin online in server, who can clear the chat when someone server ads in public chat , if will clear all chat in the server but in server_log.txt if wont clear.
Please rep if this thing is good
PHP код:
CMD:clearchat(playeridparams[])
{
          for(new 
0100i++)
          {
               
SendClientMessageToAll(-1" ");
          }
     }
     return 
1;

Make sure you have all funtion in your gamemodes, just add the cmd to your gm and compile it. But if you smart, you can edit if with your admin's rank to use
And this is anti car warp- This useful when someone use hack car in your server, you can use it to respawn all vehicle available in server, it will lag when you type this command in 3s
PHP код:
CMD:rac(playeridparams[])
{
    if(
IsPlayerConnected(playerid))
    {
        new 
bool:unwanted[MAX_VEHICLES];
        for(new 
player=0player MAX_PLAYERSplayer++)
        {
               if(
IsPlayerInAnyVehicle(player))
            {
                
unwanted[GetPlayerVehicleID(player)] = true;
            }
         }
        for(new 
veh 0veh MAX_VEHICLESveh++)
        {
            if(!
unwanted[veh])
            {
                
SetVehicleToRespawn(veh);
            }
        }
           
SendClientMessageEx(playeridCOLOR_LIGHTRED"You have respawned all vehicle in server.");
    }
    return 
1;

Reply
#2

Sorry mate, but this is not an anticheat filterscript, there are only some basic RCON commands.

However, +1 for your attempt.
Reply
#3

It just revenge , not detected
Reply
#4

it's ok
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)