Advertisement
DanGT

Hook Tool Online!

Oct 6th, 2013
504
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
HTML 2.15 KB | None | 0 0
  1. <center><font face=Arial>
  2. <p><font size=6 color=green>Gerador de hook</font></br></br>
  3. </p>
  4. Callback: <input id="ncb" size=36></input> (example = OnPlayerConnect)<br/>
  5. Params: <input id="pcb" size=36></input> (example = playerid)<br/>
  6. <button onClick="ic(0, 1)">Hook Callback</button>
  7.  
  8. <br/><br/>
  9.  
  10. Fuction: <input id="nf" size=36></input> (example = GivePlayerMoney)<br/>
  11. Params: <input id="pf" size=36></input> (example = playerid, value) <br/>
  12. <button onClick="ic(0, 2)">Hook Fuction</button>
  13.  
  14. <progress max="100" id="progress" style="display:none;"></progress>
  15.  
  16. <script>
  17. var count = 0;
  18.  
  19. function ic(count, id)
  20. {
  21.     if(count == 100)
  22.     {
  23.         return cc(id);
  24.     }
  25.     else if(count == 0)
  26.     {
  27.         document.getElementById("progress").style.display= "block";
  28.         setTimeout(function(){ic(count + 1, id);}, 7 );
  29.     }
  30.     else
  31.     {
  32.         setTimeout(function(){ic(count + 1, id);}, 7 );
  33.         document.getElementById("progress").value = count + 1;
  34.     }
  35.     return true;
  36. }
  37.  
  38. function cc(id)
  39. {
  40.     if(id == 1)
  41.     {
  42.         var c = document.getElementById("ncb").value;
  43.         var p = document.getElementById("pcb").value;
  44.         if(c == "" || p == "")
  45.         {
  46.             alert("Voce esqueceu de algo...");
  47.         }
  48.         else
  49.         {
  50.             var code =
  51.             "\public "+c+"("+p+") \n{ \n    // your code here...\n\n    #if defined "+"Ips_"+c+"\n        return "+"Ips_"+c+"("+p+");\n    #else\n        return true;\n    #endif\n}\n\n#define "+c+" Ips_"+c+"\n\n#if defined "+"Ips_"+c+"\n    forward "+c+"("+p+");\n#endif";
  52.  
  53.             document.write("<textarea rows='20' cols='50'>"+code+"</textarea>");
  54.         }
  55.     }
  56.     else
  57.     {
  58.         var f = document.getElementById("nf").value;
  59.         var px = document.getElementById("pf").value;
  60.         if(f == "" || px == "")
  61.         {
  62.             alert("Voce esqueceu de algo...");
  63.         }
  64.         else
  65.         {
  66.             var code =
  67.             "\stock Ips_"+f+"("+px+") \n{ \n    // your code here...\n\n    return true;\n}\n\n#if defined "+"_ALS_"+f+"\n    #undef "+f+"  \n#else\n    #define _ALS_"+f+"\n#endif\n#define "+f+" Ips_"+f;
  68.        
  69.             document.write("<textarea rows='13' cols='50'>"+code+"</textarea>");
  70.         }
  71.     }
  72. }
  73. </script>
  74.  
  75. <br />
  76. <br />
  77. Credits:<br />
  78. *~ DanDRT(IpsDan) <br/>
  79. *~ IpsBruno - Hook Method<b/><br />
  80. iPs TeaM 2010-2013 - ipsbr.net</b>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement