NanaFreak
Scripting Contest Winner
Posts: 1476 Reputation: 53
32 / /
Joined: Jul 2006
|
RE: {help please} script disable
ok here you go code: var started = 0;
function OnEvent_ChatWndReceiveMessage(ChatWnd,Origin,Message)
{
if(started==0)
{
if(Message=='start!')
{
started=1;
//code here for when started
}
if(Message=='stop!')
{
ChatWnd.SendMessage('not started');
}
}
else if(started==1)
{
if(Message=='stop!')
{
started=0;
//code here for diabled
}
if(Message=='start!')
{
ChatWnd.SendMessage('already started');
}
}
}
fixed the start! stop! codes
fix my code (i had mesage not message)
added some colour to help you out
This post was edited on 09-17-2006 at 02:15 AM by NanaFreak.
|
|