there is a new bug in 4.06 that we are having methinks
basically happening when shooting at osprey engine, 2 cases that were reported with ergon, but i was able to replicate the bug consistently buy telling everyone not to shoot at the osprey and me attacking it with a chain gun on maps osprey and verger, happens as soon as the bullet hits.
the effect of teh bug is players are negative about a billion xp
so there for i coded up a litte band aid patchfix for it so far, but its not complete can i please have the algorithm that calculates the xp for each level and in laymans terms how to pick one players lvl out of playerskills so i can get the level and match it to the xp and if != proper range gove a lvl to reset teh xp back to what it should be
ive tried to pick it out of your code but it requires far greater skill than a lowly mortal like i
many thanks in advance!
~ifurn0
[code]
/* Plugin generated by AMXX-Studio */
#include <amxmodx>
#include <amxmisc>
#define PLUGIN "osprey bugfix"
#define VERSION "0.01"
#define AUTHOR "ifurn0"
new victim
new victim_name[50]
new server_name[50]
new oldxp
new oldlvl
new fixedlvl
new high
new low
public plugin_init() {
register_plugin(PLUGIN, VERSION, AUTHOR)
// well if i do need code here ill just add it to one of me other plugins...
// im unsure exactly weather to place client_authorized to kick off the script mabe here not sure
// or whether i have to do a do while
}
public fix(id,level,cid)
{
victim = client_authorized(id)
if (victim == 0)
{
console_print(id,"osprey xp bug patch is stuffing up please tell an admin")
}
else
{
get_user_name(victim,victim_name,49)
get_user_name(0,server_name,49)
//get player lvl
//get player xp
//get high
//get low
if(oldxp < low || oldxp > high)
{
fixedlvl = oldlvl +1
server_cmd("setlvl %s %s",victim_name_local,fixedlvl)
client_print(victim,print_chat,"%s:sory %s you had the osprey bug enjoy the free lvl
",server_name,victim_name)
}
// havent got as far as knowing how to do log opening and writing yet but:
// look for player in special; log
// if not there add and put name, steam id and a count of 1
// if there up the count
// if count is +100 spank them, tell them not to whore lvls from bugs, take 100 lvls off them
// start the count again and start a count in a overflow log with name steam id ip ect...
//this mightn't be necessary abuse prevention might be necessary
screenshot:
http://www.fileden.com/files/2006/7/11/123190/xp.JPG