Posts: 106
Threads: 30
Joined: Jun 2013
Quote:
Originally Posted by Sellize
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;
}
|
+1 rep
Thanks, should I put this on OnPlayercommandtext?
And how to make an exit command?