Raised This Month: $ Target: $400
 0% 

Matrix Jump Plugin Help


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
mAr7obg
Senior Member
Join Date: May 2007
Location: Bulgaria
Old 02-17-2009 , 11:14   Matrix Jump Plugin Help
Reply With Quote #1

Please someone help me with this script
I have a server and when someone jumping over the card he gets a prize
Please fix commands me to work it comes to these 2 commands
amx_give_matrix
amx_take_matrix
Thanks for your time
Here is the code
Code:
#include <amxmodx> 
#include <fakemeta> 
#include <fun>
new g_isMatrix[33]; 
public plugin_init() { 
    register_plugin( "Matrix Jump", "1.0", "xPaw" ); 
    register_forward( FM_PlayerPreThink,    "fwdPlayerPreThink" );  
    register_event( "DeathMsg",        "evDeath", "a" ); 
 
    register_clcmd( "+matrix", "togglematrix" ); 
    register_concmd( "amx_give_matrix", "togglematrix" );
   register_concmd( "amx_take_matrix", "togglematrix" );
} 
public fwdPlayerPreThink( id ) { 
    if( g_isMatrix[id] ) { 
        set_pev( id, pev_sequence,    3 );  
        set_pev( id, pev_gaitsequence, 9 );  
        set_pev( id, pev_frame,        1.0 );  
        set_pev( id, pev_framerate,    1.0 ); 
    } 
} 
public togglematrix( id ) {
    if( g_isMatrix[id] ) {
        g_isMatrix[id] = false;
        client_print(id,print_center,"** Matrix jump: OFF **")
        set_user_gravity(id,1.0)
    } else {
        get_user_flags(id, 1);
        g_isMatrix[id] = true;
        client_print(id,print_center,"** Matrix jump: ON **")
        set_user_gravity(id,0.3)
    }
} 
public evDeath() { 
    new iVictim = read_data( 2 ); 
 
    g_isMatrix[iVictim] = false; 
}
mAr7obg is offline
Send a message via Skype™ to mAr7obg
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 16:56.


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