2 questions
#1

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
Reply
#2

1 lol just set there health && 2 there is i had it before just not no more
Reply
#3

SetPlayerHealth(playerid,1000000000,0); ?maybe
Reply
#4

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
Reply
#5

yeah but if he have health 50 what do to? i dont want to refill he health
Reply
#6

Save his HP and when someone shoots him set his HP to 1k and then back.

Use timers in between.
Reply
#7

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);
Reply
#8

didnt work pls help
Reply
#9

SetPlayerTeam?

As for 2: IsPlayerInRangeOfPoint could be possible.
Reply
#10

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)
Reply


Forum Jump:


Users browsing this thread: 3 Guest(s)