Raised This Month: $ Target: $400
 0% 

Help me to make this amxmod plugin become to amxmodx plugin


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
lolaiba
New Member
Join Date: Mar 2005
Old 03-29-2005 , 10:19   Help me to make this amxmod plugin become to amxmodx plugin
Reply With Quote #1

this plugin is anti player logo to die body or slay him。sorry for my pool english。thank you
Code:
#include <amxmod> 
#define MAX_DISTANCE 100    // detect distance... 
#define MAX_PLAYERS 32      // server maximum players 
                                                                                
new sprayidorigins[3] 
new vorigin[MAX_PLAYERS][3] 
new d_index 
                                                                                
                              
public plugin_init() { 
        register_plugin("Auto-logo punisher","0.01","[PAPA]PERt+") 
        register_event( "RoundTime", "reset_table", "bc" ); 
        register_event("23", "checkspray", "a", "1=112")        
        register_event( "DeathMsg", "store_table", "a" ); 
} 
                                                                                
public store_table() { 
                                                                                
        new victim = read_data( 2 ); 
        new name[32] 
        get_user_name(victim, name , 31); 
        get_user_origin( victim, vorigin[d_index], 0 ); 
        d_index++ 
        return PLUGIN_CONTINUE; 
                                                                                
} 
                                                                                
public reset_table() { 
                                                                                
        d_index = 0 
        new i ; 
        for (i=0; i < MAX_PLAYERS; i++) { 
        vorigin[i][0] =  0; 
        vorigin[i][1] =  0; 
        vorigin[i][2] =  0; 
        } 
                                                                                
        return PLUGIN_CONTINUE; 
} 
                                                                                
                                                                                
public checkspray() { 

        new sprayid = read_data(2)      ; 
        sprayidorigins[0] = read_data(3);      
        sprayidorigins[1] = read_data(4);      
        sprayidorigins[2] = read_data(5);      
                                                                                
        new j; 
        for ( j=0; j < MAX_PLAYERS ; j++) { 
        new distance = get_distance(vorigin[j], sprayidorigins); 
                                                                                
        if ( distance < MAX_DISTANCE ) { 
                new name[32] 
                get_user_name(sprayid,name,31) 
                client_cmd(sprayid,"kill") 
                                                                                
                client_print(0,print_chat, "%s is killed due to logo on dead body...",name) 
                user_kill(sprayid,1) 
                client_cmd(sprayid,"kill") 
                break 
                } 
        } 
                                                  
        return PLUGIN_CONTINUE 
}
lolaiba is offline
nightscreem
Veteran Member
Join Date: Jul 2004
Location: Belgium
Old 03-29-2005 , 11:43  
Reply With Quote #2

this is easy just change
Code:
#include <amxmod>
into
Code:
#include <amxmodx>
__________________
- Bye bye!
nightscreem is offline
amxxsean
Member
Join Date: Feb 2005
Old 03-29-2005 , 11:49  
Reply With Quote #3

So I guess AMX and AMXX use the same stock functions and thats why you just have to recompile most scripts to amxx?
__________________
DID SOMEBODY DIAL TEH AWPERAT0RZ?
www.awpz.tk
NOW ACCEPTING MEMBERS!
amxxsean is offline
nightscreem
Veteran Member
Join Date: Jul 2004
Location: Belgium
Old 03-29-2005 , 12:02  
Reply With Quote #4

yes but there are diffrents like engine has other codes then VexdUM en Xtrafun and such
__________________
- Bye bye!
nightscreem is offline
amxxsean
Member
Join Date: Feb 2005
Old 03-29-2005 , 12:18  
Reply With Quote #5

AMXX doesn't use Xtrafun does it? We only use fun module. Didn't Vexd and Xtra combine into Fun?
__________________
DID SOMEBODY DIAL TEH AWPERAT0RZ?
www.awpz.tk
NOW ACCEPTING MEMBERS!
amxxsean is offline
TotalNoobScripter
Senior Member
Join Date: Aug 2004
Old 03-29-2005 , 14:42  
Reply With Quote #6

vexd = engine
XtraFun = fun
TotalNoobScripter is offline
Send a message via AIM to TotalNoobScripter
nightscreem
Veteran Member
Join Date: Jul 2004
Location: Belgium
Old 03-29-2005 , 15:20  
Reply With Quote #7

those have some other codes
__________________
- Bye bye!
nightscreem is offline
kevin14144
Member
Join Date: Jul 2007
Old 07-11-2008 , 23:22   Re: Help me to make this amxmod plugin become to amxmodx plugin
Reply With Quote #8

Quote:
Originally Posted by nightscreem View Post
those have some other codes

what is "23" and "1=112"


register_event("23", "checkspray", "a", "1=112")
kevin14144 is offline
Reply


Thread Tools
Display Modes

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 09:54.


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