Hey,
ich habe einn Cbugsystem geschrieben, doch die Spieler können immer noch 'leicht' cbuggen.
Also das System greift nicht richtig zu
public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
{
if(CBugAktiv[playerid] == 0)
{
if(newkeys & KEY_FIRE && oldkeys & KEY_CROUCH && IsBugWeapon(playerid)){
PlayerUsingBug[playerid] = 1;
PlayerBugTimer[playerid] = SetTimerEx("BugTimeOut",1000,0,"i",playerid);
}
if(PlayerUsingBug[playerid]==1 && newkeys != KEY_FIRE && newkeys & KEY_CROUCH){
ApplyAnimation(playerid,"PED","getup",4.1,0,0,0,0,0);
PlayerUsingBug[playerid] = 0;
KillTimer(PlayerBugTimer[playerid]);
}
}
return 1;
}