Advertisement
tom1412

Teleport FS

Oct 13th, 2011
89
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.55 KB | None | 0 0
  1. //Entrance System Made by tom.1412
  2. //If you want more made or need help message me
  3. #include <a_samp>
  4. #define FILTERSCRIPT
  5. #define Timer 2000 //The amount of time the text stays on screen 1000 = 1 secpmd
  6. #define Text 0xFFFFFFAA //The color of the Text, You can find these colors on samp.
  7. #define EntranceMessage " PLACE "//change the text between the " " to what you want it to say when you enter
  8. #define ExitMessage " Los Santos "//change the text between the " " to what you want it to say when you enter
  9. #if defined FILTERSCRIPT
  10. #endif
  11. new Entrance;
  12. new Exit;
  13. public OnFilterScriptInit()
  14. {
  15. Entrance = CreatePickup(1318, 23, 1750.2863,518.2169,27.9678, 0);//set the cords to where you want the entrance
  16. Exit = CreatePickup(1318, 23, 1744.1271,521.0207,27.9283, 0);//set the cords to where you want the exit
  17. return 1;
  18. }
  19.  
  20. public OnPlayerPickUpPickup(playerid, pickupid)
  21. {
  22. if(pickupid == Entrance) SetTimer("Entrance1", 10, false);
  23. if(pickupid == Exit) SetTimer("Exit1", 10, false);
  24. return 1;
  25. }
  26.  
  27. forward Entrance1(playerid);
  28. public Entrance1(playerid)
  29. {
  30. GameTextForPlayer(playerid, EntranceMessage, Timer, 1);
  31. 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
  32. return 1;
  33. }
  34.  
  35. forward Exit1(playerid);
  36. public Exit1(playerid)
  37. {
  38. GameTextForPlayer(playerid, ExitMessage, Timer, 1);
  39. 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
  40. return 1;
  41. }
  42.  
  43.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement