Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /*================================================================
- _ ____ _____ __ __
- (_) _ \ ___ | _ _ | _ __ __ | \ / |
- | | | _) / __ | | | / _ \ / _ `| | \ / | |
- | | __ / \ __ \ | | __ / (_ | | | | |
- |_|_| |___/ | _ | \ ___ | \ __,_|_| | _ |
- Criado por SuYaNw Dácio
- www.ips-team.blogspot.com
- Generate Random Password
- ===============================================================*/
- <html><center><form method="POST" name='Form'>
- <textarea cols='100' rows='10' name='coords' OnClick='javascript: document.Form.coords.value=""'>Bote aqui as coordenadas do arquivo savedpositions.txt.</textarea><br>
- <input type="radio" name="Tipo" value="Varios" />Coordenada Randômica.<br />
- <input type="radio" name="Tipo" value="UmSo" />Somente uma coordenada.<br>
- <input type='submit' value='Enviar' name='envi'>
- <hr>
- </form>
- <?php
- if(isset($_POST['envi']))
- {
- $str = $_POST['coords'];
- $st = NULL;
- if(!strlen($str))
- return $s = "Insira uma coordenada válida!";
- if(!strcmp($_POST['Tipo'], "Varios"))
- {
- $sai = explode("\n", $str);
- $contar = -1;
- for($i = 0; $i != count($sai); ++$i)
- {
- if(empty($sai[$i]))
- break;
- $Out = explode(",", $sai[$i]);
- if($i != count($sai) -1)
- $st .= "{".$Out[1].", ".$Out[2].", ".$Out[3]."},\n";
- else
- $st .= "{".$Out[1].", ".$Out[2].", ".$Out[3]."}\n";
- $contar ++;
- }
- echo "<textarea cols='100' rows='10'>new MinhaArray[".$contar."][3]= {\n$st};</textarea>";
- return 1;
- }
- if(!strcmp($_POST['Tipo'], "UmSo"))
- {
- $expl = explode(",", $str);
- if(empty($expl[1]) && empty($expl[2]) && empty($expl[3])) return 0;
- $s = "<textarea cols='100' rows='10'>SetPlayerPos(playerid, ".$expl[1].",".$expl[2].",".$expl[3].");</textarea>";
- echo $s;
- return 1;
- }
- }
- ?>
- </center>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment