Weapon which doesnt take HP - 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: Weapon which doesnt take HP (
/showthread.php?tid=171663)
Weapon which doesnt take HP -
kiwi123 - 27.08.2010
How I can make weapon (M4) which doesnt take HP, when I shot to other players? Thanks.
Re: Weapon which doesnt take HP -
Nonameman - 27.08.2010
I think you cannot do this.
Re: Weapon which doesnt take HP -
kiwi123 - 27.08.2010
Or when I shot to player, so his HP will be as he had before shot.
Re: Weapon which doesnt take HP -
iggy1 - 27.08.2010
https://sampwiki.blast.hk/wiki/SetPlayerTeam
Two players on the same team can't harm each other. I dont think anything can be done to the actual gun though.
Re: Weapon which doesnt take HP -
kiwi123 - 27.08.2010
I want script when player of team 1 shot to player of team 2, so player of team 2 dont lose his HP
Re: Weapon which doesnt take HP -
Hiddos - 27.08.2010
Impossible, and making something even 40% accurate would require a lot of unefficient coding.
Re: Weapon which doesnt take HP -
DiddyBop - 27.08.2010
team 2 are pussies, let team 1 kill there shit.
Re: Weapon which doesnt take HP -
Mean - 27.08.2010
The only way is to set God Mode on spawn
Код:
public OnPlayerSpawn(playerid)
{
SetPlayerHealth(playerid, 10000);
return 1;
}