02.01.2012, 15:36
Use IsPlayerInRangeOfPoint to check is player in specific place, for example:
pawn Код:
if(!IsPlayerInRangeOfPoint(playerid,5.0,x,y,z)) // add your coordinates instead of x,y,z
{ // if distance from player to x,y,z more than 5
SendClientMessage(playerid,-1,"You can't use this teleport in this location!"); // then send them a message
return 1;
}