02.11.2014, 20:13
How would I make these commands for multiple different locations?
pawn Код:
CMD:enter(playerid, params[])
{
if(IsPlayerInRangeOfPoint(playerid, 2.0, 627.3657, -571.5280, 17.8458))
{
SetPlayerPos(playerid, 247.0330,65.7600,1003.6406);
SetPlayerInterior(playerid, 6);
SetPlayerVirtualWorld(playerid, 5);
SetCameraBehindPlayer(playerid);
}
return 1;
}
CMD:exit(playerid, params[])
{
if(IsPlayerInRangeOfPoint(playerid, 4.0, 247.0330,65.7600,1003.6406))
{
SetPlayerPos(playerid, 627.3657, -571.5280, 17.8458);
SetPlayerInterior(playerid, 0);
SetPlayerVirtualWorld(playerid, 0);
}
return 1;
}