SA-MP Forums

Go Back   SA-MP Forums > SA-MP Scripting and Plugins > Scripting Help

Reply
 
Thread Tools Display Modes
Old 01/05/2016, 09:28 AM   #1
henkas
Huge Clucker
 
Join Date: May 2015
Posts: 347
Reputation: 8
Default When shoot player got exp

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?
henkas is offline   Reply With Quote
Old 01/05/2016, 09:30 AM   #2
Micko123
High-roller
 
Micko123's Avatar
 
Join Date: Feb 2016
Location: 127.0.0.1:7777
Posts: 1,201
Reputation: 45
Default Re: When shoot player got exp

Show code
Micko123 is offline   Reply With Quote
Old 01/05/2016, 09:33 AM   #3
henkas
Huge Clucker
 
Join Date: May 2015
Posts: 347
Reputation: 8
Default Re: When shoot player got exp

I dont know what i exactly i must show bevause i dont know where that bug is on what callback.
henkas is offline   Reply With Quote
Old 01/05/2016, 09:37 AM   #4
CalvinC
High-roller
 
CalvinC's Avatar
 
Join Date: Nov 2014
Location: Denmark
Posts: 1,831
Reputation: 114
Default Re: When shoot player got exp

OnPlayerWeaponShot, OnPlayerTakeDamage, OnPlayerGiveDamage or OnPlayerShootPlayer.
__________________
[Tutorial] Custom Playerdamage system
Desert Eagle's dealing too much damage, you want one-hit sniper kills, or damage based on body parts? Check this out.
CalvinC is offline   Reply With Quote
Old 01/05/2016, 09:40 AM   #5
henkas
Huge Clucker
 
Join Date: May 2015
Posts: 347
Reputation: 8
Default Re: When shoot player got exp

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
henkas is offline   Reply With Quote
Old 01/05/2016, 09:46 AM   #6
Logic_
Banned
 
Join Date: Jun 2015
Posts: 1,513
Reputation: 305
Default Re: When shoot player got exp

PHP Code:
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 Code:
// next time use {PHP} {/PHP} tags but with "[" square brackets instead of curly brackets for the code. 
Logic_ is offline   Reply With Quote
Old 01/05/2016, 09:56 AM   #7
henkas
Huge Clucker
 
Join Date: May 2015
Posts: 347
Reputation: 8
Default Re: When shoot player got exp

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?
henkas is offline   Reply With Quote
Old 01/05/2016, 10:02 AM   #8
henkas
Huge Clucker
 
Join Date: May 2015
Posts: 347
Reputation: 8
Default Re: When shoot player got exp

Cmon guys give some ideas
henkas is offline   Reply With Quote
Old 01/05/2016, 10:33 AM   #9
henkas
Huge Clucker
 
Join Date: May 2015
Posts: 347
Reputation: 8
Default Re: When shoot player got exp

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;
}
}
}
henkas is offline   Reply With Quote
Old 01/05/2016, 11:20 AM   #10
henkas
Huge Clucker
 
Join Date: May 2015
Posts: 347
Reputation: 8
Default Re: When shoot player got exp

Ok i fixed it. CLOSE IT
henkas is offline   Reply With Quote
Reply

Thread Tools
Display Modes

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Lagging When shoot in player iulicxd Scripting Help 3 28/03/2016 02:51 PM
Shoot Can Pushed Player! Amunra Scripting Help 2 19/01/2016 05:42 PM
Player frozen upon trying to shoot. ikbenremco Scripting Help 1 18/07/2014 08:16 AM
[FilterScript] [FS] Sound when you shoot to player luby Filterscripts 37 21/12/2011 01:12 PM
How to check if player shoot? whitedragon Help Archive 0 12/06/2011 01:49 PM


All times are GMT. The time now is 06:51 AM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.