Advertisement
Guest User

Untitled

a guest
Jul 1st, 2017
196
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. /*
  2. ****======================================****
  3. ****|    Start/Stop Engine by Mesut      |****
  4. ****|       Version:0.1                  |****
  5. ****|      Mafia II Multiplayer          |****
  6. ****|      ICQ; XXXXX                    |****
  7. ****======================================****
  8. */
  9. /*~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~*/
  10. const Oran = 0xfb9a00AA;
  11. const Rot = 0xAA3333AA;
  12. /*~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~*/
  13. local auto;
  14. local start = 0;
  15. /*~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~*/
  16. function onScriptInit()
  17. {
  18.     print("*========================================*");
  19.     print("*Start/Stopp Engine((Mesut for Mafia II))*");
  20.     print("*========================================*");
  21.     return 1;
  22. }
  23. /*~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~*/
  24. function onScriptExit()
  25. {
  26.     print("*=============================*");
  27.     print("* EngineUNLOAD((Mesut))       *");
  28.     print("*=============================*");
  29.     return 1;
  30. }
  31. /*~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~*/
  32. function onPlayerEnterVehicle( playerid, vehicleid, passenger, seatid )
  33. {
  34.     sendPlayerMessage(playerid, Rot, "Du hast noch nicht das Auto gestartet. Tippe /start ein um das Auto zu starten");
  35.     togglePlayerControls(playerid, false)
  36.     return 1;
  37. }
  38. /*~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~*/
  39. function onPlayerCommand(playerid, command)
  40. {
  41.     local cmd = split(command, " ");
  42.    
  43.     if(cmd[0] == "/start")
  44.     {
  45.         start = 1
  46.         sendMessageToAll(playerid, Rot, format("%s versucht das Auto zu starten.", NAME));
  47.         setTimer("auto", 1000, -1);
  48.         sendPlayerMessage(playerid, Oran, "Dein Auto hat hat sich gesartet! Du kannst losfahren!");
  49.         togglePlayerControls(playerid, true)
  50.         if(start[playerid] == 1)
  51.         {
  52.             sendPlayerMessage(playerid, Rot, "Das Auto ist schon gestartet!");
  53.     }
  54.     }
  55. /*~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~*/
  56.     if(cmd[0] == "/stop")
  57.     {
  58.         sendPlayerMessage(playerid, Rot, "Du hast deinen Auto gestoppt.");
  59.         sendPlayerMessage(playerid, Rot, "Wenn du dein Auto starten willst, tippe /start ein.");
  60.         togglePlayerControls(playerid, false)
  61.         if(start[playerid] == 0)
  62.         {
  63.             sendPlayerMessage(playerid, Rot, "Das Auto ist schon im Ruhestand.");
  64.     }
  65.     }
  66.     return 0;
  67. }
  68. /*~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement