SA-MP Forums Archive
Help with a code - 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)
+--- Thread: Help with a code (/showthread.php?tid=575284)



Help with a code - Tess - 25.05.2015

Hi well i don't know how I can do a code that for example in a mini game you cannot go away of the area of the mini game and if you try you will be teleported back to the mini game anyone knows how? Thank you


Re: Help with a code - Ghazal - 25.05.2015

Use IsPlayerInRangeOfPoint


Re: Help with a code - Tess - 25.05.2015

Could you give an example?


Re: Help with a code - MikE1990 - 25.05.2015

Код:
If(IsPlayerInRangeOfPoint(playerid,RANGE,Your cordinates))
{
    //code...
}



Re: Help with a code - Tess - 25.05.2015

Thank you Mike