View Single Post
anakin_cstrike
Veteran Member
Join Date: Nov 2007
Location: Romania
Old 11-22-2008 , 09:16   Re: Molotov Cocktail v3.20
Reply With Quote #6

1. As i can see, you don't need csx module
2. You can remove the fun module very easy, using fm_give_item and fm_set_user_frags from fm util.
3.
PHP Code:
if (key == 0) {
        
buy_molotov(id);
    } else if (
key == 1) {
        
client_print(idprint_center">You have chosen not to buy a Molotov Coctail<");
    } else {
        
client_print(idprint_center">You have choosen to exit the molotov menu...<");
    } 
->
PHP Code:
switch(key)
    {
        case 
0buy_molotov(id);
        case 
1client_print(idprint_center">You have chosen not to buy a Molotov Coctail<");
        default: 
client_print(idprint_center">You have choosen to exit the molotov menu...<");
    } 
4.
PHP Code:
if(id// something
else 
    
//... 
->
PHP Code:
id /* something */ /* ... */ 
5. Good Job
__________________


Last edited by anakin_cstrike; 11-22-2008 at 09:25.
anakin_cstrike is offline