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

[REQ] Experience Points


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
daniel1296
Member
Join Date: Mar 2012
Old 04-20-2012 , 10:57   [REQ] Experience Points
Reply With Quote #1

hi all, someone can build a mod that give u XP when u kill someone?? i want that when u kill u will get 1 xp point, and when die 1 xp point will reduce.
thanx "D
daniel1296 is offline
daniel1296
Member
Join Date: Mar 2012
Old 04-23-2012 , 10:37   Re: [REQ] Experience Points
Reply With Quote #2

up
daniel1296 is offline
quark
Veteran Member
Join Date: Oct 2011
Location: Your mind.
Old 04-23-2012 , 11:45   Re: [REQ] Experience Points
Reply With Quote #3

NOT TESTED:

PHP Code:
#include <amxmodx>

#define PLUGIN "New Plug-In"
#define VERSION "1.0"
#define AUTHOR "author"

new XP[32]

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

public 
XPOINTS(id

    
set_hudmessage(02550, -1.0, -1.0)
    
show_hudmessage(id"^nYou have %d Experience Points!"XP[id])


public 
client_death(killervictim

        
XP[killer] += 1
        XP
[victim] -= 1  

EDIT - You want it to save experience points?
__________________

Check out My Plugins:
qServerInfo ; ASKTAG

Last edited by quark; 04-23-2012 at 11:54.
quark is offline
daniel1296
Member
Join Date: Mar 2012
Old 04-23-2012 , 13:12   Re: [REQ] Experience Points
Reply With Quote #4

yea... and how to make it work?? its just a code. how to create .amxx file with that plz?
and yes, i want to save experience points... thanx

i wrote it on notepad and i compile it. in the game "amxx plugins" says that is running..

it works dude! thanx
only one question.. how to show all Xp points for all the players at the right corner??

Last edited by daniel1296; 04-23-2012 at 13:27.
daniel1296 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 21:59.


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