06.11.2012, 04:52
Thank you sooo much! But now I have another problem I hope you'll know how to fix.
Everything is compiling perfectly and I'm able to use the command in game. But the problem is, I can use the command anywhere in game and it will teleport me to my location. Even if I'm on the other side of the game in another city, it still will teleport me to my coordinate. I don't understand why it's doing this since my player range is 3.0
Everything is compiling perfectly and I'm able to use the command in game. But the problem is, I can use the command anywhere in game and it will teleport me to my location. Even if I'm on the other side of the game in another city, it still will teleport me to my coordinate. I don't understand why it's doing this since my player range is 3.0
PHP код:
CMD:enter(playerid, params[])
{
IsPlayerInRangeOfPoint(playerid, 3.0, 1481.0547,-1772.0500,18.7958); //CityHallEntrance
SetPlayerPos(playerid, 384.808624,173.804992,1008.382812);
SetPlayerInterior(playerid, 3);
return 1;
}
CMD:exit(playerid, params[])
{
IsPlayerInRangeOfPoint(playerid, 3.0, 384.808624,173.804992,1008.382812);
SetPlayerPos(playerid, 1481.0547,-1772.0500,18.7958);
SetPlayerInterior(playerid, 0);
return 1;
}