View Full Version : [Uscript] example of how to make a menu?
mic1989
4th June 2005, 16:20
Someone has it for me?
I searched mpc (cuz i knew i saw it before here) but i cánt find that topic anymore.
Im getting paran-oid now because i have seen it once
:ermm:
lionheart5358
4th June 2005, 19:44
off the top of my head, sorry if some of its wrong
var config bool bExample;
var config bool bAnotherExample;
function DrawMenu(Canvas Canvas)
{
Canvas.SetDrawColor(255,255,255);
Canvas.SetPos(10,300);
Canvas.DrawText("AutoAim :: "$bExample);
Canvas.SetPos(10,310);
Canvas.DrawText("AutoFire :: "$bAnotherExample);
}
function ReportStatus(string Option, bool Status)
{
MyController.ClientMessage(Option$" toggled to "$Status);
}
exec function example()
{
bExample = !bExample
ReportStatus("Example", bExample);
}
exec function anotherexample()
{
bAnotherExample = !bAnotherExample
ReportStatus("Another example", bAnotherExample);
}
mic1989
4th June 2005, 20:49
Ah thanks, that's usefull
:)
Powered by vBulletin™ Version 4.0.2 Copyright © 2010 vBulletin Solutions, Inc. All rights reserved.