PDA

View Full Version : New Crash !!!


neymar1477
10/07/2015, 04:29 AM
Hello guys.. today i was having 60 players... but suddenly it goes 20 because of fking player crasher (mod blue eclipse...)... and i want an anti crasher script like UIF has. If you have a crasher and attempted to crash a player, the server will closed the connection "Server Closed The Connection" if anyone can script one or have one. That would be great thanks.

Lucky™
10/07/2015, 04:43 AM
It could be one of the new player crashers that's being used on servers lately, http://pastebin.com/BPmF9CZ3 seems to block them.

Enjoy!

neymar1477
10/07/2015, 05:15 AM
Enjoy!

How do I get to ban automatically ?

SecretBoss
10/07/2015, 05:25 AM
How do I get to ban automatically ?

detect it first and then ban is easy

awsomedude
10/07/2015, 05:27 AM
You can also use this include http://forum.sa-mp.com/showthread.php?t=581017

Sithis
10/07/2015, 05:48 AM
How do I get to ban automatically ?

By scripting it. Seriously, don't be lazy, you're in the SCRIPTING section.

Lucky™
10/07/2015, 06:24 AM
How do I get to ban automatically ?


public OnPlayerWeaponShot( playerid, weaponid, hittype, hitid, Float:fX, Float:fY, Float:fZ )
{
new Float:x, Float:y, Float:z;
GetPlayerPos(playerid, x, y, z);

//Desync weapon IDs that don't fire bullets
if (weaponid < 22 || weaponid > 38)
{
Ban(playerid);
return 0;
}

//Desync shots with Z pos out of bounds
if(!(-20000.0 <= z <= 20000.0))
return 0;

return 1;
}

neymar1477
10/07/2015, 07:26 AM
public OnPlayerWeaponShot( playerid, weaponid, hittype, hitid, Float:fX, Float:fY, Float:fZ )
{
new Float:x, Float:y, Float:z;
GetPlayerPos(playerid, x, y, z);

//Desync weapon IDs that don't fire bullets
if (weaponid < 22 || weaponid > 38)
{
Ban(playerid);
return 0;
}

//Desync shots with Z pos out of bounds
if(!(-20000.0 <= z <= 20000.0))
return 0;

return 1;
}

thanks