Don't want player to go past a point?
#1

Hello,

So, i am wanting like SF And surounding area for RP Zone but i want to stop people going past in to LS / LV I am going to RP It as like govnorment have destroyed there friendship and split up in to there own county's and when you cross state line you get shot xD so does anyone know how i can do this or another way around to stop people getting in to LS / LV
Reply
#2

https://sampwiki.blast.hk/wiki/SetPlayerWorldBounds
Reply
#3

Is there a way i can make it that like Admins can exit boundray?
Reply
#4

Yes, only use SetPlayerWorldBounds for non-admins.
Reply
#5

If you use an admin variable. Do an if statement
pawn Код:
if(!IsPlayerAdmin(playerid))
That's the default.

Here's mine,

pawn Код:
if(PlayerData[playerid][Admin] == 0)
Reply
#6

A bit more logic:

When the player log in as admin you remove bounds

SetPlayerWorldBounds (playerid, 20000.0000, -20000.0000, 20000.0000, -20000.0000);

inside https://sampwiki.blast.hk/wiki/OnRconLoginAttempt

When the player connect

SetPlayerWorldBounds (playerid, your limits);

inside https://sampwiki.blast.hk/wiki/OnPlayerConnect
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)