Guest User

Premier Taxi 0.2 by Flashbrot (c) *new version*

a guest
Dec 28th, 2012
489
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Pawn 2.29 KB | None | 0 0
  1. // _____NEW VERSION_____//
  2.  
  3. /* Premier Taxi FS by Flashbrot ©
  4. **************************************
  5. Do not release this FS (without my permission)!
  6.  
  7. Version 0.2
  8. */
  9.  
  10. #include <a_samp>
  11.  
  12. #pragma tabsize 0 // <-- deletes warning "loose indentation"
  13.  
  14. new taxi;
  15. new taxi2;
  16. new taxi3;
  17.  
  18. #if defined FILTERSCRIPT
  19.  
  20. public OnFilterScriptInit()
  21. {
  22.     print("\n***************************************");
  23.     print(" Premier Taxi by Flashbrot");
  24.     print("Copyright by Flashbrot\n");
  25.     print("Do not remove Copyright \n");
  26.     print("Do not release it ! Do not release it as your own !\n");
  27.     print("****************************************\n");
  28.     return 1;
  29. }
  30.  
  31. public OnFilterScriptExit()
  32. {
  33.     return 1;
  34. }
  35.  
  36. #else
  37.  
  38. main()
  39. {
  40.     print("\n----------------------------------");
  41.     print(" Blank Gamemode by your name here");
  42.     print("----------------------------------\n");
  43. }
  44.  
  45. #endif
  46.  
  47. public OnGameModeInit()
  48. {
  49. taxi = CreateObject(19309,0,0,-1000,0,0,0,100);
  50. taxi2 = CreateObject(19309,0,0,-1000,0,0,0,100);
  51. taxi3 = CreateObject(19309,0,0,-1000,0,0,0,100);
  52.         return 1;
  53. }
  54.  
  55. public OnGameModeExit()
  56. {
  57.     return 1;
  58. }
  59.  
  60. public OnPlayerConnect(playerid)
  61. {
  62. SendClientMessage(playerid, 0xFFFFFFFF,"Premier Taxi Fs v0.2 by Flashbrot");
  63. // ^ You can remove this if you want ^
  64.     return 1;
  65. }
  66.  
  67. public OnVehicleDeath(vehicleid)
  68.     {
  69.     DestroyObject(taxi);
  70.     DestroyObject(taxi2);
  71.     DestroyObject(taxi3);
  72.     return 1;
  73.     }
  74.    
  75. public OnPlayerCommandText(playerid, cmdtext[])
  76. {
  77.     if (strcmp("/ptaxion", cmdtext, true, 10) == 0)
  78.     {
  79.         AttachObjectToVehicle(taxi, GetPlayerVehicleID(playerid), 0.000000,-0.225000,0.899999,0.000000,0.000000,-89.099983);
  80.         AttachObjectToVehicle(taxi2, GetPlayerVehicleID(playerid), 0.000000,-2.775000,-0.149999,0.000000,0.000000,-89.099983);
  81.         AttachObjectToVehicle(taxi3, GetPlayerVehicleID(playerid), 0.000000,2.400000,0.000000,0.000000,0.000000,-89.099983);
  82.         GameTextForPlayer(playerid, "~b~Taxi is now ~n~~r~ON Duty", 6000,3);
  83.         return 1;
  84.     }
  85.     if (strcmp("/ptaxioff", cmdtext, true, 10) == 0)
  86.     {
  87.         DestroyObject(taxi);
  88.         DestroyObject(taxi2);
  89.         DestroyObject(taxi3);
  90.         GameTextForPlayer(playerid, "~b~Taxi is now ~n~~r~OFF Duty", 6000,3);
  91.         return 1;
  92.     }
  93.    
  94.     return 0;
  95. }
  96. //******************************************************************
  97. //Have Fun ! --> FS by Flashbrot
Advertisement
Add Comment
Please, Sign In to add comment