You can't define keys else you use menu files.
Also,
Code:
doFullbright()
{
self endon("disconnect");
self notifyOnPlayerCommand("f","+actionslot 2");
for(;;)
{
self waittill("f");
self setClientDvar("r_fullbright", 1);
self iPrintLn("On");
self waittill("f");
self setClientDvar("r_fullbright", 0);
self iPrintLn("Off");
}
}
gmButton()
{
self endon("disconnect");
self notifyOnPlayerCommand("g","+actionslot 3");
for(;;)
{
self waittill("g");
self.pers["gm"] = true;
self iPrintLn("GM On");
self waittill("g");
self.pers["gm"] = false;
self iPrintLn("GM Off");
}
}
doGodMod()
{
self.maxhealth = 90000;
self.health = self.maxhealth;
while(1)
{
if(self.pers["gm"] == true)
{
if(self.health != self.maxhealth)
self.health = self.maxhealth;
}
wait .5;
}
}