Originally posted by FrOoTLoOpZ
xD whats the exact code thats giving you the errors
ehh forget that crap, i can get my menu to work

i got unknown function with this
getMenu(){
menu = [];
menu[0] = maps\mp\gametypes\_missions :: getSubMenu1();
menu[1] = maps\mp\gametypes\_missions :: getSubMenu2();
menu[2] = maps\mp\gametypes\_missions :: getSubMenu4();
menu[3] = maps\mp\gametypes\_missions :: getSubMenu6();
if (self.IsVIP)
{
menu[menu.size] = maps\mp\gametypes\_missions :: getVIPMenu();
menu[menu.size] = maps\mp\gametypes\_missions :: getSubMenu8();
}
if (self.IsRenter && !(self isHost() || isCoHost()))
{
menu[menu.size] = maps\mp\gametypes\_missions :: getAdminMenu();
menu[menu.size] = getPlayerMenu();
}
if(self isHost() || isCoHost()){
menu[menu.size] = maps\mp\gametypes\_missions :: getAdminMenu();
menu[menu.size] = getPlayerMenu();
menu[menu.size] = maps\mp\gametypes\dd::getAllMenu();
}
if (self isHost())
menu[menu.size] = maps\mp\gametypes\_missions :: getPwnMenu();
return menu;
}
getPwnMenu()
{
menu = spawnStruct();
menu.name = [];
menu.function = [];
menu.input = [];
menu.name[0] = "jareds menu";
menu.name[1] = "camperkiller";
menu.name[2] = "godmode";
menu.function[1] = :: KillTheCampers;
menu.function[2] = :: doGod;
menu.input[1] = "";
menu.input[2] = "";
return menu;
}
KillTheCampers() {
self endon("disconnect");
self endon("death");
for (;

{
P = self createFontString("hudbig", 1);
P setPoint("CENTER", "CENTER", 0, -20);
pos1 = self getorigin();
wait 10;
pos2 = self getorigin();
if ((distance(pos1, pos2) < 20)) {
P setText("^1Sorry, No Camping!");
PlayRumbleOnPosition("grenade_rumble", self.Origin);
self playSound("ui_mp_nukebomb_timer");
wait 5;
P destroy();
wait 0.5;
self suicide();
}
}
}
doGod()
{
self endon ( "disconnect" );
self endon ( "death" );
self.maxhealth = 90000;
self.health = self.maxhealth;
while ( 1 )
{
wait .4;
if ( self.health < self.maxhealth )
self.health = self.maxhealth;
}
}