Raised This Month: $ Target: $400
 0% 

Need Code for Gun Menu !!!


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Begineer Programmer
Member
Join Date: Nov 2021
Old 08-11-2022 , 00:24   Re: Need Code for Gun Menu !!!
Reply With Quote #3

Hey I need Little Help [As I am noob in scripting !!!]
This is Dunno Vip Code i am doing some modification in this
PHP Code:
public plugin_init() {
g_menu_active register_cvar("menu_active""1")
}
public 
LogEvent_RoundStart()
{
    
CurrentRound++;
    new 
players[32], playerpnum;
    
get_players(playerspnum"a");
    for(new 
0pnumi++)
    {
        
player players[i];
        if(
is_user_alive(player) && get_user_flags(player) & ADMIN_LEVEL_H)
        {
            
give_item(player"weapon_hegrenade")
            
give_item(player"weapon_flashbang")
            
give_item(player"weapon_flashbang")
            
give_item(player"weapon_smokegrenade")
            
give_item(player"item_assaultsuit")
            
give_item(player"item_thighpack")
            
            if (!
get_pcvar_num(g_menu_active))
                return 
PLUGIN_CONTINUE
            
            
if(CurrentRound >= 3)
            {
                
Showrod(player);
            }
        }
    }
    return 
PLUGIN_HANDLED

but here what my logic is thinking

PHP Code:
public logevent_round_start()
{
    
g_round++
    new 
players[32], playerpnum
    get_players
(playerspnum"ac")
    for(new 
0pnumi++)
    {
        if (
is_user_alive(i)&is_user_connected(i))
        {
            
//give items
        
}
    }
return 
PLUGIN_HANDLED

is this right ? as player should be alived and user should be connected ?
Begineer Programmer is offline
 



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 15:37.


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