05.10.2011, 16:37
Try this :
pawn Код:
if(strcmp("/exit", cmdtext, true) == 0)
{
if(IsPlayerConnected(playerid))
{
if(IsPlayerInRangeOfPoint(playerid,3.0, 246.783996,63.900199,1003.640625)) // change X Y Z coords
{
SetPlayerPos(playerid, -217.7940,979.1616,19.5038); // change X Y Z coords
}
else SendClientMessage(playerid, 0x33CCFFAA, "You need to be near the entrance to exit!");
}
return 1;
}