23.03.2017, 02:55
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;
}