radius
#1

hi all,

if im making a system that an admin can give a player a land within a radius, how do i set that radius and how do i save and load it? i mean like admin does /giveland [playerid] [size] and then it would get admin's position and from that position the radius of 100 would be set but how do i get it, set it and so on?

if someone gets me please help.
Reply
#2

can you explain more?
get a player's position, and use IsPlayerInRangeOfPoint function to detect the player near a position with-in a specific radius.
Reply
#3

Use streamer areas, create an area when you give it to a player, save the radius in database and recreate the area when loading the server.

Then you can use functions like IsPointInArea and stuff like that.
Reply
#4

Alright, i've never done these areas before. Can you explain?
Reply
#5

Quote:
Originally Posted by KevinExec
Посмотреть сообщение
Alright, i've never done these areas before. Can you explain?
https://sampforum.blast.hk/showthread.php?tid=102865
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)