Raised This Month: $ Target: $400
 0% 

[REQ] XP Mod + Ranks for Deathrun Server


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
ornencho
New Member
Join Date: Sep 2011
Old 09-24-2011 , 13:54   [REQ] XP Mod + Ranks for Deathrun Server
Reply With Quote #1

I need XP Mod

Example:

You kill someone and get 10 xp for the kill. When u achieve 150 xp ur rank change from "Noob" to "Mini Noob" and this is all

Sorry for my english
ornencho is offline
modernwarfare
Senior Member
Join Date: Aug 2011
Location: sweden
Old 09-24-2011 , 17:49   Re: [REQ] XP Mod + Ranks for Deathrun Server
Reply With Quote #2

Quote:
Originally Posted by ornencho View Post
I need XP Mod

Example:

You kill someone and get 10 xp for the kill. When u achieve 150 xp ur rank change from "Noob" to "Mini Noob" and this is all

Sorry for my english
Just that one level

But if you want more levels

http://forums.alliedmods.net/showthread.php?t=165138

but there is no rank names

just level 1 level 2 and etc

and yes there is a shop but you can turn it on and off
__________________
Im supporting/coding XP Mod Plugin
Free Palestine
R.I.P. The 2967 American people that lost their lives 9/11 and R.I.P.
The 48,644 Afghan and 1,690,903 Iraqi people that paid the ultimate price for a crime they did not commit.



modernwarfare is offline
Send a message via MSN to modernwarfare Send a message via Skype™ to modernwarfare
ornencho
New Member
Join Date: Sep 2011
Old 09-24-2011 , 18:21   Re: [REQ] XP Mod + Ranks for Deathrun Server
Reply With Quote #3

Quote:
Originally Posted by modernwarfare View Post
Just that one level

But if you want more levels

http://forums.alliedmods.net/showthread.php?t=165138

but there is no rank names

just level 1 level 2 and etc

and yes there is a shop but you can turn it on and off
Yes but all levels have weapons. How I can turn off that ?

And I saw 2 servers, which using that XP Mod what I want
ornencho is offline
modernwarfare
Senior Member
Join Date: Aug 2011
Location: sweden
Old 09-24-2011 , 19:23   Re: [REQ] XP Mod + Ranks for Deathrun Server
Reply With Quote #4

Quote:
Originally Posted by ornencho View Post
Yes but all levels have weapons. How I can turn off that ?

And I saw 2 servers, which using that XP Mod what I want
so then i would code the plugin for you

but how would you want it to save

nvault or vault or sql?

and yes

how should the player know what his rank is

and give me like more details

its just for t or ct or all

and goodluck
__________________
Im supporting/coding XP Mod Plugin
Free Palestine
R.I.P. The 2967 American people that lost their lives 9/11 and R.I.P.
The 48,644 Afghan and 1,690,903 Iraqi people that paid the ultimate price for a crime they did not commit.



modernwarfare is offline
Send a message via MSN to modernwarfare Send a message via Skype™ to modernwarfare
ornencho
New Member
Join Date: Sep 2011
Old 09-25-2011 , 13:09   Re: [REQ] XP Mod + Ranks for Deathrun Server
Reply With Quote #5

Quote:
Originally Posted by modernwarfare View Post
so then i would code the plugin for you

but how would you want it to save

nvault or vault or sql?

and yes

how should the player know what his rank is

and give me like more details

its just for t or ct or all

and goodluck

Do u have skype ?
My skype is sem_georgievi2
ornencho is offline
Zer0Cool
Member
Join Date: Sep 2011
Location: Belgium
Old 01-07-2012 , 18:46   Re: [REQ] XP Mod + Ranks for Deathrun Server
Reply With Quote #6

-You can change rank names in Sma
-You can change Rank levels in Sma
-You can change Level points in sma
-You can change kill points by cvar & sma
-You can change headshot points by cvar & sma

This should normaly Work:

