Making a teleport with inrange
#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


Messages In This Thread
Making a teleport with inrange - by milanosie - 02.01.2012, 14:50
Re: Making a teleport with inrange - by milanosie - 02.01.2012, 15:34
Re: Making a teleport with inrange - by Norck - 02.01.2012, 15:36

Forum Jump:


Users browsing this thread: 2 Guest(s)