SA-MP Forums

Go Back   SA-MP Forums > SA-MP Scripting and Plugins > Scripting Help > Help Archive

Thread Tools Display Modes
Old 26/05/2009, 02:25 PM   #1
Huge Clucker
Join Date: May 2009
Posts: 370
Reputation: 0
Default [HELP] A quastion...

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.

FreddeN is offline  
Old 26/05/2009, 02:39 PM   #2
miokie's Avatar
Join Date: Jan 2007
Location: Bedfordshire, England
Posts: 1,148
Reputation: 13
Default Re: [HELP] A quastion...

PlayerToPoint (Search for this)
That's all you really need.
miokie is offline  
Old 26/05/2009, 02:50 PM   #3
Little Clucker
Join Date: Jul 2008
Posts: 33
Reputation: 0
Default Re: [HELP] A quastion...

Under OnPlayerCommandText:
if (strcmp("/enter", cmdtext, true) == 0)
	if(PlayerToPoint(5.0, playerid, X, Y, Z))
	SetPlayerPos(playerid, X, Y, Z);
	SetPlayerInterior(playerid, interiorid)
	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
Gozerr is offline  

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Mysql Quastion MafiaGuy™ Help Archive 1 01/04/2010 03:53 PM
[HELP] Quastion about OnPlayerSpawn FreddeN Help Archive 2 07/09/2009 01:10 PM
[HELP] AddStaticVehicle Quastion... FreddeN Help Archive 13 18/06/2009 02:14 AM
[HELP] Removing map Icons... and another quastion... FreddeN Help Archive 11 12/06/2009 10:34 PM
An simple quastion Littleman774 Help Archive 7 21/05/2009 02:01 PM

All times are GMT. The time now is 09:11 AM.

Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.