Raised This Month: $51 Target: $400
 12% 

[REQ]Removing Natives from plugin.


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Kakarot47
Senior Member
Join Date: May 2015
Location: Pakistan
Old 04-26-2019 , 07:05   [REQ]Removing Natives from plugin.
Reply With Quote #1

i want to remove native zp_user_get_level cuz i dont need it so can any one change it and make it only VIP Prefix

PHP Code:
native zp_get_user_level(id);

new const 
g_Prefix[9] = "^x04[VIP]";

public 
plugin_init()
{
    
    
register_plugin("VIP and Level Prefix""1.0""siriusmd99")
    
register_message(get_user_msgid("SayText"),"handle_chat");
    
}

public 
handle_chat(msgIdmsgDestmsgEnt){
    
    new 
id get_msg_arg_int(1);
    
    if(!
is_user_connected(id)) 
            return 
PLUGIN_HANDLED;

        new 
szLevel[9], 
        
szTmp[256],
        
szTmp2[256];
        
        
        
get_msg_arg_string(2szTmpcharsmax(szTmp));
        
formatex(szLevelcharsmax(szLevel), "^x04[%d]"zp_get_user_level(id))
        
        if(!
equal(szTmp"#Cstrike_Chat_All")){
            
            
add(szTmp2charsmax(szTmp2), szLevel);
            
add(szTmp2charsmax(szTmp2), " ");
            
            if(
get_user_flags(id) & ADMIN_LEVEL_H){
                
add(szTmp2charsmax(szTmp2), g_Prefix);
                
add(szTmp2charsmax(szTmp2), " ");
            }
            
            
add(szTmp2charsmax(szTmp2), szTmp);
            
        }
        else
        {
            
            
add(szTmp2charsmax(szTmp2), szLevel);
            
            if(
get_user_flags(id) & ADMIN_LEVEL_H){
                
add(szTmp2charsmax(szTmp2), " ");
                
add(szTmp2charsmax(szTmp2), g_Prefix);
            }
            
            
add(szTmp2charsmax(szTmp2), "^x03 %s1^x01 :  %s2");
            
        }
        
        
set_msg_arg_string(2szTmp2);
    
    return 
PLUGIN_CONTINUE;
    

Adding for zombie Mod for VIP So Change ADMIN_LEVEL_H to ZV_DAMAGE
And add
PHP Code:
#include <zmvip> 
if anyone can help me with it.
Only remove Levels from this script and make it only VIP Prefix
Thanks
__________________



AssasinSniperNightmare ModArmageddon ModApolacyps Mod
Kakarot47 is offline
Send a message via Skype™ to Kakarot47
Natsheh
Veteran Member
Join Date: Sep 2012
Old 04-26-2019 , 08:51   Re: [REQ]Removing Natives from plugin.
Reply With Quote #2

PHP Code:
new const g_Prefix[9] = "^x04[VIP]"

public 
plugin_init() 

     
    
register_plugin("VIP and Level Prefix""1.0""siriusmd99"
    
register_message(get_user_msgid("SayText"),"handle_chat"); 
     


public 
handle_chat(msgIdmsgDestmsgEnt){ 
     
    new 
id get_msg_arg_int(1); 
     
    if(!
is_user_connected(id))  
            return 
PLUGIN_HANDLED

        static 
szTmp[256], 
        
szTmp2[256]; 
        
szTmp2[0] = 0szTmp[0] = 0;
         
         
        
get_msg_arg_string(2szTmpcharsmax(szTmp));
         
        if(!
equal(szTmp"#Cstrike_Chat_All")){ 
             
            if(
get_user_flags(id) & ADMIN_LEVEL_H){ 
                
add(szTmp2charsmax(szTmp2), g_Prefix); 
                
add(szTmp2charsmax(szTmp2), " "); 
            } 
             
            
add(szTmp2charsmax(szTmp2), szTmp); 
             
        } 
        else 
        { 
             
            
add(szTmp2charsmax(szTmp2), szLevel); 
             
            if(
get_user_flags(id) & ADMIN_LEVEL_H){ 
                
add(szTmp2charsmax(szTmp2), " "); 
                
add(szTmp2charsmax(szTmp2), g_Prefix); 
            } 
             
            
add(szTmp2charsmax(szTmp2), "^x03 %s1^x01 :  %s2"); 
             
        } 
         
        
set_msg_arg_string(2szTmp2); 
     
    return 
PLUGIN_CONTINUE
     

__________________
@Jailbreak Main Mod v2.7.0 100%
@User Tag Prefix 100% done !
@Mystery Box 100% done !
@VIP System 100% done !

Natsheh is offline
Send a message via MSN to Natsheh Send a message via Skype™ to Natsheh
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 11:24.


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