GiveAllGun in radius command.
#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


Messages In This Thread
GiveAllGun in radius command. - by MyUndiesSmell - 23.03.2017, 02:47
Re: GiveAllGun in radius command. - by Toroi - 23.03.2017, 02:55
Re: GiveAllGun in radius command. - by MyUndiesSmell - 23.03.2017, 03:07

Forum Jump:


Users browsing this thread: 2 Guest(s)