Guest User

Der Post ist zu sehen im deutschen SAMP Forum ( Free-DM )

a guest
Feb 2nd, 2011
169
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Pawn 18.00 KB | None | 0 0
  1. // Ganz unten ist eine Anleitung wie man neue Rooms erstellt
  2.  
  3. #include <a_samp>
  4.  
  5. #define SERVERNAME "DEATHMATCHSERVER"
  6. #define SERVEROWNER "MAX MUSTERMANN"
  7.  
  8. #define COLOR_RED       0xFF6347AA
  9. #define COLOR_BLUE      0x33CCFFAA
  10. #define COLOR_GREEN     0x9ACD32AA
  11. #define COLOR_YELLOW    0xFFFF00AA
  12. #define COLOR_GREY      0xAFAFAFAA
  13.  
  14. new playerroom[MAX_PLAYERS];
  15. new playerkills[MAX_PLAYERS];
  16. new playerdeaths[MAX_PLAYERS];
  17. new Float:playerspawns[MAX_PLAYERS][3];
  18.  
  19. main()
  20. {
  21.     print(" ");
  22.     print(" ");
  23.     print(" ");
  24.     print("+-----------------------------------------+");
  25.     print("|          FREE DM by Tion 1.0.0          |");
  26.     print("+-----------------------------------------+");
  27.     print("|");
  28.     print("+ http://Streets-of-SA.de/");
  29.     print(" ");
  30.     print(" ");
  31.     print(" ");
  32. }
  33.  
  34. public OnGameModeInit()
  35. {
  36.     AddPlayerClass(0, 2737.7942, -1760.0331, 44.1401 ,299.8479, 0, 0, 0, 0, 0, 0);
  37.     return 1;
  38. }
  39.  
  40. public OnGameModeExit()
  41. {
  42.     SendClientMessageToAll(COLOR_GREY, "* Der Server wurde heruntergefahren, alle werden gekickt");
  43.     for(new i = 0; i < MAX_PLAYERS; i++)
  44.     {
  45.         if(IsPlayerConnected(i)) Kick(i);
  46.     }
  47.     return 1;
  48. }
  49.  
  50. public OnPlayerConnect(playerid)
  51. {
  52.     playerroom[playerid] = 0;
  53.     playerkills[playerid] = 0;
  54.     playerdeaths[playerid] = 0;
  55.     new PlayerName[MAX_PLAYER_NAME];
  56.     new string[128];
  57.     GetPlayerName(playerid, PlayerName, sizeof(PlayerName));
  58.     format(string, sizeof(string), "*%s betritt den Server", PlayerName);
  59.     SendClientMessageToAll(COLOR_GREY, string);
  60.     SendClientMessage(playerid, COLOR_GREY, " ");
  61.     SendClientMessage(playerid, COLOR_GREY, " ");
  62.     SendClientMessage(playerid, COLOR_GREY, " ");
  63.     SendClientMessage(playerid, COLOR_YELLOW, "Wilkommen auf "SERVERNAME"");
  64.     SendClientMessage(playerid, COLOR_YELLOW, "Du kannst nun spawnen und dir dann einen Room aussuchen");
  65.     SendClientMessage(playerid, COLOR_YELLOW, "Zum Spawnen klicke einfach unten auf den Balken mit den Pfeilen");
  66.     SendClientMessage(playerid, COLOR_YELLOW, "auf die Schaltfläche \"Spawn\"...");
  67.     SendClientMessage(playerid, COLOR_GREY, " ");
  68.     SendClientMessage(playerid, COLOR_GREY, " ");
  69.     // Hier nix hin wegen dem "Connected to SAMP 03c Server"
  70.     SpawnPlayer(playerid);
  71.     return 1;
  72. }
  73.  
  74. public OnPlayerDisconnect(playerid, reason)
  75. {
  76.     new PlayerName[MAX_PLAYER_NAME];
  77.     new string[128];
  78.     GetPlayerName(playerid, PlayerName, sizeof(PlayerName));
  79.     format(string, sizeof(string), "*%s verlässt den Server", PlayerName);
  80.     SendClientMessageToAll(COLOR_GREY, string);
  81.     return 1;
  82. }
  83.  
  84. public OnPlayerDeath(playerid, killerid, reason)
  85. {
  86.     new playername[256];
  87.     GetPlayerName(playerid, playername, sizeof(playername));
  88.     new killername[256];
  89.     GetPlayerName(killerid, killername, sizeof(killername));
  90.     new string[256];
  91.     if(killerid != 255 && playerroom[playerid] != 0)
  92.     {
  93.         format(string, sizeof(string), "* Du tötest %s , + 1 Kill", playername);
  94.         SendClientMessage(killerid, COLOR_GREEN, string);
  95.         format(string, sizeof(string), "* Du wurdest von %s , + 1 Death", killername);
  96.         SendClientMessage(playerid, COLOR_RED, string);
  97.         playerkills[killerid]++;
  98.         playerdeaths[playerid]++;
  99.     }
  100.     else if(playerroom[playerid] != 0)
  101.     {
  102.         SendClientMessage(playerid, COLOR_RED, "* Du bist gestorben - + 1 Death");
  103.         playerdeaths[playerid]++;
  104.     }
  105.     else
  106.     {
  107.         SendClientMessage(playerid, COLOR_YELLOW, "* Bitte wähle nun deinen neuen Raum");
  108.     }
  109.     return 1;
  110. }
  111.  
  112. public OnPlayerSpawn(playerid)
  113. {
  114.     if(playerroom[playerid] == 0)
  115.     {
  116.         SetPlayerPos(playerid, 2737.7942, -1760.0331, 44.1401);
  117.         SetPlayerWorldBounds(playerid, 2836.069, 2619.307, -1654.228, -1883.197);
  118.         /* Hier neue Rooms rein
  119.            jeden Room mit einem "\n" ( für eine neue Zeile ) trennen... */
  120.         ShowPlayerDialog(playerid, 1, DIALOG_STYLE_LIST, "Bitte wähle einen Room", "Grove Street [ ZUFUSS / UZI ]\nAirport LS [ ZUFUSS / MINIGUN ]", "Wählen", "");
  121.     }
  122.     else
  123.     {
  124.         SetPlayerPos(playerid, playerspawns[playerid][0], playerspawns[playerid][1], playerspawns[playerid][2]);
  125.     }
  126.     return 1;
  127. }
  128.  
  129. public OnPlayerText(playerid, text[])
  130. {
  131.     SendClientMessage(playerid, COLOR_YELLOW, " ");
  132.     SendClientMessage(playerid, COLOR_YELLOW, " ");
  133.     SendClientMessage(playerid, COLOR_YELLOW, " ");
  134.     SendClientMessage(playerid, COLOR_YELLOW, "Chatmöglichkeiten:");
  135.     SendClientMessage(playerid, COLOR_YELLOW, " Umgebungschat ( U ): /chat und dann \"Umgebungschat\"");
  136.     SendClientMessage(playerid, COLOR_YELLOW, " Roomchat ( R ): /chat und dann \"Roomchat\"");
  137.     SendClientMessage(playerid, COLOR_YELLOW, " Generalchat ( G ): /chat und dann \"Generalchat\"");
  138.     SendClientMessage(playerid, COLOR_YELLOW, " ");
  139.     SendClientMessage(playerid, COLOR_YELLOW, " ");
  140.     SendClientMessage(playerid, COLOR_YELLOW, " ");
  141.     return 0;
  142. }
  143.  
  144. public OnPlayerCommandText(playerid, cmdtext[])
  145. {
  146.     if(strcmp(cmdtext, "/help", true) == 0)
  147.     {
  148.         SendClientMessage(playerid, COLOR_YELLOW,   " ");
  149.         SendClientMessage(playerid, COLOR_YELLOW,   "(_.: "SERVERNAME" - Hilfe :._)");
  150.         SendClientMessage(playerid, COLOR_YELLOW,   " Roombefehle:");
  151.         SendClientMessage(playerid, COLOR_YELLOW,   " /exit | /users | /scores");
  152.         SendClientMessage(playerid, COLOR_YELLOW,   " Chatbefehle:");
  153.         SendClientMessage(playerid, COLOR_YELLOW,   " /chat");
  154.         SendClientMessage(playerid, COLOR_YELLOW,   " Sonstiges:");
  155.         SendClientMessage(playerid, COLOR_YELLOW,   " /credits");
  156.         if(IsPlayerAdmin(playerid))
  157.         {
  158.             SendClientMessage(playerid, COLOR_YELLOW,   " RCON-Adminstrationsbefehle:");
  159.             SendClientMessage(playerid, COLOR_YELLOW,   " /adminbefehle");
  160.         }
  161.         else
  162.         {
  163.             SendClientMessage(playerid, COLOR_YELLOW,   " ");
  164.             SendClientMessage(playerid, COLOR_YELLOW,   " ");
  165.         }
  166.         return 1;
  167.     }
  168.     /***** ROOMBEFEHLE *****/
  169.     else if(strcmp(cmdtext, "/exit", true) == 0)
  170.     {
  171.         if(IsPlayerConnected(playerid))
  172.         {
  173.             playerroom[playerid] = 0;
  174.             SendClientMessage(playerid, COLOR_YELLOW, " Bitte warte kurz...");
  175.             SendClientMessage(playerid, COLOR_YELLOW, " Du wirst nun getötet, dir wird jedoch kein Death zugerechnet");
  176.             SetPlayerHealth(playerid, 0);
  177.             return 1;
  178.         }
  179.         return 1;
  180.     }
  181.     else if(strcmp(cmdtext, "/users", true) == 0)
  182.     {
  183.         if(IsPlayerConnected(playerid))
  184.         {
  185.             new giveplayername[MAX_PLAYERS];
  186.             new count;
  187.             SendClientMessage(playerid, COLOR_YELLOW, "Spieler in deinem Room:");
  188.             for(new i = 0; i < MAX_PLAYERS; i++)
  189.             {
  190.                 if(IsPlayerConnected(i))
  191.                 {
  192.                     if(playerroom[i] == playerroom[playerid])
  193.                     {
  194.                         GetPlayerName(i, giveplayername, sizeof(giveplayername));
  195.                         SendClientMessage(playerid, COLOR_GREEN, giveplayername);
  196.                         count++;
  197.                     }
  198.                 }
  199.             }
  200.             if(count == 0) { SendClientMessage(playerid, COLOR_RED, "* Du bist der einzige in diesem Room"); }
  201.             if(count >= 10) { SendClientMessage(playerid, COLOR_RED, "* Benutze die \"Bild up\" bzw. \"Bild down\" Tasten um zu blättern"); }
  202.             return 1;
  203.         }
  204.         return 1;
  205.     }
  206.     else if(strcmp(cmdtext, "/scores", true) == 0)
  207.     {
  208.         if(IsPlayerConnected(playerid))
  209.         {
  210.             new giveplayername[MAX_PLAYERS];
  211.             new count;
  212.             new besterid;       new besterscore;
  213.             new schlechterid;   new schlechterscore;
  214.             for(new i = 0; i < MAX_PLAYERS; i++)
  215.             {
  216.                 if(IsPlayerConnected(i))
  217.                 {
  218.                     if(playerroom[i] == playerroom[playerid])
  219.                     {
  220.                         if(playerkills[i] > besterscore) { besterid = i;            besterscore = playerkills[i]; }
  221.                         if(playerdeaths[i] > schlechterscore) { schlechterid = i;   schlechterscore = playerdeaths[i]; }
  222.                         count++;
  223.                     }
  224.                 }
  225.             }
  226.             if(count == 0)
  227.             {
  228.                 SendClientMessage(playerid, COLOR_RED, "* Du bist der einzige in diesem Room !");
  229.             }
  230.             else
  231.             {
  232.                 SendClientMessage(playerid, COLOR_YELLOW, " Am meisten getötet hat:");
  233.                 GetPlayerName(besterid, giveplayername, sizeof(giveplayername));
  234.                 format(giveplayername, sizeof(giveplayername), "%s ( %d Kills )", giveplayername, besterscore);
  235.                 SendClientMessage(playerid, COLOR_YELLOW, giveplayername);
  236.                 SendClientMessage(playerid, COLOR_YELLOW, " Am meisten gestorben ist:");
  237.                 GetPlayerName(schlechterid, giveplayername, sizeof(giveplayername));
  238.                 format(giveplayername, sizeof(giveplayername), "%s ( %d Deaths )", giveplayername, schlechterscore);
  239.                 SendClientMessage(playerid, COLOR_YELLOW, giveplayername);
  240.             }
  241.             return 1;
  242.         }
  243.         return 1;
  244.     }
  245.     /***** CHATBEFEHLE *****/
  246.     else if(strcmp(cmdtext, "/chat", true) == 0)
  247.     {
  248.         if(IsPlayerConnected(playerid))
  249.         {
  250.             ShowPlayerDialog(playerid, 2, DIALOG_STYLE_LIST, "Bitte wähle die Chatlocation", "In meinem Umkreis sichtbar\nIn meinem Room sichtbar\nFür alle sichtbar", "OK", "Abbrechen");
  251.         }
  252.         return 1;
  253.     }
  254.     /***** SONSTIGES *****/
  255.     else if(strcmp(cmdtext, "/credits", true) == 0)
  256.     {
  257.         if(IsPlayerConnected(playerid))
  258.         {
  259.             SendClientMessage(playerid, COLOR_YELLOW,   " ");
  260.             SendClientMessage(playerid, COLOR_YELLOW,   "(_.: Credits :._)");
  261.             SendClientMessage(playerid, COLOR_YELLOW,   " Grundscript:");
  262.             SendClientMessage(playerid, COLOR_GREEN,    " free-dm by Tion");
  263.             SendClientMessage(playerid, COLOR_YELLOW,   " erweitert von:");
  264.             SendClientMessage(playerid, COLOR_GREEN,    " "SERVEROWNER" ");
  265.             SendClientMessage(playerid, COLOR_YELLOW,   " Für den Server:");
  266.             SendClientMessage(playerid, COLOR_GREEN,    " "SERVERNAME" ");
  267.             SendClientMessage(playerid, COLOR_YELLOW,   " ");
  268.             SendClientMessage(playerid, COLOR_YELLOW,   " ");
  269.         }
  270.         return 1;
  271.     }
  272.     /***** ADMINSTRATIONSBEFEHLE *****/
  273.     else if(strcmp(cmdtext, "/adminbefehle", true) == 0)
  274.     {
  275.         if(IsPlayerConnected(playerid))
  276.         {
  277.             if(IsPlayerAdmin(playerid))
  278.             {
  279.                 SendClientMessage(playerid, COLOR_YELLOW,   " ");
  280.                 SendClientMessage(playerid, COLOR_YELLOW,   " ");
  281.                 SendClientMessage(playerid, COLOR_GREEN,    "(_.: Adminstrationsbefehle "SERVERNAME" :._)");
  282.                 SendClientMessage(playerid, COLOR_YELLOW,   " /rcon login [ PASSWORT ]");
  283.                 SendClientMessage(playerid, COLOR_YELLOW,   " /rcon kick [ NAME ]");
  284.                 SendClientMessage(playerid, COLOR_YELLOW,   " /rcon ban [ NAME ]");
  285.                 SendClientMessage(playerid, COLOR_YELLOW,   " /rcon gravity [ NEUE SCHWERKRAFT ]");
  286.                 SendClientMessage(playerid, COLOR_YELLOW,   " /rcon kick [ NAME ]");
  287.                 SendClientMessage(playerid, COLOR_YELLOW,   " ");
  288.                 SendClientMessage(playerid, COLOR_YELLOW,   " ");
  289.             }
  290.             else
  291.             {
  292.                 SendClientMessage(playerid, COLOR_YELLOW, "* Für diesen Befehl musst du ein RCON-Adminstrator sein");
  293.             }
  294.         }
  295.         return 1;
  296.     }
  297.     else
  298.     {
  299.         SendClientMessage(playerid, COLOR_YELLOW, "* Unbekannter Befehl");
  300.         SendClientMessage(playerid, COLOR_YELLOW, " Benutze /help für eine Liste aller Befehle");
  301.     }
  302.     return 1;
  303. }
  304.  
  305. public OnPlayerRequestSpawn(playerid)
  306. {
  307.     return 1;
  308. }
  309.  
  310. public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
  311. {
  312.     if(dialogid == 1) // Roomwahl
  313.     {
  314.         if(!response)
  315.         {
  316.             SendClientMessage(playerid, COLOR_RED, "* Bei uns musst du einen Room wählen");
  317.             return 1;
  318.         }
  319.         SendClientMessage(playerid, COLOR_RED, "Benutze \"/exit\" um diesen Room zu verlassen");
  320.         SetPlayerVirtualWorld(playerid, listitem); // Um die Locations mehrere male benutzen zu können
  321.         playerroom[playerid] = listitem + 1;
  322.         switch(listitem)
  323.         {
  324.             case 0: // Grove Street
  325.             {
  326.                 GivePlayerWeapon(playerid, 28, 500);
  327.                 switch(random(10))
  328.                 {
  329.                     case 0: { playerspawns[playerid][0] = 2504.9829; playerspawns[playerid][1] = -1694.7018; playerspawns[playerid][2] = 17.9575; }
  330.                     case 1: { playerspawns[playerid][0] = 2490.7476; playerspawns[playerid][1] = -1695.7056; playerspawns[playerid][2] = 22.2326; }
  331.                     case 2: { playerspawns[playerid][0] = 2471.8508; playerspawns[playerid][1] = -1695.3878; playerspawns[playerid][2] = 13.5153; }
  332.                     case 3: { playerspawns[playerid][0] = 2452.4304; playerspawns[playerid][1] = -1682.1855; playerspawns[playerid][2] = 13.5066; }
  333.                     case 4: { playerspawns[playerid][0] = 2454.1157; playerspawns[playerid][1] = -1647.4116; playerspawns[playerid][2] = 13.4718; }
  334.                     case 5: { playerspawns[playerid][0] = 2463.1699; playerspawns[playerid][1] = -1647.2560; playerspawns[playerid][2] = 13.4668; }
  335.                     case 6: { playerspawns[playerid][0] = 2480.6689; playerspawns[playerid][1] = -1649.2880; playerspawns[playerid][2] = 13.4688; }
  336.                     case 7: { playerspawns[playerid][0] = 2498.8149; playerspawns[playerid][1] = -1642.4669; playerspawns[playerid][2] = 13.7826; }
  337.                     case 8: { playerspawns[playerid][0] = 2514.8372; playerspawns[playerid][1] = -1651.4110; playerspawns[playerid][2] = 14.3557; }
  338.                     case 9: { playerspawns[playerid][0] = 2524.1545; playerspawns[playerid][1] = -1664.0876; playerspawns[playerid][2] = 15.1382; }
  339.                 }
  340.                 SetPlayerWorldBounds(playerid, 2543.251, 2387.334, -1598.959, -1748.974);
  341.             }
  342.             case 1: // Airport  LS
  343.             {
  344.                 GivePlayerWeapon(playerid, 38, 999);
  345.                 switch(random(5))
  346.                 {
  347.                     case 0: { playerspawns[playerid][0] = 1959.9795; playerspawns[playerid][1] = -2350.6179; playerspawns[playerid][2] = 13.5469; }
  348.                     case 1: { playerspawns[playerid][0] = 1650.8014; playerspawns[playerid][1] = -2545.6108; playerspawns[playerid][2] = 13.5469; }
  349.                     case 2: { playerspawns[playerid][0] = 1524.6760; playerspawns[playerid][1] = -2394.8601; playerspawns[playerid][2] = 13.5547; }
  350.                     case 3: { playerspawns[playerid][0] = 1380.6987; playerspawns[playerid][1] = -2533.2346; playerspawns[playerid][2] = 17.2344; }
  351.                     case 4: { playerspawns[playerid][0] = 1380.1570; playerspawns[playerid][1] = -2538.1484; playerspawns[playerid][2] = 13.5469; }
  352.                 }
  353.                 SetPlayerWorldBounds(playerid, 2318.883, 1261.695, -2183.225, -2767.491);
  354.             }
  355.             /*
  356.             case x: // Vorlage für neuen Room
  357.             {
  358.                 GivePlayerWeapon(playerid, 38, 999); // In diesem Fall eine Minigun ( Waffenid 39 ) mit 999 Schuss
  359.                 switch(random(ZUFALLZAHL)) // Zufallszahl durch die spawnpunkte ersetzen
  360.                 {
  361.                     case 0: { playerspawns[playerid][0] = 0.0; playerspawns[playerid][1] = 0.0; playerspawns[playerid][2] = 0.0; }
  362.                 //  case x: { playerspawns[playerid][0] = X-Pos; playerspawns[playerid][1] = Y-Pos; playerspawns[playerid][2] = Z-Pos; } // wiederholen bis b in der case anweisung ZUFALLSZAHL - 1 ist
  363.                 }
  364.                 SetPlayerWorldBounds(playerid, X1, Y1, X2, Y2);
  365.             }
  366.             */
  367.         }
  368.         SetPlayerPos(playerid, playerspawns[playerid][0], playerspawns[playerid][1], playerspawns[playerid][2]);
  369.     }
  370.     else if(dialogid == 2) // Chat
  371.     {
  372.         if(!response) { return 1; }
  373.         switch(listitem)
  374.         {
  375.             case 0: // Umgebung
  376.             {
  377.                 ShowPlayerDialog(playerid, 3, DIALOG_STYLE_INPUT, "In meiner Umgebung etwas sagen", "Bitte gebe hier den Text ein, den du in der Umgebung anzeigen möchtest", "Sagen", "Doch nicht");
  378.             }
  379.             case 1: // Room
  380.             {
  381.                 ShowPlayerDialog(playerid, 4, DIALOG_STYLE_INPUT, "In meinem Room etwas sagen", "Bitte gebe hier den Text ein, den du in deinem Room anzeigen möchtest", "Sagen", "Doch nicht");
  382.             }
  383.             case 2: // General
  384.             {
  385.                 ShowPlayerDialog(playerid, 5, DIALOG_STYLE_INPUT, "In dem Generalchat etwas sagen", "Bitte gebe hier den Text ein, den du in dem Generalchat anzeigen möchtest", "Sagen", "Doch nicht");
  386.             }
  387.         }
  388.     }
  389.     else if(dialogid == 3) // Umgebungschat
  390.     {
  391.         if(!response) { return 1; }
  392.         new string[256];
  393.         new playername[MAX_PLAYER_NAME];
  394.         GetPlayerName(playerid, playername, sizeof(playername));
  395.         new Float:x, Float:y, Float:z;
  396.         GetPlayerPos(playerid, x, y, z);
  397.         format(string, sizeof(string), "U: %s sagt: %s", playername, inputtext);
  398.         for(new i = 0; i < MAX_PLAYERS; i++)
  399.         {
  400.             if(IsPlayerConnected(i))
  401.             {
  402.                 if(PlayerToPoint(15, i, x, y, z))
  403.                 {
  404.                     SendClientMessage(i, COLOR_GREY, string);
  405.                 }
  406.             }
  407.         }
  408.     }
  409.     else if(dialogid == 4) // Roomchat
  410.     {
  411.         if(!response) { return 1; }
  412.         new string[256];
  413.         new playername[MAX_PLAYER_NAME];
  414.         GetPlayerName(playerid, playername, sizeof(playername));
  415.         format(string, sizeof(string), "R: %s sagt: %s", playername, inputtext);
  416.         for(new i = 0; i < MAX_PLAYERS; i++)
  417.         {
  418.             if(IsPlayerConnected(i))
  419.             {
  420.                 if(playerroom[i] == playerroom[playerid])
  421.                 {
  422.                     SendClientMessage(i, COLOR_GREY, string);
  423.                 }
  424.             }
  425.         }
  426.     }
  427.     else if(dialogid == 5) // Generalchat
  428.     {
  429.         if(!response) { return 1; }
  430.         new string[256];
  431.         new playername[MAX_PLAYER_NAME];
  432.         GetPlayerName(playerid, playername, sizeof(playername));
  433.         format(string, sizeof(string), "G: %s sagt: %s", playername, inputtext);
  434.         SendClientMessageToAll(COLOR_GREY, string);
  435.     }
  436.     return 1;
  437. }
  438.  
  439. /***** PlayerToPoint by Unbekannt *****/
  440.  
  441. forward PlayerToPoint(Float:radi, playerid, Float:x, Float:y, Float:z);
  442.  
  443. public PlayerToPoint(Float:radi, playerid, Float:x, Float:y, Float:z)
  444. {
  445.     if(IsPlayerConnected(playerid))
  446.     {
  447.         new Float:oldposx, Float:oldposy, Float:oldposz;
  448.         new Float:tempposx, Float:tempposy, Float:tempposz;
  449.         GetPlayerPos(playerid, oldposx, oldposy, oldposz);
  450.         tempposx = (oldposx -x);
  451.         tempposy = (oldposy -y);
  452.         tempposz = (oldposz -z);
  453.         if (((tempposx < radi) && (tempposx > -radi)) && ((tempposy < radi) && (tempposy > -radi)) && ((tempposz < radi) && (tempposz > -radi)))
  454.         {
  455.             return 1;
  456.         }
  457.     }
  458.     return 0;
  459. }
  460.  
  461. /*
  462. ##########################################################################
  463. ##################### ANLEITUNG NEUE ROOMS ERSTELLEN #####################
  464. ##########################################################################
  465.  
  466. 1. Roomname ausdenken und ihn in den Dialog in Zeile 120 eintragen.
  467.  
  468.    Hinweis:
  469.    
  470.    Die Rooms müssen immer mit einem "\n" getrennt werden !
  471.    
  472. 2. Den Raum unter "OnPlayerDialogResponse" eintragen
  473.  
  474.    Eine Schablone dafür sind in den Zeilen 356 bis 366
  475.  
  476. */
Add Comment
Please, Sign In to add comment