PDA

View Full Version : [REQ] HELP Please..


shehzad1234
12-12-2016, 09:32
Hi all :)

Hey any one add COST and Adrenaline in my testing code please..?? player open menu just then menu top Player money and player cost show

Adrenaline api help >>click here<< (https://forums.alliedmods.net/showthread.php?t=132115#api)

// Generated with v3x's AMXX Menu Generator

#include <amxmodx>

public plugin_init()
{
register_plugin("My Menu", "1.0", "Me");
register_clcmd("say /shoptest", "ShowMenu", _, "");
}

public ShowMenu(id)
{
new menu = menu_create("Special Weapons :^n Your Cost %d ^nYour Adrenaline %d", "mh_MyMenu");

menu_additem(menu, "sho test", "", 0); // case 0

menu_setprop(menu, MPROP_EXIT, MEXIT_ALL);

menu_display(id, menu, 0);

return PLUGIN_HANDLED;
}

public mh_MyMenu(id, menu, item)
{
if(item == MENU_EXIT)
{
menu_cancel(id);
return PLUGIN_HANDLED;
}

new command[6], name[64], access, callback;

menu_item_getinfo(menu, item, access, command, sizeof command - 1, name, sizeof name - 1, callback);

switch(item)
{
case 0: client_print(id, print_chat, "You have selected sho test");
}

menu_destroy(menu);

return PLUGIN_HANDLED;
}

http://i63.tinypic.com/1442mvd.png

shehzad1234
12-13-2016, 04:08
BUMP

Relaxing
12-13-2016, 05:30
Send your adrenaline SC

Alber9091
12-13-2016, 05:34
Send your adrenaline SC

Check Spoiler ..!!

Relaxing
12-13-2016, 05:42
Where on earth is it.
Just found this: https://forums.alliedmods.net/showthread.php?t=102051

- That's not even close what I'm looking for xP

shehzad1234
12-13-2016, 06:54
Where on earth is it.
Just found this: https://forums.alliedmods.net/showthread.php?t=102051

- That's not even close what I'm looking for xP

check spoiler and bro its adrenaline mod i want adrenalien but mod is jctf jctf mod is here (https://forums.alliedmods.net/showthread.php?t=132115&page=8)

Relaxing
12-13-2016, 15:13
If you want to show players currently adrenaline
player_cmd_adrenaline(id)
An example
new menu = menu_create("Shop^nMoney: $%s^nAdrenaline: %s", cs_get_user_money(id), player_cmd_adrenaline(id) "Handler")

wickedd
12-13-2016, 17:54
@Sheh
Do not disrupt the readability of a thread with huge lengths of texts, wild color/font variations, or large images (this includes making the main body of all your posts a different font/color/style).Do not "bump" your threads. Bumping is posting simply to make the thread higher in the forum sort order.

shehzad1234
12-14-2016, 05:50
If you want to show players currently adrenaline
player_cmd_adrenaline(id)
An example
new menu = menu_create("Shop^nMoney: $%s^nAdrenaline: %s", cs_get_user_money(id), player_cmd_adrenaline(id) "Handler")

Bro add this on my code please..

shehzad1234
12-14-2016, 06:40
I'm added money please.. any one add adrenaline on the code please...??

http://i64.tinypic.com/2rgjm8h.jpg

// Generated with v3x's AMXX Menu Generator

#include <amxmodx>
#include <amxmisc>
#include <fun>
#include <cstrike>

new g_iBlinkAcct

public plugin_init()
{
register_plugin("My Menu", "1.0", "Me");
register_clcmd("say /shoptest", "ShowMenu", _, "");
}

public ShowMenu(id)
{
new Test[101], money = cs_get_user_money(id);
formatex(Test,100, "\rP[K]K \yCTF Menu^n^nYour Money:\r $%d", money);
new menu = menu_create(Test, "mh_MyMenu");

menu_additem(menu, "sho test", "", 0); // case 0

menu_setprop(menu, MPROP_EXIT, MEXIT_ALL);

menu_display(id, menu, 0);

return PLUGIN_HANDLED;
}

public mh_MyMenu(id, menu, item)
{
if(item == MENU_EXIT)
{
menu_cancel(id);
return PLUGIN_HANDLED;
}

new command[6], name[64], access, callback;

menu_item_getinfo(menu, item, access, command, sizeof command - 1, name, sizeof name - 1, callback);

switch(item)
{
case 0: client_print(id, print_chat, "You have selected sho test");
}

menu_destroy(menu);

return PLUGIN_HANDLED;
}

shehzad1234
12-14-2016, 07:04
Solved :D