AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   The lower level, more experience (https://forums.alliedmods.net/showthread.php?t=183510)

Arenmake 04-22-2012 14:33

The lower level, more experience
 
Hello

I know it has to do specifically with Pawn, but I thought maybe I can help

Ecuasión need some math for me better bonus exp if I am low. As I am the highest level, the bonus received diminishes

All in a defined would

Variables:

PHP Code:

g_combo[id// combo made
g_level[id// level of player
g_exp[id// experience of player
g_admin[id// better bonus should be admin 

grettings.-

ProIcons 04-22-2012 14:39

Re: The lower level, more experience
 
You can do it with cases check Switch, also you can do it by mathematical equations

You can check about elo rating system... http://en.wikipedia.org/wiki/Elo_rating

An example of Switch is

switch(g_level[id]) {
case 0 ... 10 : { //xp * 20 }
case 11 ... 20 : { //xp * 10 }
}
... etc, Is is only an example but, the equation would be more pretty. Check about ELO rating system, is interesting.


All times are GMT -4. The time now is 07:43.

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