2 questions - 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: 2 questions (
/showthread.php?tid=164837)
2 questions -
billiout - 02.08.2010
hey guys i have 2 questions:
1. How i can make a gun not kill. i mean if someone shoot another nothing happen.
2. Is there any fuctions to check if player is close to another? i want this because i have a sdpistol tazer and i can taze the other throw walls lol
pls help me. ty anyway
Re: 2 questions -
willsuckformoney - 02.08.2010
1 lol just set there health && 2 there is i had it before just not no more
Re: 2 questions -
Kitten - 02.08.2010
SetPlayerHealth(playerid,1000000000,0); ?maybe
Re: 2 questions -
willsuckformoney - 02.08.2010
yeah or just define infinity at top like this
#define INFIN 1000000
then
SetPlayerHealth(playerid, INFIN);
that may work &&
https://sampforum.blast.hk/showthread.php?tid=164379
there is a near player function may work
Re: 2 questions -
billiout - 02.08.2010
yeah but if he have health 50 what do to? i dont want to refill he health
Re: 2 questions -
Retardedwolf - 02.08.2010
Save his HP and when someone shoots him set his HP to 1k and then back.
Use timers in between.
Re: 2 questions -
billiout - 02.08.2010
is this will work for the health and armour?
Код:
new Float:health;
GetPlayerHealth(playerid,health);
SetPlayerHealth(playerid,health);
new Float:armour;
GetPlayerArmour(playerid,armour);
SetPlayerArmour(playerid,armour);
Re: 2 questions -
billiout - 02.08.2010
didnt work pls help
Re: 2 questions -
Hiddos - 02.08.2010
SetPlayerTeam?
As for 2: IsPlayerInRangeOfPoint could be possible.
Re: 2 questions -
billiout - 02.08.2010
i want only for the first. the setplayerteam doesnt work because i want only for a certain gun and not for innocent people (cnr script)