Posts: 347
Threads: 47
Joined: May 2015
Reputation:
0
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?
Posts: 347
Threads: 47
Joined: May 2015
Reputation:
0
I dont know what i exactly i must show bevause i dont know where that bug is on what callback.
Posts: 1,830
Threads: 49
Joined: Nov 2014
Reputation:
0
OnPlayerWeaponShot, OnPlayerTakeDamage, OnPlayerGiveDamage or OnPlayerShootPlayer.
Posts: 347
Threads: 47
Joined: May 2015
Reputation:
0
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
Posts: 1,506
Threads: 13
Joined: Jun 2015
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.
Posts: 347
Threads: 47
Joined: May 2015
Reputation:
0
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?
Posts: 347
Threads: 47
Joined: May 2015
Reputation:
0
Cmon guys give some ideas
Posts: 347
Threads: 47
Joined: May 2015
Reputation:
0
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;
}
}
}