AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Another problem (https://forums.alliedmods.net/showthread.php?t=240283)

qUneT 05-12-2014 03:49

Another problem
 
Hey.I have another problem with my VIP system.
I have this:
PHP Code:

public Showrod(id
{
    
show_menu(idKeysrod"Guns Menu^n\w1. M4a1+Deagle+Armura 100^n\w2. AK47+Deagle+Armura 100^n\w3. Set de Grenazi^n\w4. Gravity+Viteza^n\w5. Silent Walk+Transparenta^n0. Exit^n", -1"rod"// Display menu
}
public 
Pressedrod(idkey
{
    
    switch (
key) {
        case 
0: {
            new 
name32 ];
            
get_user_nameidnamesizeof name );
            
StripWeapons(idPrimary)
            
StripWeapons(idSecondary);
            
give_item(id,"weapon_m4a1")
            
give_item(id,"weapon_deagle")
            
give_item(id"item_assaultsuit");
            
give_item(id"item_thighpack");
            
cs_set_user_bpammo(idCSW_M4A190 );
            
cs_set_user_bpammo(idCSW_DEAGLE35 );
            
printtoall0"^x04[VIP] %s a ales M4a1+Deagle+Armura 100",name);
            }

        case 
1: {
            new 
name32 ];
            
get_user_nameidnamesizeof name );
            
StripWeapons(idPrimary)
            
StripWeapons(idSecondary);
            
give_item(id,"weapon_ak47")
            
give_item(id,"weapon_deagle")
            
give_item(id"item_assaultsuit");
            
give_item(id"item_thighpack");
            
cs_set_user_bpammo(idCSW_AK4790);
            
cs_set_user_bpammo(idCSW_DEAGLE35 );
            
printtoall0"^x04[VIP] %s a ales AK47+Deagle+Armura 100",name);
            }

        case 
2: {
            new 
name32 ];
            
get_user_nameidnamesizeof name );
            
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");
            
printtoall0"^x04[VIP] %s a ales Pachetul de Grenazi",name);
            }

        case 
3: {
            new 
name32 ];
            
get_user_nameidnamesizeof name );
            
set_user_maxspeedid550.0 );
            
set_user_gravityid650.0 );
            
printtoall0"^x04[VIP] %s a ales Graviti+Viteza",name);
            }

        case 
4: {
            new 
name32 ];
            
get_user_nameidnamesizeof name );
            
set_user_rendering(idkRenderFxNone000kRenderTransAlpha170)
            
set_user_footsteps(id1)
            
printtoall0"^x04[VIP] %s a ales Transparenta+Silent Walk",name);
            }            

        case 
9: {             
            }
             }
    return 
PLUGIN_CONTINUE


I press 4 or 5 and nothing happens.

what is the problem?

Sorry my english again.

swapped 05-12-2014 04:42

Re: Another problem
 
romanian !!!!!!

read this tut: https://forums.alliedmods.net/showthread.php?t=46364

fysiks 05-12-2014 10:30

Re: Another problem
 
The forum rules require that your topic title be descriptive. Please update your title to describe your issue or question. If you fail to do so, you risk your thread being trashed.

wickedd 05-12-2014 19:08

Re: Another problem
 
Take a look at this thread.


All times are GMT -4. The time now is 09:38.

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