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

New XP Mod tutorial


Post New Thread Reply   
 
Thread Tools Display Modes
ianglowz
Senior Member
Join Date: Nov 2008
Old 01-30-2009 , 02:18   Re: New XP Mod tutorial
Reply With Quote #111

Here.Fixed

PHP Code:
#include <amxmodx>
#include <amxmisc>
#include <nvault>
#include <fun>

#define MAXCLASSES 5
#define PREFIX "Animal Mod"

enum {
PLAYERLEVEL_1,
PLAYERLEVEL_2,
PLAYERLEVEL_3// How many Levels
PLAYERLEVEL_4,
PLAYERLEVEL_5,
PLAYERLEVEL_6
}
enum {
CLASS_NONE 0,
CLASS_COW,
CLASS_HORSE// Add your Classes there..
CLASS_CAT,
CLASS_DOG
}
new const 
CLASSES[MAXCLASSES][] = {
    
"None",
    
"Dog",
    
"Cat",
    
"Horse",
    
"Cow"
};

new const 
LEVELS[6] = {
    
100
    
200
    
400
    
800,
    
1600,
    
3200
};

new 
PlayerXP[33], PlayerLevel[33], PlayerClass[33];
new 
gCvar_KillgCvar_KnifegCvar_HSgCvar_Enableg_Vault;

public 
plugin_init() {
    
register_plugin("XP Mod""1.0""fxfighter");

    
register_event("DeathMsg""eDeath""a");
    
register_event("ResetHUD""skill""be");

    
gCvar_Enable    register_cvar("xp_save""1");
    
gCvar_Kill    register_cvar("xp_per_kill""20");
    
gCvar_HS    register_cvar("xp_hs_bonus""20");
    
gCvar_Knife    register_cvar("xp_Knife_bonus""20");
    
g_Vault        nvault_open("animod");
    
    
register_concmd("amx_take_exp""cmd_take_exp"ADMIN_KICK"<target> <amount>"); 
    
register_concmd("amx_give_exp""cmd_give_exp"ADMIN_KICK"<target> <amount>");
    
    
register_clcmd("say /class",    "ChangeClass");
    
register_clcmd("say_team /class""ChangeClass");
    
register_clcmd("say /xp",    "ShowHud");
    
register_clcmd("say_team /xp",    "ShowHud");
}

public 
eDeath() {
    new 
attacker read_data);
    new 
headshot read_data);
    new 
clipammoweapon get_user_weapon(attackerclipammo);

    
PlayerXP[attacker] += get_pcvar_num(gCvar_Kill);

    if(
headshot)
        
PlayerXP[attacker] += get_pcvar_num(gCvar_HS);

    if(
weapon == CSW_KNIFE)
        
PlayerXP[attacker] += get_pcvar_num(gCvar_Knife);

    while(
PlayerXP[attacker] >= LEVELS[PlayerLevel[attacker]]) {
        
client_print(attackerprint_chat"[%s] Congratulations! You are a level %i %s!"PREFIXPlayerLevel[attacker], CLASSES[PlayerClass[attacker]]);
        
PlayerLevel[attacker] += 1;
    }

    
ShowHud(attacker);
    
SaveData(attacker);
}

public 
ShowHud(id) {
    
set_hudmessage(255000.750.0106.015.0);
    
show_hudmessage(id"Level: %i^nXP: %i^nClass: %s"PlayerLevel[id], PlayerXP[id], CLASSES[PlayerClass[id]]);
}

public 
ChangeClass(id) {
    new 
menu menu_create("Class Menu" "Class_Handle");
    
menu_additem(menu ,"Dog""1" 0);
    
menu_additem(menu ,"Cat""2" 0);
    
menu_additem(menu ,"Horse""3" 0);
    
menu_additem(menu ,"Cow""4" 0);

    
menu_setprop(menu MPROP_EXIT MEXIT_ALL);
    
menu_display(id menu 0);

    return 
PLUGIN_CONTINUE;
}

