29.07.2010, 09:33
Currently like this...
pawn Код:
if(strcmp("/enter_shop", cmdtext, true, 10) == 0)
{
if(IsPlayerInRangeOfPoint(playerid, 5, 1315.4927, -900.8430, 39.5781)) //Shop 1
{
SetPlayerVirtualWorld(playerid, 1);
SetPlayerInterior(playerid, 18);
SetPlayerPos(playerid, -30.9467,-89.6096,1003.5469);
}
else if(IsPlayerInRangeOfPoint(playerid, 5, 1831.5411,-1843.3800,13.5781))
{
SetPlayerVirtualWorld(playerid, 2);
SetPlayerInterior(playerid, 18);
SetPlayerPos(playerid, -30.9467,-89.6096,1003.5469);
}
else
{
SendClientMessage(playerid, 0xFF0000FF, "You're not near 24/7 Shop door!");
}
return 1;
}