AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Next level (https://forums.alliedmods.net/showthread.php?t=129494)

SaM.ThE.MaN 06-13-2010 12:11

Next level
 
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.

#8 SickneSS 06-13-2010 12:20

Re: Next level
 
NextLevel[id] = PlayerLevel[id] +1

SaM.ThE.MaN 06-13-2010 13:02

Re: Next level
 
fede thanx for helping but i figured out how to do it xD


All times are GMT -4. The time now is 14:44.

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