Raised This Month: $ Target: $400
 0% 

XP Required %i, Help!


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
xxxperts
Senior Member
Join Date: Oct 2013
Location: India
Old 01-12-2014 , 06:29   Re: XP Required %i, Help!
Reply With Quote #1

first thing your codes are very complicated to understand... soo i created it in my style..i think you can understand it..its a very comman sence style
PHP Code:
#include <amxmodx>
#include <amxmisc>

#define PLUGIN    "XP LEVEL EXAMPLE"
#define VERSION    "1.0"
#define AUTHOR    "[ZOF 'X]"

new User_XP[33];
new 
User_Level[33];

new const 
XP[] =
{
    
100,
    
200,
    
300,
    
400,
    
500
}

new const 
Level_Names[][] =
{
    
"Lvl 1",
    
"Lvl 2",
    
"Lvl 3",
    
"Lvl 4",
    
"Lvl 5"
}

public 
plugin_init()
{
    
register_plugin(PLUGINVERSIONAUTHOR);
    
    
register_clcmd("say /xp""cmdXP");
    
register_clcmd("say_team /xp""cmdXP");
}

public 
cmdXP(id)
{
    
client_print(idprint_chat"Your Stats : %s | XP : %d / %d"Level_Names[User_Level[id]], User_XP[id], XP[User_Level[id]+0])

__________________
All my work is here

Last edited by xxxperts; 01-12-2014 at 06:31.
xxxperts 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 10:14.


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