AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Suggestions / Requests (https://forums.alliedmods.net/forumdisplay.php?f=12)
-   -   Request plugins format conversion (https://forums.alliedmods.net/showthread.php?t=263008)

rebeccs 05-17-2015 00:30

Request plugins format conversion
 
I want to use this plugin to do Day of Defeat used above, we need help, because it was very difficult for me. Thank you.

But I don't want to li_geoip the module of operation, also do not want to use VIP, just want to show it ordinary game player. Thank you.

PHP Code:

#include <amxmodx>
#include <csstats> 
#include "li_geoip"


#define PLUGIN_NAME "DT-EnterLeave"
#define PLUGIN_VERSION "1.0"
#define PLUGIN_AUTHOR "ahcat"

#define STATS_KILLS 0
#define STATS_DEATHS 1
#define STATS_HS 2
#define STATS_TKS 3
#define STATS_SHOTS 4
#define STATS_HITS 5
#define STATS_DAMAGE 6

new g_SpecMode[33]


new 
rank[32]
new 
iRankPos

public plugin_init(){
    
    
register_pluginPLUGIN_NAMEPLUGIN_VERSIONPLUGIN_AUTHOR);
    
    
register_event"StatusValue""DisplayInfo""bd""1=2");
    
    
register_event"TextMsg""SetSpecMode""bd""2&ec_Mod");






public 
SetSpecMode(id){    
    new 
arg[12];
    
read_data2arg11);
    
g_SpecMode[id] = ( arg[10] == '4' );
}

public 
DisplayInfo(id){

    if ( 
g_SpecMode[id]){
        
        new 
player read_data(2);
        if ( 
is_user_connectedplayer)){
            
            new 
szName[32];
            
get_user_nameplayerszName31);
            
            new 
szIP[16], szCountry[40], szArea[64];
            
get_user_ipplayerszIP151);
            
geoip_infoszIPszCountryszArea3963);
            
            new 
izStats[8], izBody[8];
            new 
iRankMax;
            
iRankPos get_user_statsplayerizStatsizBody);
            
iRankMax get_statsnum();
            new 
quanxian1[192]
            if ( (
get_user_flags(player)&ADMIN_LEVEL_A) )
            
quanxian1 "OP"
            
else if ( (get_user_flags(player)&ADMIN_LEVEL_B) )
            
quanxian1 "VIP"
            
else if ( (get_user_flags(player)&ADMIN_LEVEL_C) )
            
quanxian1 "VIP1"
            
else if ( (get_user_flags(player)&ADMIN_LEVEL_D) )
            
quanxian1 "vip2"
            
else if ( (get_user_flags(player)&ADMIN_LEVEL_E) )
            
quanxian1 "VIP3"
            
else 
            
quanxian1 "Ordinary game player"
            
new szMessage[256];

            
formatszMessage255" %s^n【%s|%s】rank: %d/%d^n kill: %d kills: %d KD: %d KD: %0.2f ^n com: %s%s",
                
szName,
                
quanxian1,
                
iRank(),
                
iRankPos,
                
iRankMax,
                
izStats[STATS_KILLS],
                
izStats[STATS_DEATHS],
                
izStats[STATS_HS],
                
1.0 floatizStats[STATS_KILLS])/floatizStats[STATS_DEATHS]),
                
szCountry,
                
szArea
                
);
            
            if ( (
get_user_flags(player)&ADMIN_LEVEL_A) )
            
set_hudmessage255000.530.7216.018.00.50.157) ;    
            else if ( (
get_user_flags(player)&ADMIN_LEVEL_B) )
            
set_hudmessage25525500.530.7206.018.00.50.157) ;    
            else if ( (
get_user_flags(player)&ADMIN_LEVEL_C) )
            
set_hudmessage255000.530.7206.018.00.50.157) ;    
            else if ( (
get_user_flags(player)&ADMIN_LEVEL_D) )
            
set_hudmessage025500.530.7206.018.00.50.157) ;    
            else if ( (
get_user_flags(player)&ADMIN_LEVEL_E) )    
            
set_hudmessage0902550.530.7206.018.00.50.157) ;
            else 
            
set_hudmessage2552502550.530.7206.018.00.50.157) ;    
            
show_hudmessageidszMessage);

        }
    }
}




public 
iRank(){    

        if(
iRankPos<=1)
            
rank "General of the Army"
        
else
            {
                if(
iRankPos<=2)
                    
rank "General"
                
else
                    {
                         if(
iRankPos<=10)
                            
rank "Lietenant General"
                        
else
                             {
                                if(
iRankPos<=20)
                                    
rank "Major General"
                                
else
                                    {
                                        if(
iRankPos<=50)
                                            
rank "Brigadier General"
                                        
else
                                            {
                                            if(
iRankPos<=100)
                                                
rank "Colonel"
                                            
else
                                                {
                                                    if(
iRankPos<=200)
                                                        
rank "First Lieutenant"
                                                    
else
                                                        {
                                                            if(
iRankPos<=290)
                                                                
rank "Second Lieutenant"
                                                            
else
                                                                {
                                                                    if(
iRankPos<=370)
                                                                        
rank "Command Sergeant"
                                                                    
else
                                                                        {
                                                                            if(
iRankPos<=460)
                                                                                
rank "Master Sergeant"
                                                                            
else
                                                                                
rank "Just Joined"                
            
}    }        }        }        }    }        }        }        }
        return    
rank



rebeccs 05-21-2015 22:53

Re: Request plugins format conversion
 
Why did no one come to help me?

MaSTeR64 05-22-2015 11:03

Re: Request plugins format conversion
 
Quote:

Originally Posted by rebeccs (Post 2299513)
Why did no one come to help me?

Wait atleast 14 days before bumping your post.

rebeccs 05-23-2015 20:38

Re: Request plugins format conversion
 
Yeah. I don't know why.

chady 05-24-2015 21:35

Re: Request plugins format conversion
 
hello sir, i have 2 plugins ideas and i would like to ask if its possible to be created first one i want like guns menu but shown on walls ct wall have their menu and tt have their menu they come press E and chose any of the guns only 1 gun each round can have starting the round.


and second one i want plugin when player join my server automatically it spray his name or nick like killer players can be able to see his name from the back reverse on his t-shirt the skin


so thats it thanks in advance best regards...


All times are GMT -4. The time now is 20:01.

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