No-Kill Zone (help) -
Youtube12 - 09.02.2013
Guys I want to do No-KillZone Turfs in my server and when they enter the turf, they can't shot in the turf and its show a textdraw. Help me please I need it for my server!!
Regards
Re: No-Kill Zone (help) -
Infinity90 - 09.02.2013
https://sampforum.blast.hk/showthread.php?tid=222283
Check if the player is in a certain area then Set there health to 1000
Re: No-Kill Zone (help) -
PrawkC - 09.02.2013
It'd be wiser to set them to the same team if they are within the zone.
AW: Re: No-Kill Zone (help) -
Youtube12 - 10.02.2013
Quote:
Originally Posted by Infinity90
|
I dont want to set the player HP to 1000 I want to clear the player can't shot in the area.
Re: No-Kill Zone (help) -
MP2 - 10.02.2013
Create an area with Incognito's streamer plugin (easiest option trust me).
When they enter the area, loop through their weapons and save the slot data (GetPlayerWeaponData).
Remove their weapons with ResetPlayerWeapons.
Give them back when they exit the area.
Re: No-Kill Zone (help) -
LeBoyce - 10.02.2013
What MP2 said would work perfectly. Although you could use SetPlayerArmedWeapon in that area to disable weapons
Re: No-Kill Zone (help) -
MP2 - 10.02.2013
That'd involve code under OnPlayerUpdate. Not a major issue no, but the less shit in there the better.
Re: No-Kill Zone (help) -
icko202 - 10.02.2013
I think if they enter area and set their health to 1000 and leave it the health will be 1000 again, so they can heal by entering this zone.
Re: No-Kill Zone (help) -
LeBoyce - 10.02.2013
To avoid that simply save their health when entering the area and reset to this value when they leave the area again.
EDIT: Though also 1000hp isnt that much and they would get killed after a while.
You could use this though
Код:
SetPlayerHealth(playerid, Float:0x7F800000);
This makes the player really invulnerable.
AW: Re: No-Kill Zone (help) -
Youtube12 - 12.02.2013
Quote:
Originally Posted by MP2
Create an area with Incognito's streamer plugin (easiest option trust me).
When they enter the area, loop through their weapons and save the slot data (GetPlayerWeaponData).
Remove their weapons with ResetPlayerWeapons.
Give them back when they exit the area.
|
Can u help me how to create the Area and GetThePlayerWeapons with (GetPlayerWeaponData). And resert the player weapons because Iam new in Script
Help me pls
Regards