[HELP] A quastion...
#1

How can I make like if I go near a door and type /enter, I teleports to a interior?
I want a training room in the LSPD, and the training room is the driving school in SF.

Thanks
Reply
#2

PlayerToPoint (Search for this)
SetPlayerPos
SetPlayerInterior
That's all you really need.
Reply
#3

Under OnPlayerCommandText:
Code:
if (strcmp("/enter", cmdtext, true) == 0)
{
	if(PlayerToPoint(5.0, playerid, X, Y, Z))
	{
	SetPlayerPos(playerid, X, Y, Z);
	SetPlayerInterior(playerid, interiorid)
	}
	else
	{
	SendClientMessage(playerid, 0xFF0000AA, "You must be closer!");
	}
	return 1;
}
Replace the first X, Y and Z with the location of the door,
The second X, Y and Z with the location of the interior
And interiorid with the interiorid
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)