Anti Rapid Fire
#1

hey guys,
i got bug with Anti Rapid Fire .
after player shoot for few seconds with M4 or UZI , he get kick for rapid fire.
code:
PHP код:
      new gt gettime(), s;
    if(
weaponid != 38)
    {
        if((
gt shotTime[playerid]) < 1)
        {
            
shot[playerid]++;
        }
        else
        {
            
shot[playerid] = 0;
        }
        switch(
weaponid)
        {
            case 
283216;
            default: 
10;
        }
        if(
shot[playerid] > s)
        {
         new 
zmstring[256];
format(zmstring,sizeof(zmstring), ""chat""COL_SRED" %s has been kicked for Rapid Fire Hack !",PlayerName(playerid));
                                            
SendClientMessageToAll(-1,zmstring);
            
Kick(playerid);
            return 
0;
        }
        
shotTime[playerid] = gt;

Reply
#2

try using GetTickCount() instead of gettime()
and take a look here https://sampforum.blast.hk/showthread.php?tid=496339
Reply
#3

Quote:
Originally Posted by M4D
Посмотреть сообщение
try using GetTickCount() instead of gettime()
and take a look here https://sampforum.blast.hk/showthread.php?tid=496339
Yes, this is the issue.
Reply
#4

Yes, they are scripted Anti Rapid fire kicked system.
You want remove the line start to end. You problem is fixed!
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)