Making a teleport with inrange
#1

Hello, simple (or not) question.

I know how to make a teleport on cmd but how to make it so that It can only be executed at one specific place?
Reply
#2

anyone?
Reply
#3

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;
}
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)