Raised This Month: $51 Target: $400
 12% 

Solved [HELP] menu show all players ct


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
ms.itry
Member
Join Date: Apr 2018
Old 04-26-2018 , 13:12   [HELP] menu show all players ct
Reply With Quote #1

hi everyone
i had made this scripting but i need some help to end it

when i open this menu it is show all players i want just team ct players who show team t/spec hide from the menu
please if anyone can help

Scripting
PHP Code:
/* Plugin generated by AMXX-Studio */

#include <amxmodx>
#include <amxmisc>
#include <fun>
#include <Colorchat>

#define PLUGIN "New Plug-In"
#define VERSION "1.0"
#define AUTHOR "author"

new bool:g_hp[33]

public 
plugin_init() {
    
register_plugin(PLUGINVERSIONAUTHOR)
    
    
register_clcmd("hp","Menu_hp")
}

public 
Menu_hp(id)
{
    new 
Menu menu_create("\r[*] \wHP Menu \w[\dChoose Player\w]""Clip_handler"); 
    new 
szNum[3]; 
    new 
szName[32]; 
    new 
players[32]; 
    new 
buffer[64]; 
    new 
iNum
    
get_players(playersiNum"ach"); 
    for (new 
i=0iNumi++){ 
        new 
players[i]; 
        
get_user_name(pszNamecharsmax(szName)); 
        
formatex(buffercharsmax(buffer), "%s - [%s\w]"szNameg_hp[p]?"\y100":"\r50"); 
        
num_to_str(pszNumcharsmax(szNum)); 
        
menu_additem(Menubuffer szNum); 
    } 
    
menu_setprop(MenuMPROP_EXITMEXIT_ALL
    
menu_display(idMenu); 
    return 
PLUGIN_HANDLED
}

public 
hp_handler(idMenuitem){ 
    
    if(
item == MENU_EXIT){ 
    
menu_destroy(Menu); 
    return 
PLUGIN_HANDLED
    } 
    new 
data[7], Name[64]; 
    new 
AccessCallback
    
menu_item_getinfo(MenuitemAccessdata5Name63Callback); 
    
    
    new 
szName[32]
    new 
tempid str_to_num(data)
    
get_user_name(tempidszNamecharsmax(szName)) 
    new 
name[33]
    
get_user_name(idnamecharsmax(name))

    new 
str_to_num(data); 
    
    
    if (
is_user_connected(p)){         
     
    
g_hp[p] = !g_hp[p]; 
    if (
g_hp[p]){ 
        
set_user_health(id100)
        
ColorChat(0RED"^4[*] ^1Admin ^4%s ^1:  hp ^4100 ^1For Player ^4%s  ^1!",name,szName)  
    } 
    else  
    { 
        
set_user_health(id5)        
        
ColorChat(0RED"^4[*] ^1Admin ^4%s ^1:  hp ^450 ^1For Player ^4%s  ^1!",name,szName)   
    } 
    
    
Menu_hp(id)
    } 
    return 
PLUGIN_HANDLED


Last edited by ms.itry; 04-27-2018 at 09:14.
ms.itry is offline
ms.itry
Member
Join Date: Apr 2018
Old 04-27-2018 , 09:13   Re: [HELP] menu show all players ct
Reply With Quote #2

thank for anyone was help me i had find how to fix it
ms.itry is offline
Natsheh
Veteran Member
Join Date: Sep 2012
Old 04-27-2018 , 09:41   Re: [HELP] menu show all players ct
Reply With Quote #3

Quote:
Originally Posted by ms.itry View Post
thank for anyone was help me i had find how to fix it
Please dont use the green font rip my eyes.
Also dont bump your thread , you can set thread prefix as solved.
__________________
@Jailbreak Main Mod v2.7.0 100%
@User Tag Prefix 100% done !
@Mystery Box 100% done !
@VIP System 100% done !

Natsheh is offline
Send a message via MSN to Natsheh Send a message via Skype™ to Natsheh
ms.itry
Member
Join Date: Apr 2018
Old 04-27-2018 , 13:59   Re: [HELP] menu show all players ct
Reply With Quote #4

Quote:
Originally Posted by Natsheh View Post
Please dont use the green font rip my eyes.
Also dont bump your thread , you can set thread prefix as solved.
i'm sorry brother , have good day
ms.itry is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 18:55.


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