AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Suggestions / Requests (https://forums.alliedmods.net/forumdisplay.php?f=12)
-   -   [REQ] Admin Weapon Menu (https://forums.alliedmods.net/showthread.php?t=324180)

alferd 05-08-2020 13:57

[REQ] Admin Weapon Menu
 
I want a plugin that allows each admin to use each of my options. Each round is given the same items to the admin.

I hope you understand what I mean

say /wpn
Code:

Admin Weapons

1. Ak-47 <<< SELECTED >>>
2. M4A1
3. Aug
4. Awp


0. Exit

1. Ak-47:
PHP Code:

public plugin_init() {
    
register_plugin(PLUGINVERSIONAUTHOR)
    
    
RegisterHam(Ham_Spawn,"player""get_item",    1);
}

public 
get_item(id)
{
    
strip_user_weapons (id)
    
give_item(id,"weapon_ak47")
    
give_item(id,"ammo_762nato")
    
give_item(id,"ammo_762nato")
    
give_item(id,"ammo_762nato")
    
give_item(id,"weapon_deagle")
    
give_item(id,"ammo_50ae")
    
give_item(id,"ammo_50ae")
    
give_item(id,"ammo_50ae")
    
give_item(id,"ammo_50ae")
    
give_item(id,"ammo_50ae")
    
give_item(id,"ammo_50ae")
    
give_item(id,"ammo_50ae")
    
give_item(id,"weapon_knife")


2. M4A1:
PHP Code:

public plugin_init() {
    
register_plugin(PLUGINVERSIONAUTHOR)
    
    
RegisterHam(Ham_Spawn,"player""get_item",    1);
}

public 
get_item(id)
{
    
strip_user_weapons (id)
    
give_item(id,"weapon_m4a1")
    
give_item(id,"ammo_556nato")
    
give_item(id,"ammo_556nato")
    
give_item(id,"ammo_556nato")
    
give_item(id,"weapon_deagle")
    
give_item(id,"ammo_50ae")
    
give_item(id,"ammo_50ae")
    
give_item(id,"ammo_50ae")
    
give_item(id,"ammo_50ae")
    
give_item(id,"ammo_50ae")
    
give_item(id,"ammo_50ae")
    
give_item(id,"ammo_50ae")
    
give_item(id,"weapon_knife")


.......

Tnx For Help ....

DruGzOG 05-08-2020 20:00

Re: [REQ] Admin Weapon Menu
 
Search. There's like 100s of these threads asking for something similar. Then you can simply edit things to work it for you.

alferd 05-09-2020 01:47

Re: [REQ] Admin Weapon Menu
 
Quote:

Originally Posted by DruGzOG (Post 2698974)
Search. There's like 100s of these threads asking for something similar. Then you can simply edit things to work it for you.

I didn't find what I was looking for

DruGzOG 05-09-2020 08:45

Re: [REQ] Admin Weapon Menu
 
Quote:

Originally Posted by alferd (Post 2698990)
I didn't find what I was looking for

I searched admin weapon menu and got 12 threads in the first two pages. Search.


All times are GMT -4. The time now is 17:50.

Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.