You should remake the plugin from 0.
Code:
new const Race[ ][ ] =
{
"None",
"Mage",
"Paladin",
"Ninja",
"Demon Hunter"
}
new const RaceHeal[ ] =
{
100,
150,
150,
150,
150
}
new const LevelXP[ ] =
{
0,50,125,225,350,500,700,950,1250,1600,
2000,2450,2950,3500,4100,4750,5450,6200,7000,7850,
8750,9700,10700,11750,12850,14000,15200,16400,17750,19100,
20500,20500,21200,21950,23450,25000,27600,29250,30950,32700,
34500,36350,38250,40200,44250,46350,48500,50700,52950,55250,
57600,57600,60000,62500,65100,67800,70600,73500,76500,79600,
82800,86100,89500,93000,96600,100300,104100,108000,112000,116100,
120300,124600,129000,133500,138100,142800,147600,152500,157500,162600,
173100,178400,183900,195200,201000,206900,212900,219000,225200,232500,
238900,245400,252000,258700,265500,272400,279400,286500,293700,301000,
316000,323800,331800,340000,348400,357000,365800,374800,384000,393400,
403000,412800,422800,433000,443400,443400,454000,464800,475800,487000,
498400,510000,521800,533800,546000,558400,571000,583800,596800,610000,
623400,637000,650800,664800,679000,693400,708000,722800,737800,753000,
768400,768400,784000,799800,815800,832000,848400,865000,881800,898800,
916000,99999999999,999999999999
}
new PlayerXP[ 33 ] , PlayerLevel[ 33 ] , PlayerClass[ 33 ][ 13 ]
// for example , to add XP
public fw_Ham_Killed( victim , inflictor , attacker )
{
if( attacker != victim )
{
PlayerXP[ id ] += 50
if( PlayerXP[ id ] >= LevelXP[ PlayerLevel[ id ] ] )
{
PlayerXP[ id ] -= LevelXP[ PlayerLevel[ id ] ]
PlayerLevel[ id ]++
}
}
}
If you want XP per class, you need to use another way. See New XP Mod Tutorial (or something like that) in Tut/Snippets section.