Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //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;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement