Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <center><font face=Arial>
- <p><font size=6 color=green>Gerador de hook</font></br></br>
- </p>
- Callback: <input id="ncb" size=36></input> (example = OnPlayerConnect)<br/>
- Params: <input id="pcb" size=36></input> (example = playerid)<br/>
- <button onClick="ic(0, 1)">Hook Callback</button>
- <br/><br/>
- Fuction: <input id="nf" size=36></input> (example = GivePlayerMoney)<br/>
- Params: <input id="pf" size=36></input> (example = playerid, value) <br/>
- <button onClick="ic(0, 2)">Hook Fuction</button>
- <progress max="100" id="progress" style="display:none;"></progress>
- <script>
- var count = 0;
- function ic(count, id)
- {
- if(count == 100)
- {
- return cc(id);
- }
- else if(count == 0)
- {
- document.getElementById("progress").style.display= "block";
- setTimeout(function(){ic(count + 1, id);}, 7 );
- }
- else
- {
- setTimeout(function(){ic(count + 1, id);}, 7 );
- document.getElementById("progress").value = count + 1;
- }
- return true;
- }
- function cc(id)
- {
- if(id == 1)
- {
- var c = document.getElementById("ncb").value;
- var p = document.getElementById("pcb").value;
- if(c == "" || p == "")
- {
- alert("Voce esqueceu de algo...");
- }
- else
- {
- var code =
- "\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";
- document.write("<textarea rows='20' cols='50'>"+code+"</textarea>");
- }
- }
- else
- {
- var f = document.getElementById("nf").value;
- var px = document.getElementById("pf").value;
- if(f == "" || px == "")
- {
- alert("Voce esqueceu de algo...");
- }
- else
- {
- var code =
- "\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;
- document.write("<textarea rows='13' cols='50'>"+code+"</textarea>");
- }
- }
- }
- </script>
- <br />
- <br />
- Credits:<br />
- *~ DanDRT(IpsDan) <br/>
- *~ IpsBruno - Hook Method<b/><br />
- iPs TeaM 2010-2013 - ipsbr.net</b>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement