13.10.2011, 13:00
Well i created a Teleport system, with pickup's. I also picked the same pickup as in the video.
What you need to do is get the cords for the enter and exit, You can do this by doing /save (call it anything aslong as you know it enterance from exit)
Then goto C:\Users\(your pc name)\Documents\GTA San Andreas User Files\SAMP
place the cords in the right places.
I have also made it simple to use with the #defines that are at the top.
If you want I will create more, or if you get the cords i will add them for you.
Copy of the script in pastebin click here
What you need to do is get the cords for the enter and exit, You can do this by doing /save (call it anything aslong as you know it enterance from exit)
Then goto C:\Users\(your pc name)\Documents\GTA San Andreas User Files\SAMP
place the cords in the right places.
I have also made it simple to use with the #defines that are at the top.
If you want I will create more, or if you get the cords i will add them for you.
Copy of the script in pastebin click here
pawn Код:
//Entrance System Made by tom.1412
//If you want more made or need help message me
#include <a_samp>
#define FILTERSCRIPT
#define Timer 2000 //The amount of time the text stays on screen 1000 = 1 secpmd
#define Text 0xFFFFFFAA //The color of the Text, You can find these colors on samp.
#define EntranceMessage " PLACE "//change the text between the " " to what you want it to say when you enter
#define ExitMessage " Los Santos "//change the text between the " " to what you want it to say when you enter
#if defined FILTERSCRIPT
#endif
new Entrance;
new Exit;
public OnFilterScriptInit()
{
Entrance = CreatePickup(1318, 23, 1750.2863,518.2169,27.9678, 0);//set the cords to where you want the entrance
Exit = CreatePickup(1318, 23, 1744.1271,521.0207,27.9283, 0);//set the cords to where you want the exit
return 1;
}
public OnPlayerPickUpPickup(playerid, pickupid)
{
if(pickupid == Entrance) SetTimer("Entrance1", 10, false);
if(pickupid == Exit) SetTimer("Exit1", 10, false);
return 1;
}
forward Entrance1(playerid);
public Entrance1(playerid)
{
GameTextForPlayer(playerid, EntranceMessage, Timer, 1);
SetPlayerPos(playerid,0.0,0.0,3.0);// when you enter the entrance pickup this will place you at this location, Not the same as the exit pickup
return 1;
}
forward Exit1(playerid);
public Exit1(playerid)
{
GameTextForPlayer(playerid, ExitMessage, Timer, 1);
SetPlayerPos(playerid,0.0,0.0,3.0);// when you enter the exit pickup this will place you at this location, Not the same as the enterance pickup
return 1;
}