When shoot player got exp
#1

Hello i got a problem when player shot player that player who shot got exp even if that player doesent kill other just shot and get exp. So i wont delete it because now its easy bug exp. Do u know guys where i can find that script and delete it?
Reply
#2

Show code
Reply
#3

I dont know what i exactly i must show bevause i dont know where that bug is on what callback.
Reply
#4

OnPlayerWeaponShot, OnPlayerTakeDamage, OnPlayerGiveDamage or OnPlayerShootPlayer.
Reply
#5

OnPlayerWeaponShot- doesn't exist
OnPLayerTakeDamage- meaby this because its check are him human and exactly if u shot human u got exp so meaby its is i dont know
if(team[issuerid] == TEAM_ZOMBIE || TEAM_HUMAN)
{
if(pInfo[issuerid][pHour] <= 2)
{
if(team[playerid] == TEAM_HUMAN)
{
pInfo[issuerid][pXP] += 10;
}
}
}
OnPlayerGiveDamage- doesn't exist
OnPlayerShootPlayer- doesn't exist
Reply
#6

PHP код:
if(team[issuerid] == TEAM_ZOMBIE || TEAM_HUMAN)
{
if(
pInfo[issuerid][pHour] <= 2)
{
if(
team[playerid] == TEAM_HUMAN)
{
pInfo[issuerid][pXP] += 10;
}
}

remove this code.

PHP код:
// next time use {PHP} {/PHP} tags but with "[" square brackets instead of curly brackets for the code. 
Reply
#7

If i delte it everything fix u dont get exp if u shot team, bat when u kill something else u just got ban for fake kills? Do u have ideas?
Reply
#8

Cmon guys give some ideas
Reply
#9

Somebody help if i change this code if(team[playerid] == TEAM_HUMAN) to if(team[playerid] == TEAM_ZOMBIE) human dont get exp if him shot each other team, ok its fixed. Bat now if u kill somebody u got ban for fake kills -.- meaby u guys have idea how u should edit this code?
if(team[issuerid] == TEAM_ZOMBIE || TEAM_HUMAN)
{
if(pInfo[issuerid][pHour] <= 2)
{
if(team[playerid] == TEAM_ZOMBIE)
{
pInfo[issuerid][pXP] += 10;
}
}
}
Reply
#10

Ok i fixed it. CLOSE IT
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)