Ok, so I know that I made a topic about this a while ago but this is getting on my nerves.
I made a level script with this but when I Self Delete, I get EXP and cash, but it also gives it to me when I kill someone, here is the code. (I don't want to post the other part which is included in my trench hud script which doesn't matter to this part because it's just checking to see if the person's exp and level = nothing)
function gameConnection::onDeath(%this,%obj,%killer,%type,%area)
{
parent::onDeath(%this,%obj,%killer,%type,%area);
%neededexp = %killer.level*12+5;
%killer.exp += getRandom(3,12);
%killer.cash += 2;
commandtoclient(%killer,'centerPrint',"+"@%killer.exp@""); //I will fix this later
%killer.chatMessage("\c3+<color:00DD00>$2");
}
I need help on this soon for my new project that will be public soon. I'd appreciate it.