Raised This Month: $ Target: $400
 0% 

XP system help


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
XsupamanX
Junior Member
Join Date: Sep 2004
Old 09-19-2004 , 15:21  
Reply With Quote #3

Code:
//AMXX Plugin by SupaMan represents a MMORPG game MU (www.muonline.com)
//CMDS:
//
//CVARS:
//mu_savexp default 1 //saves xp into fles
/////////////////////////////////////////////INCLUDES///////////////////////////////////////////////
#include <amxmod>
#include <string>
#define HMCHAN_NOTICE 504
#define HMCHAN_PLAYERINFO 1089
/////////////////////////////////////////////precache///////////////////////////////////////////////
public plugin_precache() {
if (file_exists("sound/MU/iTitle.wav")) precache_sound("MU/iTitle.wav")
}
/////////////////////////////////////////////plugin/////////////////////////////////////////////////
public plugin_init() {
register_cvar("mu_savexp", "1",FCVAR_SERVER)
set_task(120.0, "servernotice", 0, "", 0, "b")
set_task(1.0, "statmenu", 0, "", 0, "b")
register_clcmd("mu_addxp","addxp")
register_clcmd("mu_addxp2","addxp2")
register_plugin("MU Mod", "0.3", "SupaMan")
}
/////////////////////////////////////////////STATS//////////////////////////////////////////////////
new XP[33] = 16
/////////////////////////////////////////////anounce///////////////////////////////////////////////
public servernotice(id) {
set_hudmessage(200,200,200,-1.0,0.30,5,6.0,12.0,0.1,0.5,HMCHAN_NOTICE)
show_hudmessage(0, "Sitas servas naudoja MU plugina pagal SupaMan")
}
public statmenu(id){
set_hudmessage(75,200,200,-1.0,0.86,0,6.0,2.0,0.1,0.5,HMCHAN_PLAYERINFO)
show_hudmessage (id,"EXP:%d",XP[id])
}
public addxp(id){
if(XP[id] > 1)
{
XP[id]=XP[id]+=4
return PLUGIN_CONTINUE
}
return PLUGIN_CONTINUE
}

public addxp2(id){
XP[id] += 4
return PLUGIN_CONTINUE
}
this is the code doesnt work how you told me
XsupamanX is offline
 



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 17:26.


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