Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <!DOCTYPE HTML>
- <html>
- <head>
- <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
- <title>Creator Characters</title>
- </head>
- <body>
- <form method="post">
- Nazwa postaci: <input type="text" name="$nazwa" /><br>
- Opis Klasy: <input type="text" name="opis" /><br>
- Bronie postaci: <input type="text" name="bronie" /><br>
- Ilość życia: <input type="text" name="HP" /><br>
- Ilość inteligencji: <input type="text" name="INT" /><br>
- Ilość wytrzymałości: <input type="text" name="WYT" /><br>
- Ilość kondycji: <input type="text" name="KON" /><br><br>
- Klasa premium: <input type="radio" name="PRE" /><br><br>
- <button type="reset" name="reset">Zresetuj dane</button>
- <input type="submit" value="Wygeneruj" name="wyslano" />
- </form>
- <br /><br /><br /><br />
- <table width="500" hight="500" algin="left">
- <tr><td>
- <?php
- if(isset($_POST['wyslano']))
- {
- if(!empty($_POST['nazwa']) || !empty($_POST['opis']) || !empty($_POST['bronie']) || !empty($_POST['HP']) || !empty($_POST['INT']) || !empty($_POST['WYT']) || !empty($_POST['KON']))
- {
- echo '#include <amxmodx><br>
- #include <codmod><br><br>';
- echo 'new const nazwa[] = \"'.$nazwa.'\";<br>
- new const opis[] = "";<br>
- new const bronie = 1<<<br>
- new const zdrowie = ;<br>
- new const kondycja = ;<br>
- new const inteligencja = ;<br>
- new const wytrzymalosc = ;<br><br>
- public plugin_init() {<br>
- register_plugin(nazwa, "1.0", "QTM_Peyote");<br><br>
- cod_register_class(nazwa, opis, bronie, zdrowie, kondycja, inteligencja, wytrzymalosc)<br>;';
- }
- else {
- echo '<h2> WYPEŁNI WSZYSTKIE POLA</h2>';
- }
- }
- ?>
- </td></tr></table>
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement