ProxDetector more efficient?
#3

PHP код:
//======================================[ sDetector ]======================================

public sDetector(Float:radiplayeridstring[], color1color2color3)
{
    if(
IsPlayerConnected(playerid))
    {
        new 
Float:Pos[3];
        
GetPlayerPos(playeridPos[0], Pos[1], Pos[2]);
        for(new 
0MAX_PLAYERS++)
        {
            if(
IsPlayerInRangeOfPoint(iradiPos[0], Pos[1], Pos[2]))
            {
                
SendClientMessage(icolor1string);
            }
            if(
IsPlayerInRangeOfPoint(iradi/2Pos[0], Pos[1], Pos[2]) && !IsPlayerInRangeOfPoint(iradiPos[0], Pos[1], Pos[2]))
            {
                
SendClientMessage(icolor2string);
            }            
            if(
IsPlayerInRangeOfPoint(iradi/3Pos[0], Pos[1], Pos[2]) && !IsPlayerInRangeOfPoint(iradi/2Pos[0], Pos[1], Pos[2]))
            {
                
SendClientMessage(icolor3string);
            }
        }
    }
    return 
1;
}

//======================================[ sDetector ]====================================== 
Reply


Messages In This Thread
ProxDetector more efficient? - by ||123|| - 11.07.2011, 13:03
Re: ProxDetector more efficient? - by Macluawn - 11.07.2011, 13:32
Re: ProxDetector more efficient? - by Shadoww5 - 11.07.2011, 13:50
Re: ProxDetector more efficient? - by Macluawn - 11.07.2011, 14:04
Re: ProxDetector more efficient? - by ||123|| - 11.07.2011, 15:54
Re: ProxDetector more efficient? - by Shadoww5 - 11.07.2011, 18:17
Re: ProxDetector more efficient? - by ||123|| - 11.07.2011, 19:10
Re: ProxDetector more efficient? - by ||123|| - 11.07.2011, 19:40
Re: ProxDetector more efficient? - by Shadoww5 - 11.07.2011, 21:11

Forum Jump:


Users browsing this thread: 2 Guest(s)