Raised This Month: $ Target: $400
 0% 

Xp problem


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
bigdaddy424
Senior Member
Join Date: Oct 2021
Location: Jupiter
Old 01-18-2022 , 21:43   Re: Xp problem
Reply With Quote #11

Code:
//---------------------------------------------------------------------------------------------- //native sh_add_kill_xp(id, victim) public _sh_add_kill_xp() {     new id = get_param(1)     new victim = get_param(2)     // Stupid check - but checking prevents crashes     if ( id < 1 || id > gServersMaxPlayers || victim < 1 || victim > gServersMaxPlayers ) return     new float: multiplier = str_to_float(fmt("%d.%02d", (gPlayerLevel[id] / 100) + 1, gPlayerLevel[id] % 100))     localAddXP(id,floatround(multiplier * gXPGiven[gPlayerLevel[victim]]))     displayPowers(id, false) }
bigdaddy424 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 11:30.


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