My profiler for optimise my script
#3

Thanks for your response

My OnPlayerUpdate

PHP код:
public OnPlayerUpdate(playerid)
{
    if(
EscapeTime[playerid] > 0EscapeTime[playerid] = 0;
    if(
PlayerSpawned[playerid] > 0)
    {
        new 
Action GetPlayerSpecialAction(playerid);
        if(
OPUAction[playerid] != ActionOPUAction[playerid] = Action;
        new 
weapons2 GetPlayerWeapon(playerid), ammo GetPlayerAmmo(playerid);
        if(
pAntiCheat[playerid][LastWeapon] != weapons2pAntiCheat[playerid][LastWeapon] = weapons2;
        if(
pAntiCheat[playerid][LastAmmo] != ammopAntiCheat[playerid][LastAmmo] = ammo;
    }
    return 
1;

This script it's very important for my anti cheat and for my anti c-bug, if i use a timer 100ms or 200ms it's better?

And on OnPlayerKeyStateChange i use a lot of code for my Anti-Cbug or Anti Drive By driver and passenger without driver and others script but i can optimise this.

You think my code on OnPlayerUpdate and OnPlayerKeyStateChange it's too bad?
Reply


Messages In This Thread
My profiler for optimise my script - by HitnKill - 18.07.2013, 21:57
Re: My profiler for optimise my script - by ReVo_ - 18.07.2013, 22:12
Re : My profiler for optimise my script - by HitnKill - 18.07.2013, 22:40
Re: My profiler for optimise my script - by papedo - 18.07.2013, 22:52
AW: My profiler for optimise my script - by BigETI - 18.07.2013, 22:53
Re : My profiler for optimise my script - by HitnKill - 18.07.2013, 23:21
Re: My profiler for optimise my script - by Bakr - 19.07.2013, 03:46
Re: My profiler for optimise my script - by xeeZ - 19.07.2013, 04:09
Re: My profiler for optimise my script - by SuperViper - 19.07.2013, 04:47
Re: My profiler for optimise my script - by xeeZ - 19.07.2013, 05:37

Forum Jump:


Users browsing this thread: 2 Guest(s)