23.02.2011, 14:50
Can somebody test this for me? It should desync rockets coming from hydras. So you can have hydras on your server but nobody will see when you shoot, and you will not see when somebody else shoots from hydra. I'm unable to test it.
pawn Код:
#include "a_samp.inc"
new bool:BlockUpdate[MAX_PLAYERS];
public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
{
if ((IsPlayerInAnyVehicle(playerid) && GetVehicleModel(GetPlayerVehicleID(playerid)) == 520) && (newkeys & KEY_FIRE) && !bool:BlockUpdate[playerid])
{
BlockUpdate[playerid] = true;
}
return 1;
}
public OnPlayerUpdate(playerid)
{
BlockUpdate[playerid] = bool:!BlockUpdate[playerid];
return bool:!BlockUpdate[playerid];
}