Function [+REP]
#6

You can use:
https://sampwiki.blast.hk/wiki/SetPlayerWorldBounds

To limit a player to a certain area.

And you can also use:

PHP код:
IsPlayerInArea(playeridFloat:MinXFloat:MinYFloat:MaxXFloat:MaxY)
{
    new 
Float:XFloat:YFloat:Z;
    
GetPlayerPos(playeridXYZ);
    if(
>= MinX && <= MaxX && >= MinY && <= MaxY) {
        return 
1;
    }
    return 
0;

To check if the player is inside his land.
Reply


Messages In This Thread
Function [+REP] - by Alpha000 - 03.11.2015, 18:02
Re: Function [+REP] - by SecretBoss - 03.11.2015, 18:07
Re: Function [+REP] - by Alpha000 - 03.11.2015, 18:10
Re: Function [+REP] - by SecretBoss - 03.11.2015, 18:13
Re: Function [+REP] - by Alpha000 - 03.11.2015, 18:16
Re: Function [+REP] - by ThePhenix - 03.11.2015, 18:20
Re: Function [+REP] - by Alpha000 - 03.11.2015, 18:24
Re: Function [+REP] - by Crayder - 03.11.2015, 18:35

Forum Jump:


Users browsing this thread: 2 Guest(s)