Help with func
#1

I found this
PHP код:
public FallingChecker() 

   new 
Float:x,Float:y,Float:z,Float:d
   for(new 
=0i<MAX_PLAYERSi++) 
   { 
     if(
IsPlayerConnected(i)) 
     { 
        
GetPlayerPos(i,x,y,z); 
        
floatsqroot((x-LastX[i] * x-LastX[i]) + (y-LastY[i] * y-LastY[i])); 
        if(
10 && (LastZ[i] - z) > 5
        { 
          
OnPlayerFall(i); 
        } 
        
LastX[i] = x
        
LastY[i] = y
        
LastZ[i] = z
     } 
   } 
   return 
1

public 
OnPlayerFall(playerid

    
SendClientMessage(playerid,0x000000FF,"You are falling!"); 
    return 
1

And it is working as supposed to..
But any ideas how ca I make implement this in my anti speed hack. So if player is falling it won't detect him as cheater but he will get deteted as falling.. Any ideas?
Reply


Messages In This Thread
Help with func - by Micko123 - 25.12.2016, 08:15
Re: Help with func - by lackmail - 25.12.2016, 08:40

Forum Jump:


Users browsing this thread: 2 Guest(s)