SA-MP Forums Archive
Safe Zone Creation HELP - 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: Safe Zone Creation HELP (/showthread.php?tid=87899)



Safe Zone Creation HELP - wilcock33 - 22.07.2009

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!



Re: Safe Zone Creation HELP - CJ101 - 22.07.2009

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




Re: Safe Zone Creation HELP - wilcock33 - 22.07.2009

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


Re: Safe Zone Creation HELP - wilcock33 - 22.07.2009

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....


Re: Safe Zone Creation HELP - Fj0rtizFredde - 22.07.2009

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


Re: Safe Zone Creation HELP - wilcock33 - 22.07.2009

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

can you post a tutorial plz?

thanks man


Re: Safe Zone Creation HELP - Fj0rtizFredde - 22.07.2009

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


Re: Safe Zone Creation HELP - Joe Staff - 23.07.2009

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.


Re: Safe Zone Creation HELP - wilcock33 - 23.07.2009

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?