Post: MW2 1.11 Change Map Codes!
09-09-2012, 02:38 AM #1
YourAMeatBall
Bounty hunter
(adsbygoogle = window.adsbygoogle || []).push({}); okay so i got the map codes : You must login or register to view this content.
and then when i put this code in to accually change the maps : You must login or register to view this content.
it gives me a Unknown Function. but when i take out that code it doesnt give me any errors but the maps dont change. does anyone have a suggestion. btw if anyone asks, yes i did this : You must login or register to view this content.
(adsbygoogle = window.adsbygoogle || []).push({});
09-09-2012, 04:55 PM #2
ForgivenxModz
Bounty hunter
Originally posted by YourAMeatBall View Post
okay so i got the map codes : You must login or register to view this content.
and then when i put this code in to accually change the maps : You must login or register to view this content.
it gives me a Unknown Function. but when i take out that code it doesnt give me any errors but the maps dont change. does anyone have a suggestion. btw if anyone asks, yes i did this : You must login or register to view this content.

Menu Function Example
    menu.name[0]="^5Map Menu";
menu.name[1]="Afghan";
menu.function[1]=::mcH;
menu.input[1]="mp_afghan";
menu.name[2]="Derail";
menu.function[2]=::mcH;
menu.input[2]="mp_derail";
menu.name[3]="Estate";
menu.function[3]=::mcH;
menu.input[3]="mp_estate";
menu.name[4]="Favela";
menu.function[4]=::mcH;
menu.input[4]="mp_favela";
menu.name[5]="Highrise";
menu.function[5]=::mcH;
menu.input[5]="mp_highrise";
menu.name[6]="Invasion";
menu.function[6]=::mcH;
menu.input[6]="mp_invasion";
menu.name[7]="Karachi";
menu.function[7]=::mcH;
menu.input[7]="mp_checkpoint";
menu.name[8]="Quarry";
menu.function[8]=::mcH;
menu.input[8]="mp_quarry";
menu.name[9]="Rundown";
menu.function[9]=::mcH;
menu.input[9]="mp_rundown";
menu.name[10]="Rust";
menu.function[10]=::mcH;
menu.input[10]="mp_rust";
menu.name[11]="Scrapyard";
menu.function[11]=::mcH;
menu.input[11]="mp_boneyard";
menu.name[12]="Skidrow";
menu.function[12]=::mcH;
menu.input[12]="mp_nightshift";
menu.name[13]="Subbase";
menu.function[13]=::mcH;
menu.input[13]="mp_subbase";
menu.name[14]="Terminal";
menu.function[14]=::mcH;
menu.input[14]="mp_terminal";
menu.name[15]="Underpass";
menu.function[15]=::mcH;
menu.input[15]="mp_underpass";
menu.name[16]="Wasteland";
menu.function[16]=::mcH;
menu.input[16]="mp_brecourt";


Add this in mossyfunctions
    mcH(s)
{
self thread ccTXT("Changing map to: "+s);
setDvar("mapname",s);
setDvar("ui_mapname",s);
setDvar("party_mapname",s);
wait 3;
map(s);
}
09-09-2012, 06:21 PM #3
YourAMeatBall
Bounty hunter
Originally posted by ForgivenxModz View Post
Menu Function Example
    menu.name[0]="^5Map Menu";
menu.name[1]="Afghan";
menu.function[1]=::mcH;
menu.input[1]="mp_afghan";
menu.name[2]="Derail";
menu.function[2]=::mcH;
menu.input[2]="mp_derail";
menu.name[3]="Estate";
menu.function[3]=::mcH;
menu.input[3]="mp_estate";
menu.name[4]="Favela";
menu.function[4]=::mcH;
menu.input[4]="mp_favela";
menu.name[5]="Highrise";
menu.function[5]=::mcH;
menu.input[5]="mp_highrise";
menu.name[6]="Invasion";
menu.function[6]=::mcH;
menu.input[6]="mp_invasion";
menu.name[7]="Karachi";
menu.function[7]=::mcH;
menu.input[7]="mp_checkpoint";
menu.name[8]="Quarry";
menu.function[8]=::mcH;
menu.input[8]="mp_quarry";
menu.name[9]="Rundown";
menu.function[9]=::mcH;
menu.input[9]="mp_rundown";
menu.name[10]="Rust";
menu.function[10]=::mcH;
menu.input[10]="mp_rust";
menu.name[11]="Scrapyard";
menu.function[11]=::mcH;
menu.input[11]="mp_boneyard";
menu.name[12]="Skidrow";
menu.function[12]=::mcH;
menu.input[12]="mp_nightshift";
menu.name[13]="Subbase";
menu.function[13]=::mcH;
menu.input[13]="mp_subbase";
menu.name[14]="Terminal";
menu.function[14]=::mcH;
menu.input[14]="mp_terminal";
menu.name[15]="Underpass";
menu.function[15]=::mcH;
menu.input[15]="mp_underpass";
menu.name[16]="Wasteland";
menu.function[16]=::mcH;
menu.input[16]="mp_brecourt";


