Safe Zone Creation HELP
#1

hello, i would like to create a safe zone in my server

it has to:

keep your health constant
jail you if you kill somebody in the safe zone
if you drive a car into the safe zone, you lose it

i want the safe zone to be the pirate ship, on the LV strip

i have no idea what im doing, so please help!
Reply
#2

There are two ways of doing it, PlayerToPoint, or Checkpoint. You should use Checkpoints because playertopoint requires a timer for something like that.

Reply
#3

ok thanks, could you help me do that?
im a bit of a scripting virgin........
Reply
#4

Quote:
Originally Posted by cj101
There are two ways of doing it, PlayerToPoint, or Checkpoint. You should use Checkpoints because playertopoint requires a timer for something like that.

please could you help me!
im a bit of an idiot when it comes to this....
Reply
#5

Have you tried this?
http://forum.sa-mp.com/index.php?topic=96701.0
Reply
#6

Quote:
Originally Posted by Fj0rtizFredde
i have but i cant seem to get it to work,

can you post a tutorial plz?

thanks man
Reply
#7

Quote:
Originally Posted by wilcock33
Quote:
Originally Posted by Fj0rtizFredde
i have but i cant seem to get it to work,

can you post a tutorial plz?

thanks man
What is the problem with that? :P

You can also check: IsPlayerInArea if that work
Reply
#8

Quote:
Originally Posted by wilcock33
keep your health constant
jail you if you kill somebody in the safe zone
Contradict - v. To assert or express the opposite of (a statement).


Checkpoints would be an easier choice.
pawn Код:
OnPlayerEnterCheckpoint(playerid)
{
  If(PlayerInSafeZone[playerid]==0)
  {
    PlayerInSafeZone[playerid]=1;
    GetPlayerHealth(playerid,PlayerOldHealth[playerid]);
    SetPlayerHealth(playerid,10000.00);
    return SendClientMessage(playerid,0xFF0000FF,"You are in the safe zone");
  }
}
An example of how your task would be accomplished.
Reply
#9

Quote:
Originally Posted by Joe Staff
Quote:
Originally Posted by wilcock33
keep your health constant
jail you if you kill somebody in the safe zone
Contradict - v. To assert or express the opposite of (a statement).


Checkpoints would be an easier choice.
pawn Код:
OnPlayerEnterCheckpoint(playerid)
{
  If(PlayerInSafeZone[playerid]==0)
  {
    PlayerInSafeZone[playerid]=1;
    GetPlayerHealth(playerid,PlayerOldHealth[playerid]);
    SetPlayerHealth(playerid,10000.00);
    return SendClientMessage(playerid,0xFF0000FF,"You are in the safe zone");
  }
}
An example of how your task would be accomplished.
ok, thanks much, could you elaborate?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)