Raised This Month: $ Target: $400
 0% 

[REQ] Strip Primary weapon, secondary weapon, grenades.


Post New Thread Reply   
 
Thread Tools Display Modes
ramioca
Junior Member
Join Date: Nov 2011
Location: Portugal
Old 11-04-2011 , 17:22   Re: [REQ] Strip Primary weapon, secondary weapon, grenades.
Reply With Quote #21

you have an ideia that can be the problem?
ramioca is offline
ramioca
Junior Member
Join Date: Nov 2011
Location: Portugal
Old 11-12-2011 , 18:57   Re: [REQ] Strip Primary weapon, secondary weapon, grenades.
Reply With Quote #22

please don t forget this topic :S
ramioca is offline
padilha007
Senior Member
Join Date: Jul 2008
Old 11-13-2011 , 02:52   Re: [REQ] Strip Primary weapon, secondary weapon, grenades.
Reply With Quote #23

Look this:

http://forums.alliedmods.net/showpos...03&postcount=2
__________________

padilha007 is offline
Vebster
Junior Member
Join Date: Sep 2011
Old 11-13-2011 , 05:08   Re: [REQ] Strip Primary weapon, secondary weapon, grenades.
Reply With Quote #24

Quote:
Originally Posted by padilha007 View Post
Sure this will not crash the server?
Vebster is offline
ramioca
Junior Member
Join Date: Nov 2011
Location: Portugal
Old 11-13-2011 , 16:07   Re: [REQ] Strip Primary weapon, secondary weapon, grenades.
Reply With Quote #25

this will not crash the server but it don't drop the weapon.... I wanted to strip all secondary weapons and grenades of user when this user select the option in the menu...
ramioca is offline
Evaldas.Grigas
Senior Member
Join Date: Sep 2011
Location: Lithuania
Old 11-15-2011 , 14:47   Re: [REQ] Strip Primary weapon, secondary weapon, grenades.
Reply With Quote #26

Here. This code makes menu turn down after 15seconds.
PHP Code:
public Showrod(id) {
    
set_task(15.0"CancelMenu"id);
    
show_menu(idKeysrod"Menu VIP VL:^n\w1. Deagle ^n\w2. Granadas ^n\w3. Deagle e Granadas ^n0. Exit^n", -1"rod"// Display menu
}
public 
Pressedrod(idkey) {
    
/* Menu:
    * Menu VIP VL
    * 1. Deagle
    * 2. Granadas
    * 3. Deagle e Granadas
    * 0. Exit
    */
    
switch (key) {
        case 
0: {
            if (
user_has_weapon(idCSW_C4) && get_user_team(id) == 1)
                
HasC4[id] = true;
            else
                
HasC4[id] = false;
 
                
StripWeapons(idSecondary);
                
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,"item_assaultsuit");
                
give_item(id,"item_thighpack");
                
client_print(idprint_center"Recebeste Deagle gratuitamente")
 
                if (
HasC4[id])
                {
                    
give_item(id"weapon_c4");
                
cs_set_user_plantid );
                }
            }
        case 
1: {
                if (
user_has_weapon(idCSW_C4) && get_user_team(id) == 1)
                
HasC4[id] = true;
                else
                
HasC4[id] = false;
 
                
StripWeapons(idGrenades);
                
give_item(id,"weapon_hegrenade");
                
give_item(id,"weapon_flashbang");
                
give_item(id,"weapon_flashbang");
                
give_item(id,"weapon_smokegrenade");
                
give_item(id,"item_assaultsuit");
                
give_item(id,"item_thighpack");
                
client_print(idprint_center"Recebeste Granadas gratuitamente")
 
                if (
HasC4[id])
                {
                    
give_item(id"weapon_c4");
                    
cs_set_user_plantid );
                }
            }
        case 
2: {
                if (
user_has_weapon(idCSW_C4) && get_user_team(id) == 1)
                
HasC4[id] = true;
                else
                
HasC4[id] = false;
 
                
StripWeapons(idSecondary);
                
StripWeapons(idGrenades);
                
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_hegrenade");
                
give_item(id,"weapon_flashbang");
                
give_item(id,"weapon_flashbang");
                
give_item(id,"weapon_smokegrenade");
                
give_item(id,"item_assaultsuit");
                
give_item(id,"item_thighpack");
                
client_print(idprint_center"Recebeste Deagle e granadas gratuitamente")
 
                if (
HasC4[id])
                {
                    
give_item(id"weapon_c4");
                    
cs_set_user_plantid );
                }
            }
        case 
9: {    
        }
    }
    return 
PLUGIN_CONTINUE
}

public 
CancelMenu(id)
{
    
show_menu(id0"^n"1);

__________________
Please enter this website everyday: http://forums.alliedmods.net/showthread.php?t=169067

Last edited by Evaldas.Grigas; 11-15-2011 at 14:47.
Evaldas.Grigas is offline
Send a message via Skype™ to Evaldas.Grigas
ramioca
Junior Member
Join Date: Nov 2011
Location: Portugal
Old 11-15-2011 , 15:35   Re: [REQ] Strip Primary weapon, secondary weapon, grenades.
Reply With Quote #27

Thank you ;) but still unable to use the include
ramioca is offline
Evaldas.Grigas
Senior Member
Join Date: Sep 2011
Location: Lithuania
Old 11-16-2011 , 13:46   Re: [REQ] Strip Primary weapon, secondary weapon, grenades.
Reply With Quote #28

Maybe you haven't downloaded the include, or you puted it into wrong direction?
__________________
Please enter this website everyday: http://forums.alliedmods.net/showthread.php?t=169067
Evaldas.Grigas is offline
Send a message via Skype™ to Evaldas.Grigas
ramioca
Junior Member
Join Date: Nov 2011
Location: Portugal
Old 11-16-2011 , 16:42   Re: [REQ] Strip Primary weapon, secondary weapon, grenades.
Reply With Quote #29

I have downloaded the include and i puted it into correct direction :S
ramioca is offline
drekes
Veteran Member
Join Date: Jul 2009
Location: Vault 11
Old 11-16-2011 , 17:11   Re: [REQ] Strip Primary weapon, secondary weapon, grenades.
Reply With Quote #30

What's the problem then ?
__________________

Quote:
Originally Posted by nikhilgupta345 View Post
You're retarded.
drekes is offline
Send a message via MSN to drekes
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 21:23.


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