OPSP problem. - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: OPSP problem. (
/showthread.php?tid=275436)
OPSP problem. -
Darnell - 09.08.2011
Deagle is 1 shot 1 kill.
Any ideas ?
Re: OPSP problem. -
LZLo - 09.08.2011
after onplayershootplayer
PHP код:
SetPlayerHealth(Target, 0);
it have to work
Re: OPSP problem. -
Darnell - 09.08.2011
What do you mean, after OPSP ?
after this ?
pawn Код:
public OnPlayerShootPlayer(Shooter,Target,Float:HealthLost,Float:ArmourLost)
And it sets the target's health to 0...
Re: OPSP problem. -
LZLo - 09.08.2011
PHP код:
public OnPlayerShootPlayer(Shooter,Target,Float:HealthLost,Float:ArmourLost)
{
SetPlayerHealth(Target, 0);
return 1;
}
that's it
Re: OPSP problem. -
Darnell - 09.08.2011
I need to test it, but I have no-one to with, lol.
Re: OPSP problem. -
LZLo - 09.08.2011
sorry do you meant with deagle..
PHP код:
public OnPlayerShootPlayer(Shooter,Target,Float:HealthLost,Float:ArmourLost)
{
new iWeapon = GetPlayerWeapon(Shooter);
if(iWeapon == 24) {
SetPlayerHealth(Target, 0);
}
return 1;
}
Re: OPSP problem. -
Darnell - 09.08.2011
Fixed it, I'm going to try it.
EDIT:
I ment that the bug is that deagle is doing 1 shot 1 kill, I want it to do 55 DMG n shit, lol.
Re: OPSP problem. -
Darnell - 09.08.2011
** FIXED, I JUST EDIT THE DAMAGE TO 20, SO IT DOES THE DEFAULT DAMAGE +20. **