No-Kill Zone (help)
#1

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

https://sampforum.blast.hk/showthread.php?tid=222283
Check if the player is in a certain area then Set there health to 1000
Reply
#3

It'd be wiser to set them to the same team if they are within the zone.
Reply
#4

Quote:
Originally Posted by Infinity90
Посмотреть сообщение
https://sampforum.blast.hk/showthread.php?tid=222283
Check if the player is in a certain area then Set there health to 1000
I dont want to set the player HP to 1000 I want to clear the player can't shot in the area.
Reply
#5

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.
Reply
#6

What MP2 said would work perfectly. Although you could use SetPlayerArmedWeapon in that area to disable weapons
Reply
#7

That'd involve code under OnPlayerUpdate. Not a major issue no, but the less shit in there the better.
Reply
#8

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.
Reply
#9

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.
Reply
#10

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
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)