[FilterScript] [0.3b, 0.3c]Auto Re-sync on knife De-sync
#10

Quote:
Originally Posted by The_Moddler
Посмотреть сообщение
Also, why are you setting a PVar to 0 two times?

pawn Код:
SetPVarInt(targetid, "KnifeKilled", 0);
SetPVarInt(playerid, "KnifeKilled", 0);
SetPVarInt(playerid, "Knifing", 0);
SetPVarInt(targetid, "BeingKnifed", 0);
SetPVarInt(playerid, "BeingKnifed", 0);
SetPVarInt(targetid, "Knifing", 0);
It could be:

pawn Код:
SetPVarInt(targetid, "KnifeKilled", 0);
SetPVarInt(targetid, "BeingKnifed", 0);
SetPVarInt(targetid, "Knifing", 0);
targetid is not needed if everyone is so goddamn anal about pvar's i don't give a fuk ill update it and not use pvars lmao

Quote:
Originally Posted by wups
Посмотреть сообщение
The aiming functions are not mine.
Also, i wouldn't ever do this:
pawn Код:
if (IsPlayerAimingAt(playerid, x, y, z-0.75, 0.25)) return true;
    if (IsPlayerAimingAt(playerid, x, y, z-0.25, 0.25)) return true;
    if (IsPlayerAimingAt(playerid, x, y, z+0.25, 0.25)) return true;
    if (IsPlayerAimingAt(playerid, x, y, z+0.75, 0.25)) return true;
    if (IsPlayerAimingAt(playerid, x, y, z+0.75, 0.25)) return true;
    if (IsPlayerAimingAt(playerid, x, y, z+0.75, 0.25)) return true;
    if (IsPlayerAimingAt(playerid, x, y, z+0.75, 0.25)) return true;
    if(IsPlayerAimingBodyPart(playerid, 1) == 1) return true;
    if(IsPlayerAimingBodyPart(playerid, 2) == 1) return true;
    if(IsPlayerAimingBodyPart(playerid, 3) == 1) return true;
-snip retarded comment-


updates come i suppose - no pvars since people don't like them
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)