29.08.2013, 02:42
Te dejo un AntiOnFootCrasher:
En 'OnPlayerUpdate':
En 'OnPlayerUpdate':
pawn Код:
if (GetPlayerState(playerid) == PLAYER_STATE_ONFOOT)
{
new Float:vec[3];
GetPlayerCameraFrontVector(playerid, vec[0], vec[1], vec[2]);
new bool:crasher = false;
for (new i = 0; !crasher && i < sizeof(vec); i++)
if (floatabs(vec[i]) > 10.0)
crasher = true;
if (crasher)
{
Kick(playerid);
return 0;
}
}