SHARE
TWEET

Untitled

a guest Jun 30th, 2017 135 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. /*
  2. ****======================================****
  3. ****|    Dynamic by: RFT & Mesut         |****
  4. ****|        version; v0.0.1             |****
  5. ****|      Mafia II Multiplayer          |****
  6. ****|      ICQ; XXXXX                    |****
  7. ****======================================****
  8. */
  9. //||||||||||||||||||||||||||||||||||||||||||||
  10. const PIZZA = 0xFFFF00AA;
  11. const POMMES = 0xFFFFFFFF;
  12. const COLA = 0xFF1E00FF;
  13. const APFEL = 0xfb9a00AA;
  14. const LILA = 0xb601f9FF;
  15. //||||||||||||||||||||||||||||||||||||||||||||
  16. local opfer = {};
  17. //||||||||||||||||||||||||||||||||||||||||||||
  18.  
  19. function onScriptInit( )
  20. {
  21.      print("Dynamic wurde geladen");
  22.      print("Erfolgreich gestartet: 100%");
  23.    return 1;
  24. }
  25. function onGameModeExit( )
  26. {
  27.     print("Dynamic könnte nicht geladen werden");
  28.     for(local i = 0 ; i < getMaxPlayers() ; i++ )
  29.     {    
  30.         if(playerFileExists("playerfiles/"+getPlayerName(i)+".ini"))
  31.         {
  32.             if(Logged[i])
  33.             {
  34.                 ini.setKey("PlayerInfo", "password", cmd[1].tostring());
  35.                 ini.setKey("PlayerStatus", "Score", PScore[i].tostring());
  36.                 ini.setKey("PlayerStatus", "AdminLevel", PAdminLevel[i].tostring());
  37.                 ini.setKey("PlayerStatus", "Mute", PMute[playerid].tostring());
  38.                 ini.saveData();
  39.             }
  40.         }
  41.     }
  42.    return 1;
  43. }
  44.  function OnPlayerConnect(playerid)
  45. {
  46.   sendMessageToAll(PIZZA, getPlayerName(playerid)+" betritt den Server.");
  47.   sendPlayerMessage(playerid, PIZZA, "Willkommen auf unserem Server. Schreib /help, um Hilfe zu erhalten");
  48.   return 1;
  49. }
  50.   function onPlayerDisconnect(playerid, reason)
  51. {
  52.    switch (reason)
  53.    {
  54.        case 0: sendMessageToAll(POMMES, getPlayerName(playerid)+" hat den Server verlassen. (Verlassen)");
  55.        case 1: sendMessageToAll(POMMES, getPlayerName(playerid)+" hat den Server verlassen. (Timeout/Crash)");
  56.        case 2: sendMessageToAll(POMMES, getPlayerName(playerid)+" hat den Server verlassen. (Kick)");
  57.    }
  58.    return 1;
  59. }
  60. function onPlayerPause(playerid)
  61. {
  62.    sendClientMessage(COLA, "Du hast das Spiel pausiert.");
  63.    return 1;
  64. }
  65. function onPlayerSpawn(playerid)
  66. {
  67.  
  68.    if(!opfer[playerid].loged) return sendPlayerMessage(playerid,LILA,"Du musst dich zuerst Einloggen vor dem Spawnen!");
  69.    sendClientMessage(POMMES, "Möchtest du deinen Spawn platzt ändern? Wenn ja, tippe /spawn");
  70.    return 1;
  71. }
  72. function onPlayerCommand(playerid, command)
  73. {
  74.         local cmd = split(command, " ");
  75.  
  76. if(cmd[0] == "/help")
  77. {
  78.         sendPlayerMessage(playerid, PIZZA, "Dynamic: by RFT & Mesut || Version v0.0.1");
  79.         sendPlayerMessage(playerid, POMMES, "Befehle: /spawn für das ändern von Spawnen");
  80.         sendPlayerMessage(playerid, APFEL, "/help - falls du Hilfe brauchst!");
  81.         }
  82. if(cmd[0] == "/spawn")
  83. {
  84.         SetSpawnPos(playerid, 349.663849, -512.678284, 4.697800);
  85.         sendPlayerMessage(playerid, APFEL, "Dein Spawn wurde Erfolgreich geändert.");
  86.         }
  87.         }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Top