AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Suggestions / Requests (https://forums.alliedmods.net/forumdisplay.php?f=12)
-   -   Menu (https://forums.alliedmods.net/showthread.php?t=302349)

llaj 10-25-2017 21:01

Menu
 
Hi! Can someone help me and make this simple menu for me? Please :)

1. MP5 & 1x HE grenade
2. Deagle with 3 bullets
3. Add +50 HP, +50 AP
4. Speed 500

GrimmReaper 10-26-2017 06:22

Re: Menu
 
Quote:

Originally Posted by llaj (Post 2556797)
Hi! Can someone help me and make this simple menu for me? Please :)

1. MP5 & 1x HE grenade
2. Deagle with 3 bullets
3. Add +50 HP, +50 AP
4. Speed 500

Do you want it free or the option uses money

llaj 10-26-2017 09:07

Re: Menu
 
Free. And If you want, you can create 2 version. one version free and one with money(1. for 1000$, 2. for 500$, 3. for 2000$ and 4. for 1000$). Thanks :)

WhiteFang1319 10-26-2017 10:11

Re: Menu
 
1 Attachment(s)
This is my first time creating a menu plugin. Tested with AMX 1.8.2. Use /weapons command in chat. Deagle gives 7 ammo. I'll try to do it 3 in the future..
Do tell me some mistakes/suggestions. I'll try to fix it ( Free Version)

edon1337 10-26-2017 13:58

Re: Menu
 
Quote:

Originally Posted by WhiteFang1319 (Post 2556868)
This is my first time creating a menu plugin. Tested with AMX 1.8.2. Use /weapons command in chat. Deagle gives 7 ammo. I'll try to do it 3 in the future..
Do tell me some mistakes/suggestions. I'll try to fix it ( Free Version)

To give only 3 bullets:

PHP Code:

        new iEntWeapon give_itemid"weapon_deagle" );
        
        if( ! 
is_valid_entiEntWeapon ) )
        return 
PLUGIN_HANDLED;

        
cs_set_weapon_ammoiEntWeapon);
        
cs_set_user_bpammoidCSW_DEAGLE); 


llaj 10-26-2017 16:28

Re: Menu
 
Thank you WhiteFang1319, works good :) But I have one question, what means TASK_ID 6969 ? It's random numbers or time?

Quote:

Originally Posted by edon1337 (Post 2556899)
To give only 3 bullets:

PHP Code:

        new iEntWeapon give_itemid"weapon_deagle" );
        
        if( ! 
is_valid_entiEntWeapon ) )
        return 
PLUGIN_HANDLED;

        
cs_set_weapon_ammoiEntWeapon);
        
cs_set_user_bpammoidCSW_DEAGLE); 


Now I found another way. Is there any difference? forums.alliedmods.net/showpost.php?p=1872711&postcount=1

WhiteFang1319 10-27-2017 07:48

Re: Menu
 
Quote:

Originally Posted by edon1337 (Post 2556899)
To give only 3 bullets:

PHP Code:

        new iEntWeapon give_itemid"weapon_deagle" );
        
        if( ! 
is_valid_entiEntWeapon ) )
        return 
PLUGIN_HANDLED;

        
cs_set_weapon_ammoiEntWeapon);
        
cs_set_user_bpammoidCSW_DEAGLE); 


Thanks. Edited the post.

Quote:

Originally Posted by llaj (Post 2556927)
Thank you WhiteFang1319, works good :) But I have one question, what means TASK_ID 6969 ? It's random numbers or time?



Now I found another way. Is there any difference? forums.alliedmods.net/showpost.php?p=1872711&postcount=1

We're just assigning an id to the task to remove speed. I have already tried that method you've said and if I use it, it gives 7 ammo by default and then 3 by the code that's there.


All times are GMT -4. The time now is 01:15.

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