Raised This Month: $ Target: $400
 0% 

Next level


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
SaM.ThE.MaN
Senior Member
Join Date: Jan 2010
Old 06-13-2010 , 12:11   Next level
Reply With Quote #1

Hello,
Ok what i am trying to do is, show next level to a player when he types /me.

here is an example :

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

new PlayerLevel[33]
new 
NextLevel[33]

new const 
LEVELS[100] = 
{
    
1
    
2
    
4,
    
8
}

public 
plugin_init()
 {
    
register_clcmd("say /me""Stats")
    
register_clcmd("say_team /me""Stats")
    
register_event("DeathMsg""DeathMsg""a")
}

public 
Stats(id)
{
client_print(id," Your next level will be i%"NextLevel[id])
}

public 
DeathMsg()
{
PlayerLevel[id] + NextLevel[id]

What i really want to know is how that + and - and = works in amxx scripting.
__________________
  • Project : Level Plugin
o [||||||||||] - 100%
  • Project : OnePieceMod
o [||||||||||] - 20%

Last edited by SaM.ThE.MaN; 06-13-2010 at 12:20.
SaM.ThE.MaN is offline
#8 SickneSS
BANNED
Join Date: Sep 2008
Location: Here
Old 06-13-2010 , 12:20   Re: Next level
Reply With Quote #2

NextLevel[id] = PlayerLevel[id] +1
#8 SickneSS is offline
Send a message via MSN to #8 SickneSS Send a message via Skype™ to #8 SickneSS
SaM.ThE.MaN
Senior Member
Join Date: Jan 2010
Old 06-13-2010 , 13:02   Re: Next level
Reply With Quote #3

fede thanx for helping but i figured out how to do it xD
__________________
  • Project : Level Plugin
o [||||||||||] - 100%
  • Project : OnePieceMod
o [||||||||||] - 20%
SaM.ThE.MaN 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 14:44.


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