public 
Class_Handle(id menu item)  {
    if(
item == MENU_EXIT
        
menu_destroy(menu);

    new 
szCommand[6] , szName[64];
    new 
access callback;

    
menu_item_getinfo(menu item access szCommand szName 63 callback);

    new 
str_to_num(szCommand);
    if(
PlayerClass[id] != i) {
        
PlayerClass[id] = i;
        
client_print(id,print_chat,"[%s] You are now a %s"PREFIXCLASSES[i]);
    } else
        
client_print(id,print_chat,"[%s] You are already a %s"PREFIXCLASSES[i]);

    
menu_destroy(menu);
    return 
PLUGIN_CONTINUE;
}

public 
client_connect(id)
    if(
get_pcvar_num(gCvar_Enable) == 1)
        
LoadData(id);

public 
client_disconnect(id) {
    if(
get_pcvar_num(gCvar_Enable) == 1)
        
SaveData(id);

    
PlayerXP[id]    = 0;
    
PlayerLevel[id]    = 0;
    
PlayerClass[id]    = 0;
}

public 
SaveData(id) {
    new 
AuthID[35];
    
get_user_authid(idAuthID34);
    
    new 
vaultkey[64], vaultdata[256];
    
format(vaultkey63"%s-Mod"AuthID);
    
format(vaultdata255"%i#%i#"PlayerXP[id], PlayerLevel[id]);
    
nvault_set(g_Vaultvaultkeyvaultdata);
    return 
PLUGIN_CONTINUE;
}

public 
LoadData(id) {
    new 
AuthID[35];
    
get_user_authid(id,AuthID,34);
    
    new 
vaultkey[64], vaultdata[256];
    
format(vaultkey63"%s-Mod"AuthID);
    
format(vaultdata255"%i#%i#"PlayerXP[id], PlayerLevel[id]);
    
nvault_get(g_Vaultvaultkeyvaultdata,255);

    
replace_all(vaultdata255"#"" ");

    new 
playerxp[32], playerlevel[32];

    
parse(vaultdataplayerxp31playerlevel31);

    
PlayerXP[id] = str_to_num(playerxp);
    
PlayerLevel[id] = str_to_num(playerlevel);

    return 
PLUGIN_CONTINUE;
}

// Give/Take XP addaon by [X]-RayCat
public cmd_give_expidlevel,cid ) {
    if( ! 
cmd_access idlevelcid) )
        return 
PLUGIN_HANDLED;

    new 
target[32], amount[21], reason[21];

    
read_argv1target31 );
    
read_argv(2amount20 );
    
read_argv3reason20 );

    new 
player cmd_targetidtarget);

    if( ! 
player 
        return 
PLUGIN_HANDLED;

    new 
admin_name[32], player_name[32];
    
get_user_nameidadmin_name31 );
    
get_user_nameplayerplayer_name31 );

    new 
expnum str_to_numamount );

    
PlayerXP[player] += expnum;

    switch( 
get_cvar_num "amx_show_activity" ) ) {
        case 
1client_print0print_chat"ADMIN: gave %i points for %s."expnumplayer_name );
        case 
2client_print0print_chat"ADMIN %s: gave %i points for %s."admin_nameexpnumplayer_name );
    }

    
client_printplayerprint_chat"[%s] You received %i points. (Total: %d)"PREFIXexpnumPlayerXP[player] );
    
SaveDataid );

    return 
PLUGIN_CONTINUE;
}
 
public 
cmd_take_expidlevel,cid ) {
    if( ! 
cmd_access idlevelcid) )
       return 
PLUGIN_HANDLED;

    new 
target[32], amount[21], reason[21];

    
read_argv1target31 );
    
read_argv2amount20 );
    
read_argv3reason20 );

    new 
player cmd_targetidtarget);

    if( ! 
player 
       return 
PLUGIN_HANDLED;

    new 
admin_name[32], player_name[32];
    
get_user_nameidadmin_name31 );
    
get_user_nameplayerplayer_name31 );

    new 
expnum str_to_numamount );

    
PlayerXP[player] -= expnum;

    switch(
get_cvar_num("amx_show_activity")){
        case 
1client_print0print_chat"ADMIN: took %i points from %s."expnumplayer_name );
        case 
2client_print0print_chat"ADMIN %s: took %i points from %s."admin_nameexpnumplayer_name );
    }

    
client_printplayerprint_chat"[%s] You lost %i points. (Total: %d)"PREFIXexpnumPlayerXP[player] );
    
SaveDataid );

    return 
