19.12.2010, 21:25
Hello, any1 can give me a code of Anti B hop in game roles server. If people is runing and trying to jump he will stop.
public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
{
if((newkeys & KEY_JUMP))
{
return 0;
}
return 1;
}
if((newkeys & KEY_JUMP))
{
return 0;
}
This just stop when a player press the key for jump.
But you can alway try that FS. |
Originally Posted by wiki.sa-mp.com
1 - Allows this callback to be called in other scripts. It is always called first in gamemodes so retuning 0 there blocks filterscripts from seeing it.
|