24.05.2015, 15:56
PHP код:
// Uses ZCMD/YCMD
CMD:enter(playerid, params[])
{
if(IsPlayerInRangeOfPoint(playerid, 3.0, x, y, z)) // replace x y z with the coordinates of the entrance
{
SetPlayerInterior(playerid, 11);
SetPlayerPos(playerid, 502.2838, -70.2034, 998.7578);
SetPlayerFacingAngle(playerid, 181.8469);
SendClientMessage(playerid, -1, "You have entered the building.");
}
else
{
SendClientMessage(playerid, -1, "You cannot enter anything here.");
}
return 1;
}