Quote:
Originally Posted by Daynox12
How do I use it?, since it detects me as a hack when the server gives me a weapon
|
Quote:
Originally Posted by Daynox12
I only have one FS but only with maps
PHP код:
public OnPlayerWeaponsHack(playerid, weaponid, ammo, type)
{
if(Server[WEAPONHACK] ==1) {
if(type == 1) {
format(StringGlobal, sizeof(StringGlobal), "%s[%i] fue expulsado Razon: [ Weapon Hack: #%d Arma: %d]", NombreJugador(playerid),playerid, type,weaponid);
SendClientMessageToAll(0xFFAC59FF, StringGlobal);
Kick(playerid);
}
}
return 1;
}
He ejects me when the server gives me weapons
|
Thanks for reporting, I assume you are using SetSpawnInfo, it has been fixed in V1.1.
Update V1.1
Код:
- Fixed the case when player sometimes shooting weapon gets detected as a hacker.
- Fixed the case when guns like SMG when used trigger ammo hack.
- Improved the code.
- Fixed the false detection when SetSpawnInfo is used.
Link on main post.