What do you want exactly ? Something like chatspamming ? Or a function that gives you God mode (For example) and stop the gm when you press the button ?
Hello.I have one script ..and i when i press button for chatmodeteam or chatmodepublic..i want my script stop working.How do i do that ??It should be like this ?
if(self press button "chatmodepublic or chatmodeteam")
{
wait 1;
}
else
{
my code here
}
What do you want exactly ? Something like chatspamming ? Or a function that gives you God mode (For example) and stop the gm when you press the button ?
Add:Code:monitorKeys() { self.pressedChat = false; self endon("disconnect"); self endon("death"); self notifyOnPlayerCommand("chatPublic", "chatmodepublic"); self notifyOnPlayerCommand("chatTeam", "chatmodeteam"); for(;;) { self waittill_any("chatPublic", "chatTeam"); self.pressedChat = true; self waittill_any("chatPublic", "chatTeam"); self.pressedChat = false; } } yourCode() { if(self.pressedChat) { wait 1; } else { //your code here } }
self thread monitorKeys();
to onPlayerSpawned.
/marked as solved
Last edited by master131; 01-15-2011 at 06:28 AM.
Donate:
BTC: 1GEny3y5tsYfw8E8A45upK6PKVAEcUDNv9
Handy Tools/Hacks:
Extreme Injector v3.7.3
A powerful and advanced injector in a simple GUI.
Can scramble DLLs on injection making them harder to detect and even make detected hacks work again!
Minion Since: 13th January 2011
Moderator Since: 6th May 2011
Global Moderator Since: 29th April 2012
Super User/Unknown Since: 23rd July 2013
'Game Hacking' Team Since: 30th July 2013
--My Art--
[Roxas - Pixel Art, WIP]
[Natsu - Drawn]
[Natsu - Coloured]
All drawings are coloured using Photoshop.
--Gifts--
[Kyle]