Raised This Month: $ Target: $400
 0% 

Help in editing a code


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Obada
Senior Member
Join Date: Dec 2014
Location: Abu Dhabi
Old 01-12-2015 , 12:45   Re: Help in editing a code
Reply With Quote #10

Thanks man.

one more question.

I use this in plmenu.sma, when an Admin Slap/Slay, it shows that administartor has slapped.

but when a Golden Player/Silver Player slaps, it doesn't show anything.

PHP Code:
log_amx("Cmd: ^"%s<%d><%s><>^" slap with %d damage ^"%s<%d><%s><>^""nameget_user_userid(id), authidg_menuSettings[id], name2get_user_userid(player), authid2)
                
                if(
get_user_flags(id) & ADMIN)
                        
show_activity_key("ADMIN_SLAP_1""ADMIN_SLAP_2"namename2g_menuSettings[id]);
        
                else if(
get_user_flags(id) & SILVER)
                        
show_activity_key("SILVER_SLAP_1""SILVER_SLAP_2"namename2g_menuSettings[id]);
        
                else if(
get_user_flags(id) & GOLDEN)
                        
show_activity_key("GOLDEN_SLAP_1""GOLDEN_SLAP_2"namename2g_menuSettings[id]);

            } else {
                
log_amx("Cmd: ^"%s<%d><%s><>^" slay ^"%s<%d><%s><>^""nameget_user_userid(id), authidname2get_user_userid(player), authid2)
                
                if(
get_user_flags(id) & ADMIN)
                        
show_activity_key("ADMIN_SLAY_1""ADMIN_SLAY_2"namename2);
        
                else if(
get_user_flags(id) & SILVER)
                        
show_activity_key("SILVER_SLAY_1""SILVER_SLAY_2"namename2);
        
                else if(
get_user_flags(id) & GOLDEN)
                        
show_activity_key("GOLDEN_SLAY_1""GOLDEN_SLAY_2"namename2);
            } 
the plmenu.txt is right, there is no missing text there.



And where to add the stock that you gave me? Directly after it or at the end of the code?

Sorry for my noobness, still learning. :s

Last edited by Obada; 01-12-2015 at 12:46.
Obada 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:30.


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