I am trying to make a server command that when you type /rof, it automatically turns you right and mousefires
i have
function servercmdrof()
{
if(%on<=0)
{
mousefire();
turnright(1);
%on=1;
echo(%on);
break;
}
else if(%on>=1)
{
mousefire();
turnright();
%on=0;
echo(%on);
break;
}
else
{
%on=0;
echo(%on);
break;
}
}
it works the first time i type /rof, so it spins me and fires, but the second time i use it it just stops mousefire and continues to spin.
am i missing something?