PLUGIN_CONTINUE;
}  
public 
skill(id)
{
    if (
PlayerClass[id] == CLASS_COW)
         {     
        
set_user_health(id250); // gives him 250 health if he's a Cow
    
}

__________________
~ +karma to me and leave your name. ~
~ If you -karma to me,please leave your name so I know you are pro scripter. ~
~ Helping anytime ~


ianglowz is offline
Frogstomp
Member
Join Date: Jun 2008
Location: Straya (Australia)
Old 02-08-2009 , 02:53   Re: New XP Mod tutorial
Reply With Quote #112

is there anyway to set what the levels give you, say at level 7 you get leap?
__________________
Play Hyper-strike!
(The best cs 1.6 mod)
Frogstomp is offline
MIk3
Junior Member
Join Date: Sep 2008
Location: Romania
Old 02-21-2009 , 11:48   Re: New XP Mod tutorial
Reply With Quote #113

Can someone make Top15 for this plugin too?
__________________
Hot Blood & Cold Heart
MIk3 is offline
Send a message via Yahoo to MIk3
Old 02-26-2009, 10:16
iNspiratioN
This message has been deleted by iNspiratioN. Reason: Moving it to Scripting HELP
water
Member
Join Date: Feb 2009
Old 03-02-2009 , 05:50   Re: New XP Mod tutorial
Reply With Quote #114

why we need to say/xp to see level?
can the level place on the left bottom?

Last edited by water; 03-02-2009 at 05:55.
water is offline
~Ice*shOt
Veteran Member
Join Date: Mar 2009
Location: Lithuania
Old 03-02-2009 , 12:08   Re: New XP Mod tutorial
Reply With Quote #115

Quote:
Originally Posted by flyeni6 View Post
First of all, full credit goes to fxfighter, he revised it. All im doing is releasing this so that people wont go to the other xp mod tutorial (which doesnt work). And i added a little bit of extras so that it would be better. Anyways, on to the tutorial ...


Im going to show you have to make an XP mod.
Before starting, you should have basic scripting Knowledge.


Inculde all the important modules

PHP Code:
#include <amxmodx>
#include <amxmisc>
#include <nvault> 
Define the maximum classes.
Here there is 5, but if you want to add 2 more animals, like a bird and a fish, then you can put 7. But we are dealing with 5
PHP Code:
#define MAXCLASSES 5 
We create the variable that is going to hold your class, xp , and level
PHP Code:
new PlayerXP[33],PlayerLevel[33],PlayerClass[33]
 
//these are for special kills 
new XP_Kill,XP_Knife,XP_Hs,SaveXP
 
//this is for Nvault. so that We can save XP
 
new g_vault 
This is the "maxclasses" variable we were talking about. You'll see these in the game.
Code:
PHP Code:
new const CLASSES[MAXCLASSES][] = {
    
"None",
    
"Dog",
    
"Cat",
    
"Horse",
    
"Cow"

Note that there are 5 classes. Thats why we defined maxclasses to 5


Now we create the levels, and how many xp you ned to gain a level.
There is 7 levels

Code:
PHP Code:
new const LEVELS[7] = {
0,
100,//this means you need 100 xp
200,//this means you need 200 xp
400,//this means you need 400 xp
800,//so on
1600,//so on
3200 //so on

Now we create the plugin_init()
PHP Code:
public plugin_init()
{
    
register_plugin("XpMod""1.0""Fxfighter")
 
    
//we need this to check your level after you kill some one
    
register_event("DeathMsg""eDeath""a")
    
//is saving on?
    
SaveXP register_cvar("SaveXP","1")
    
//how many xp are u gonna get per kill?
    
XP_Kill=register_cvar("XP_per_kill""20")
    
//if you get a hs you get bonus xp
    
XP_Hs=register_cvar("XP_hs_bonus","20")
    
//if you make a knife kill you get bounus xp
    
XP_Knife=register_cvar("XP_knife_bonus","20")
    
//we just opened a new connection NVAULT connection
    // we will call it animod
    
g_vault nvault_open("animod")
    
// register a say command to change class
    
register_clcmd("say /class""ChangeClass")
    
register_clcmd("say_team /class""ChangeClass")
    
//show how much xp you have
    
register_clcmd("say /xp""ShowHud")
    
register_clcmd("say_team /xp""ShowHud")

We are gonna create the Death function. Rember we called it "eDeath" in plugin_init()? It will keep track of your xp and if you ganined a level
Code:
PHP Code:
public eDeath( ) //function name 

    
// If the player's Class is  nothing, then dont bother to do any of the below
    
if(PlayerClass[attacker] == 0)
         return 
PLUGIN_CONTINUE
 
    
// We create the victim variable, so that this function can check 
    // if a player was killed 
    
new iVictim read_data)
    
// If a player was killed by a HeadShot, this will be used for the cvar Xp_Hs
    
new headshot read_data)
 
    
//which weapon was used
    
new clipammoweapon get_user_weapon(id,clip,ammo);
    
PlayerXP[attacker] += get_pcvar_num(XP_Kill
    
// used for the xp_hs cvar 
    // it checks if the victim was killed by a headshot 
    
if(headshot
    
// give him/her bonus xp 
    
PlayerXP[attacker] += get_pcvar_num(XP_Hs
    
// checks if the victim was killed by a knife 
    
if(weapon == CSW_KNIFE
        
//give him/her bonus xp 
    
PlayerXP[attacker] += get_pcvar_num(XP_Knife
    
// this checks if the player has enough xp to advance to a new level
 
     
while(PlayerXP[attacker] >= LEVELS[PlayerLevel[attacker]]) 
    { 
// this will create the Congratulations message. 
        
client_print(attackerprint_chat"[Animal Mod] Congratulations! You are a level %i %s!"PlayerLevel[attacker],CLASSES[PlayerClass[attacker]]) 
        
// Add his/her level 
        
PlayerLevel[attacker] += 
    

    
// shows his level on a hud message 
    
ShowHud(attacker)
 

This is the showhud function. It shows the your Class, your level, and XP
PHP Code:
public ShowHud(id

    
set_hudmessage(255000.750.0106.015.0
    
show_hudmessage(id"Level: %i^nXP: %i^nClass: %s",PlayerLevel[id],PlayerXP[id],CLASSES[PlayerClass[id]]) 

Note: ^n means new line


Here is the menu selector. It will give you the options to select your animal. It uses the new menu system. I dont feel like going into detail with the new menu system, here is the original tutorial on that
PHP Code:
public ChangeClass(id
{
    new 
menu menu_create("Class Menu" "Class_Handle");
    
menu_additem(menu ,"Dog""1" 0); 
    
menu_additem(menu ,"Cat""2" 0); 
    
menu_additem(menu ,"Horse""3" 0); 
    
menu_additem(menu ,"Cow""4" 0);
    
menu_setprop(menu MPROP_EXIT MEXIT_ALL);
    
menu_display(id menu 0); 
    return 
PLUGIN_CONTINUE

 
public 
Class_Handle(id menu item

    if(
item == MENU_EXIT
    { 
        
menu_destroy(menu); 
    } 
    new 
szCommand[6] , szName[64]; new access callback
    
menu_item_getinfo(menu item access szCommand szName 63 callback); 
    new 
str_to_num(szCommand
    if(
PlayerClass[id] != i
    { 
        
PlayerClass[id] = i client_print(id,print_chat,"You are now a %s",CLASSES[i]) 
    }
    else 
    { 
        
client_print(id,print_chat,"You are alredy a %s",CLASSES[i]) 
    } 
    
menu_destroy(menu); 
    return 
PLUGIN_CONTINUE 

This this is the client connect function. All these things happend when the player is connecting to the server
PHP Code:
public client_connect(id
{
    
// Only does it if xp saving is on 
    
if(get_pcvar_num(SaveXP) == 1
    { 
        
// load your player data 
        
LoadData(id
    } 

This is the client disconect funtion. These only happen when the player has disconnected from the server
PHP Code:
public client_disconnect(id

// Only does it if xp saving is on 
     
if(get_pcvar_num(SaveXP) == 1
     { 
          
// lets save the data 
          
SaveData(id
     } 

Now we create the save data function
PHP Code:
public SaveData(id

    
// get the players steam id. We need this because we are saving by steam id 
    
new AuthID[35get_user_authid(id,AuthID,34
    new 
vaultkey[64],vaultdata[256
    
// format wat is going to be in the animal mod vault file 
    
format(vaultkey,63,"%s-Mod",AuthID
    
format(vaultdata,255,"%i#%i#",PlayerXP[id],PlayerLevel[id]) 
    
// save the data 
    
nvault_set(g_vault,vaultkey,vaultdata
    return 
PLUGIN_CONTINUE 

now we create the load data function
PHP Code:
public LoadData(id

    new 
AuthID[35get_user_authid(id,AuthID,34
    new 
vaultkey[64],vaultdata[256
    
// search 
    
format(vaultkey,63,"%s-Mod",AuthID
    
format(vaultdata,255,"%i#%i#",PlayerXP[id],PlayerLevel[id]) 
    
// load the data 
    
nvault_get(g_vault,vaultkey,vaultdata,255
    
replace_all(vaultdata255"#"" "
    new 
playerxp[32], playerlevel[32
    
parse(vaultdataplayerxp31playerlevel31
    
PlayerXP[id] = str_to_num(playerxp
    
PlayerLevel[id] = str_to_num(playerlevel
    return 
PLUGIN_CONTINUE 

OK now everything with out comments
Code:
#include <amxmodx>
#include <amxmisc>
#include <nvault>
#define MAXCLASSES 5
new const CLASSES[MAXCLASSES][] = {
    "None",
    "Dog",
    "Cat",
    "Horse",
    "Cow"
}
new const LEVELS[6] = {
    100, 
    200, 
    400, 
    800,
    1600,
    3200
}
new PlayerXP[33],PlayerLevel[33],PlayerClass[33]
new XP_Kill,XP_Knife,XP_Hs,SaveXP,g_vault
public plugin_init()
{
    register_plugin("XpMod", "1.0", "Fxfighter")
 
    register_event("DeathMsg", "eDeath", "a") 
 
    SaveXP = register_cvar("SaveXP","1")
    XP_Kill=register_cvar("XP_per_kill", "20")
    XP_Hs=register_cvar("XP_hs_bonus","20")
    XP_Knife=register_cvar("XP_knife_bonus","20")
    g_vault = nvault_open("animod")
 
    register_clcmd("say /class", "ChangeClass")
    register_clcmd("say_team /class", "ChangeClass")
    register_clcmd("say /xp", "ShowHud")
    register_clcmd("say_team /xp", "ShowHud")
}
public eDeath(  ) 
{
    new iVictim = read_data( 2 )
    new headshot = read_data( 3 )
    new clip, ammo, weapon = get_user_weapon(id,clip,ammo);
 
    PlayerXP[attacker] += get_pcvar_num(XP_Kill)
 
    if(headshot)
    PlayerXP[attacker] += get_pcvar_num(XP_Hs)
 
    if(weapon == CSW_KNIFE)
    PlayerXP[attacker] += get_pcvar_num(XP_Knife)
 
 
    while(PlayerXP[attacker] >= LEVELS[PlayerLevel[attacker]])
    {
      client_print(attacker, print_chat, "[Animal Mod] Congratulations! You are a level %i %s!",
      PlayerLevel[attacker] += 1
    }
    ShowHud(attacker)
    SaveData(attacker)
}
public ShowHud(id)
{
    set_hudmessage(255, 0, 0, 0.75, 0.01, 0, 6.0, 15.0)
    show_hudmessage(id, "Level: %i^nXP: %i^nClass: %s",PlayerLevel[id],PlayerXP[id],CLASSES[PlayerClass[id]])
}
public ChangeClass(id)
{
    new menu = menu_create("Class Menu" , "Class_Handle");
    menu_additem(menu ,"Dog", "1" , 0);
    menu_additem(menu ,"Cat", "2" , 0);
    menu_additem(menu ,"Horse", "3" , 0);
    menu_additem(menu ,"Cow", "4" , 0);
 
    menu_setprop(menu , MPROP_EXIT , MEXIT_ALL);
 
    menu_display(id , menu , 0);
 
    return PLUGIN_CONTINUE;
}
public Class_Handle(id , menu , item) 
{
    if(item == MENU_EXIT) 
    {
 
        menu_destroy(menu);
 
    }
 
    new szCommand[6] , szName[64];
    new access , callback;
 
    menu_item_getinfo(menu , item , access , szCommand , 5 , szName , 63 , callback);
 
    new i = str_to_num(szCommand)
    if(PlayerClass[id] != i)
    {
        PlayerClass[id] = i
        client_print(id,print_chat,"You are now a %s",CLASSES[i])
    }
    else
    {
        client_print(id,print_chat,"You are alredy a %s",CLASSES[i])
    }
 
    menu_destroy(menu);
    return PLUGIN_CONTINUE
}
public client_connect(id)
{
    if(get_pcvar_num(SaveXP) == 1)
    {
 
        LoadData(id)
    }
}
public client_disconnect(id)
{
    if(get_pcvar_num(SaveXP) == 1)
    {
 
        SaveData(id)
    }
    PlayerXP[id] = 0
    PlayerLevel[id] = 0
    PlayerClass[id] = 0
}
public SaveData(id)
{
    new AuthID[35]
    get_user_authid(id,AuthID,34)
 
    new vaultkey[64],vaultdata[256]
    format(vaultkey,63,"%s-Mod",AuthID)
    format(vaultdata,255,"%i#%i#",PlayerXP[id],PlayerLevel[id])
    nvault_set(g_vault,vaultkey,vaultdata)
    return PLUGIN_CONTINUE
}
public LoadData(id)
{
    new AuthID[35]
    get_user_authid(id,AuthID,34)
 
    new vaultkey[64],vaultdata[256]
    format(vaultkey,63,"%s-Mod",AuthID)
    format(vaultdata,255,"%i#%i#",PlayerXP[id],PlayerLevel[id])
    nvault_get(g_vault,vaultkey,vaultdata,255)
 
    replace_all(vaultdata, 255, "#", " ")
 
    new playerxp[32], playerlevel[32]
 
    parse(vaultdata, playerxp, 31, playerlevel, 31)
 
    PlayerXP[id] = str_to_num(playerxp)
    PlayerLevel[id] = str_to_num(playerlevel)
 
    return PLUGIN_CONTINUE
}
Any errors or anything please feel free to reply
Help me plz that errors: undefined symbol "id", undefine symbol "attacker" and no effect plz help!
~Ice*shOt is offline
Send a message via Skype™ to ~Ice*shOt
iNspiratioN
Member
Join Date: Feb 2009
Location: Lithuania
Old 03-02-2009 , 13:33   Re: New XP Mod tutorial
Reply With Quote #116

Add lines:
PHP Code:
 new id read_data(1)
 new 
attacker read_data(1
PHP Code:
public eDeath(  ) 
{
    new 
id read_data(1)
    new 
attacker read_data (1)
    new 
iVictim read_data)
    new 
headshot read_data)
    new 
clipammoweapon get_user_weapon(id,clip,ammo);
 
    
PlayerXP[attacker] += get_pcvar_num(XP_Kill)
 
    if(
headshot)
    
PlayerXP[attacker] += get_pcvar_num(XP_Hs)
 
    if(
weapon == CSW_KNIFE)
    
PlayerXP[attacker] += get_pcvar_num(XP_Knife)
 
 
    while(
PlayerXP[attacker] >= LEVELS[PlayerLevel[attacker]])
    {
      
client_print(attackerprint_chat"[Animal Mod] Congratulations! You are a level %i %s!",
      
PlayerLevel[attacker] += 1
    
}
    
ShowHud(attacker)
    
SaveData(attacker)

__________________
iNspiratioN is offline
Old 03-03-2009, 04:35
water
This message has been deleted by water.
iNspiratioN
Member
Join Date: Feb 2009
Location: Lithuania
Old 03-03-2009 , 07:28   Re: New XP Mod tutorial
Reply With Quote #117

Quote:
Originally Posted by water View Post
error.....can not change amxx
What? Give more INFO about your error.
iNspiratioN is offline
water
Member
Join Date: Feb 2009
Old 04-02-2009 , 14:05   Re: New XP Mod tutorial
Reply With Quote #118

if i want to get exp when i hit the enemy
please help me=.=
water is offline
el.nino
Junior Member
Join Date: Dec 2007
Old 04-09-2009 , 23:51   Re: New XP Mod tutorial
Reply With Quote #119

Good tutorial but if you take all the xp of some1 you can't get more xp anymore. It doesn't stop at 0 if you know what I mean.

Edit: This is just a comment, I really enjoy the tutorial and it helped me a lot. Don't - karma me for this wow.

Last edited by el.nino; 04-18-2009 at 16:28. Reason: Someone -karma with no reason
el.nino is offline
TitANious
Veteran Member
Join Date: Feb 2009
Location: Denmark
Old 06-28-2009 , 05:45   Re: New XP Mod tutorial
Reply With Quote #120

Quote:
Originally Posted by water View Post
if i want to get exp when i hit the enemy
please help me=.=
Use Ham_TakeDamage

Hmm, this one needs some fixes

@iNspiratioN
iAttacker = read_data( 1 )
iVictim = read_data( 2 )
iHeadshot = read_data( 3 )
__________________
I dislike this.

"A sneeze never comes alone!" <-- Important to remember.
TitANious is offline
Send a message via MSN to TitANious
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 04:17.


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