Raised This Month: $ Target: $400
 0% 

Hiding menu options & Drop weapon [ Solved ]


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
hip_hop_x
Senior Member
Join Date: Apr 2006
Old 04-14-2006 , 20:13   Hiding menu options & Drop weapon [ Solved ]
Reply With Quote #1

1.How to hide the menu after a player chosed one option?

Code:
public giveArma(id, key) {     //This is the menu     if (key == 4)     {         }else if (key == 0){          give_item(id, "weapon_ak47")     engclient_cmd(id, "drop", "weapon_awp")     engclient_cmd(id, "drop", "weapon_m4a1")     client_print(id, print_chat, " Am ales 1 optiune")         } else if (key == 1) {          give_item(id, "weapon_m4a1")     engclient_cmd(id, "drop", "weapon_awp")     engclient_cmd(id, "drop", "weapon_ak47")     client_print(id, print_chat, " Am ales a 2 optiune")       } else if (key == 2) {          give_item(id, "weapon_usp")     engclient_cmd(id, "drop", "weapon_awp")     engclient_cmd(id, "drop", "weapon_ak47")     engclient_cmd(id, "drop", "weapon_m4a1")     client_print(id, print_chat, " Am ales a 3 optiune")       set_user_armor(id, 200)     }else if (key == 3){     give_item(id, "weapon_usp")     client_print(id, print_chat, " Am ales a 4 optiune")       } }

2.And how i can make a player drop weapon and cant pickup?
I used
Code:
engclient_cmd(id, "drop", "weapon_m4a1")
but the player will still can pickup that weapon after he droped.
hip_hop_x is offline
Send a message via MSN to hip_hop_x Send a message via Yahoo to hip_hop_x
 



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 05:06.


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