16.07.2009, 04:49
pawn Code:
if (strcmp("/exit", cmdtext, true) ==0)
{
if (PlayerToPoint(10.00, playerid, 362.3520, -131.6543, 1001.4922))
{
SetPlayerInterior(playerid, 0);
SetPlayerPos(playerid, Float:2104.8997, Float:-1806.4668, Float:14.1484);
SendClientMessage(playerid, 0xffffffff, "You have left the Pizza Parlor.");
SetPlayerFacingAngle(playerid, Float:90.0);
}
if (PlayerToPoint(10.00, playerid, 245.7840, 63.9002, 1003.6406))
{
SetPlayerInterior(playerid, 0);
SetPlayerPos(playerid, Float: 1554.9174, Float:-1675.5553, Float:15.5010);
SendClientMessage(playerid, 0xfffffff, "You have left the Police Department.");
SetPlayerFacingAngle(playerid, Float:90.0);
}
else return SendClientMessage(playerid, 0xff0000AA, "ERROR: You cant exit a building from your position");
return 1;
}