[FilterScript] Anti Server Advertisement-Anti car warp - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Filterscripts (
https://sampforum.blast.hk/forumdisplay.php?fid=17)
+--- Thread: [FilterScript] Anti Server Advertisement-Anti car warp (
/showthread.php?tid=549480)
Anti Server Advertisement-Anti car warp -
LuisPark - 06.12.2014
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(playerid, params[])
{
for(new i = 0; i < 100; i++)
{
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(playerid, params[])
{
if(IsPlayerConnected(playerid))
{
new bool:unwanted[MAX_VEHICLES];
for(new player=0; player < MAX_PLAYERS; player++)
{
if(IsPlayerInAnyVehicle(player))
{
unwanted[GetPlayerVehicleID(player)] = true;
}
}
for(new veh = 0; veh < MAX_VEHICLES; veh++)
{
if(!unwanted[veh])
{
SetVehicleToRespawn(veh);
}
}
SendClientMessageEx(playerid, COLOR_LIGHTRED, "You have respawned all vehicle in server.");
}
return 1;
}
Re: Anti Server Advertisement-Anti car warp -
Michael B - 07.12.2014
Sorry mate, but this is not an anticheat filterscript, there are only some basic RCON commands.
However, +1 for your attempt.
Re: Anti Server Advertisement-Anti car warp -
LuisPark - 07.12.2014
It just revenge , not detected
Re: Anti Server Advertisement-Anti car warp -
M0HAMMAD - 07.12.2014
it's ok