Posts: 723
Threads: 366
Joined: Jun 2016
Hi,
I take look and see with cheat's can off this function not called, so how check if this function was not called if player shooted do smth kick or whatever
Posts: 723
Threads: 366
Joined: Jun 2016
So other, If you shoot to player, OnPlayerWeaponShoot will be called first ,or onplayertakedamage?
Posts: 723
Threads: 366
Joined: Jun 2016
I'am making anti cheat, if player not make weaponshoot, but onplayertakedamage get called, i can kick that player
Posts: 723
Threads: 366
Joined: Jun 2016
So i can do like that?
Код:
new bool:Shootedd[ MAX_PLAYERS ];
OnPlayerWeaponShoot( ... )
{
Shootedd[ playerid ] = true;
}
OnPlayerTakeDamage( ...)
{
if( Shootedd[ playerid ] == false )
{
if( weapon == (all weapons can fire, callonplayerweaponshoot)
{
Kick(playerid);
}
}
else
{
Shootedd[ playerid ] = false;
}
}
Posts: 723
Threads: 366
Joined: Jun 2016
But kick i need issuerid? and Shootedd[ issuerid ] = false, why you remove?