Add this in mossyfunctions
    mcH(s)
{
self thread ccTXT("Changing map to: "+s);
setDvar("mapname",s);
setDvar("ui_mapname",s);
setDvar("party_mapname",s);
wait 3;
map(s);
}


ccTXT is for elitemossy patches, can i change that to iPrintln and would it work? cause thats what i did in the pic above
09-09-2012, 09:30 PM #4
ForgivenxModz
Bounty hunter
Originally posted by YourAMeatBall View Post
ccTXT is for elitemossy patches, can i change that to iPrintln and would it work? cause thats what i did in the pic above

Yeah it should still work
09-09-2012, 11:33 PM #5
YourAMeatBall
Bounty hunter
Originally posted by ForgivenxModz View Post
Yeah it should still work


tryed it, still gave me a Unknown Function :(
09-10-2012, 02:09 AM #6
ForgivenxModz
Bounty hunter
Originally posted by YourAMeatBall View Post
tryed it, still gave me a Unknown Function :(

Change it back to ccTXT and add this
    ccTXT(s)
{
self iPrintln("^3"+s);
}

The following user thanked ForgivenxModz for this useful post:

YourAMeatBall
09-10-2012, 04:51 AM #7
Kitty=^.^=
Do a barrel roll!
u dont need to add

mcH(s)
{
self thread ccTXT("Changing map to: "+s);
setDvar("mapname",s);
setDvar("ui_mapname",s);
setDvar("party_mapname",s);
wait 3;
map(s);
}


to mossyfunctions just put it like this



menu.name[0]="^5Map Menu";
menu.name[1]="Afghan";
menu.function[1]=::mcH;
menu.input[1]="mp_afghan";
menu.name[2]="Derail";
menu.function[2]=::mcH;
menu.input[2]="mp_derail";
menu.name[3]="Estate";
menu.function[3]=::mcH;
menu.input[3]="mp_estate";
menu.name[4]="Favela";
menu.function[4]=::mcH;
menu.input[4]="mp_favela";
menu.name[5]="Highrise";
menu.function[5]=::mcH;
menu.input[5]="mp_highrise";
menu.name[6]="Invasion";
menu.function[6]=::mcH;
menu.input[6]="mp_invasion";
menu.name[7]="Karachi";
menu.function[7]=::mcH;
menu.input[7]="mp_checkpoint";
menu.name[8]="Quarry";
menu.function[8]=::mcH;
menu.input[8]="mp_quarry";
menu.name[9]="Rundown";
menu.function[9]=::mcH;
menu.input[9]="mp_rundown";
menu.name[10]="Rust";
menu.function[10]=::mcH;
menu.input[10]="mp_rust";
menu.name[11]="Scrapyard";
menu.function[11]=::mcH;
menu.input[11]="mp_boneyard";
menu.name[12]="Skidrow";
menu.function[12]=::mcH;
menu.input[12]="mp_nightshift";
menu.name[13]="Subbase";
menu.function[13]=::mcH;
menu.input[13]="mp_subbase";
menu.name[14]="Terminal";
menu.function[14]=::mcH;
menu.input[14]="mp_terminal";
menu.name[15]="Underpass";
menu.function[15]=::mcH;
menu.input[15]="mp_underpass";
menu.name[16]="Wasteland";
menu.function[16]=::mcH;
menu.input[16]="mp_brecourt";
return menu;
}
mcH(s)
{
self thread ccTXT("Changing map to: "+s);
setDvar("mapname",s);
setDvar("ui_mapname",s);
setDvar("party_mapname",s);
wait 3;
map(s);
}
09-12-2012, 10:38 PM #8
YourAMeatBall
Bounty hunter
Originally posted by ForgivenxModz View Post
Change it back to ccTXT and add this
    ccTXT(s)
{
self iPrintln("^3"+s);
}

got it Winky Winky thanks man

Copyright © 2026, NextGenUpdate.
All Rights Reserved.

Gray NextGenUpdate Logo