PHP Code:
#include <amxmodx>
#include <amxmisc>
#include <cstrike>
#include <nvault>
#define IsPlayer(%1)  (1 <= %1 <= g_players) 
#define TOTALLEVELS 12
new const Levels[TOTALLEVELS] = 
{
 
25,
 
50
 
100,
 
200,
 
300,
 
500,
 
750,
 
1000,
 
1250,
 
1500,
 
1750,
 
2000,
}
new const 
LevelNames[TOTALLEVELS][] =
{
 
"Noob",
 
"Beginner",
 
"Learning",
 
"Knifer",
 
"Rambo",
 
"Butcher",
 
"Matrix",
 
"Probhop",
 
"Freak",
 
"Racer",
 
"Kill Bill",
 
"Respected Player"
}
new 
gXP[33], gLevel[33];
new 
points_killpoints_hs;
new 
g_vaultg_players;
public 
plugin_init()
{
 
register_plugin("Deathrun Rank""1.0""Rmix");
 
 
register_event("DeathMsg""eDeath""a");
 
 
points_kill register_cvar("dr_rank_kill""1");
 
points_hs register_cvar("dr_rank_hs","1");
 
 
g_vault nvault_open("DeathrunRank");
 
g_players get_maxplayers();
 
 
register_logevent "CmdRoundStart"2"1=Round_Start" )
}
public 
plugin_end()
{
 
nvault_close(g_vault);
}
public 
eDeath(id
{
 new 
killer read_data(1);
 new 
victim read_data(2);
 new 
gpoints_kill get_pcvar_num(points_kill);
 new 
gpoints_hs get_pcvar_num(points_hs);
 
 if( 
IsPlayer(killer) && is_user_connected(killer) )
 {
  if( 
victim != killer )
  {
   if( 
cs_get_user_team(victim) != cs_get_user_team(killer) )
   {
    if( 
is_user_alive(killer) )
    {     
     if(!
read_data(3))
     {
      
gXP[killer] += gpoints_kill
      client_print
(id,print_chat,"*[DR] You Gained %d Points!"gpoints_kill);
     }
     else if(
read_data(3))
     {
      
gXP[killer] += (gpoints_kill gpoints_hs);
      
client_print(id,print_chat,"*[DR] You Gained %d Points!", (gpoints_hs gpoints_kill ) );
     }
 
     
CheckLevel(killer);
     
SaveData(killer);
    }
   }
  }
 }
 
 return 
PLUGIN_HANDLED;
}
public 
CmdRoundStart ( )
{
 new 
players 32 ], numbid
 get_players 
playersnumb"a" )
 for ( new 
inumbi++ )
 {
  
CmdShowHud (id)
 }
}
public 
CheckLevel(id)
{
 if( 
gXP[id] >= Levels[gLevel[id]] )
 {
  
gLevel[id]++;
  new 
szName[33];
  
get_user_name(idszNamecharsmax(szName));
  
client_print(id,print_chat,"*[DR] Congratulations You are [Level: %i/%i] with Title %s!"gLevel[id], TOTALLEVELSLevelNames[gLevel[id]-1]);
 }
}
public 
CmdShowHud (id)
{
 
set_hudmessage 505050, -1.00.01 )
 
show_hudmessage id"*[DR]Level: %i/%i | RankName: %i | Points: $%i"gLevel[id], TOTALLEVELS LevelNames[gLevel[id]-1], gXP[id] )
 
set_task 0.2"CmdShowHud"id )
}
public 
client_connect(id)
{
 
LoadData(id);
}
public 
client_disconnect(id)
{
 
SaveData(id);
 
gXP[id] = 0;
 
gLevel[id] = 0;
}
public 
SaveData(id)
{
 new 
AuthID[35];
 
get_user_authid(id,AuthID,34);
 new 
vaultkey[64],vaultdata[256];
 
format(vaultkey,63,"%s"AuthID);
 
format(vaultdata,255,"%i#%i#",gXP[id],gLevel[id]);
 
nvault_set(g_vault,vaultkey,vaultdata);
 return 
PLUGIN_CONTINUE;
}
LoadData(id)
{
 new 
AuthID[35];
 
get_user_authid(id,AuthID,34);
 new 
vaultkey[64],vaultdata[256];
 
format(vaultkey,63,"%s",AuthID);
 
format(vaultdata,255,"%i#%i#",gXP[id],gLevel[id]);
 
nvault_get(g_vault,vaultkey,vaultdata,255);
 
replace_all(vaultdata255"#"" ");
 new 
playerxp[32], playerlevel[32];
 
parse(vaultdataplayerxp31playerlevel31);
 
gXP[id] = str_to_num(playerxp);
 
gLevel[id] = str_to_num(playerlevel);
 return 
PLUGIN_CONTINUE;

__________________
- Ol' Dirty Bastard - Brooklyn Zoo -

This style, I'm mastered in
Niggas catchin' headaches, what, what? You need Aspirin?
This type of pain, you couldn't even kill with Midol
Fuck around, get sprayed with Lysol
in your face like a can of mace, baby
Is it burnin'? Well, fuck it, now you're learnin'


Last edited by Zer0Cool; 01-08-2012 at 04:03.
Zer0Cool is offline
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 23:15.


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