[FilterScript] AntiOnFootCrasher - 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] AntiOnFootCrasher (
/showthread.php?tid=452643)
AntiOnFootCrasher -
kaZax - 22.07.2013
Filterscript author: povargek
PHP код:
public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
{
if(newkeys == 128 || newkeys == 16)
{
if(GetPlayerCameraMode(playerid) == 184)Kick(playerid);
}
return true;
}
Checked worked!
Re: AntiOnFootCrasher -
dEcooR - 22.07.2013
I dont understand point of this explain it me please
Re: AntiOnFootCrasher -
[FMJ]The_Boss - 22.07.2013
I think what he means is that,if a player tries to use a hack which crashes people onfoot mode,that player will get kicked.
Re: AntiOnFootCrasher -
Vanter - 24.07.2013
I want more people to rate this, because I'm not really getting if it's usefull or not.
Respuesta: AntiOnFootCrasher -
Glimma - 24.07.2013
pawn Код:
public OnPlayerUpdate(playerid)
{
if(GetPlayerState(playerid) == PLAYER_STATE_ONFOOT)
{
new Float:vector[3];
GetPlayerCameraFrontVector(playerid, vector[0], vector[1], vector[2]);
new bool:crash = false;
for(new i = 0; !crash && i < sizeof(vector); i++)
{
if(floatabs(vector[i]) > 10.0)
{
crash = true;
}
}
if(crash)
{
Kick(playerid);
return 0;
}
}
}
return 1;
}
Re: AntiOnFootCrasher -
dEcooR - 11.08.2013
Deadsky it realy works ? It doesnt give me false kicks?
Re: AntiOnFootCrasher -
MAC97 - 11.08.2013
Yes,it keep kicking players -.- fix it dude..