[Include] FairPlay - Keep the cheaters out
#7

I think I see what you mean.....

pawn Код:
if(!GetPVarType(playerid, "FP_PlayerDetectionTimer"))
    {
        SetPVarInt(playerid, "FP_PlayerDetectionTimer", SetTimerEx("FP_Detection", FP_TIMER_INTERVAL, true, "d", playerid));
    }
So now only one timer can run makes sense.

But again I still don't like the use of PVars you don't need them, at all when you can make a simplistic include that uses CallRemoteFunction() to make calls to the gamemode for filterscripts. Yes CallRemoteFunction() is slower than PVars but overall the trade off will favor using normal variables hands down when you take into account the bottleneck they cause littered all over the include.

I also don't see the need of setting a timer every time a player connects when one timer with a foreach() loop would make a lot more sense and save a small handful of calls.

One more thing for me if I decided to use this is I don't use OnPlayerDeath() at all so I'd have to make some modifications but that would be fine with me.
Reply


Messages In This Thread
FairPlay - Keep the cheaters out - by SuperViper - 06.07.2013, 23:08
Re: FairPlay - Keep the cheaters out - by Chriham3 - 06.07.2013, 23:20
Re: FairPlay - Keep the cheaters out - by Josh Slice - 06.07.2013, 23:21
Re: FairPlay - Keep the cheaters out - by Stylock - 07.07.2013, 00:27
Re: FairPlay - Keep the cheaters out - by Pottus - 07.07.2013, 00:42
Re: FairPlay - Keep the cheaters out - by SuperViper - 07.07.2013, 00:51
Re: FairPlay - Keep the cheaters out - by Pottus - 07.07.2013, 01:24
Re: FairPlay - Keep the cheaters out - by SuperViper - 07.07.2013, 02:26
Re: FairPlay - Keep the cheaters out - by Pottus - 07.07.2013, 02:39
Re: FairPlay - Keep the cheaters out - by Donvalley - 07.07.2013, 04:05

Forum Jump:


Users browsing this thread: 6 Guest(s)