26.06.2014, 12:57
I want to make a command just effect in an area (not specific location). When I go out this area, the command is no effect. How can I do? Please help me!
if(!IsPlayerInRangeOfPoint(playerid, range, x, y, z)) return SendClientMessage(playerid, -1, "Not in range!");
IsPlayerInRangeOfPoint(playerid, Float:range, Float:x, Float:y, Float:z); // you can set your own range/radius by editing "range"
if(!IsPlayerInRangeOfPoint(playerid, 30, x, y, z)) return SendClientMessage(playerid, -1, "Not in range!");