GiveAllGun in radius command.
#1

Hello, I'm trying to find a way to make a giveallgun command. The catch is that the player has to be in the radius set by the admin. I know how to create the giveallgun command just can't figure out how to put if the player is in the radius. Thanks.
Reply
#2

PHP код:
yourcommand
{
    
check if the issuer is admin, if not, return whatever shit you want;
    
create 3 float variables;
    
save the player position with GetPlayerPos in these variables previously created;
    
yourdesiredplayerloop
    
{
        
check if the player is connected, if not, continue the loop;
        
check if the player is in range with IsPlayerInRangeOfPoint(use the variables here)
        {
            
give the players in the loop the weapon you want if they meet the requirement;
        }
    }
    return 
1;

Thats how it'd look.
Reply
#3

Thank you.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)