ItsMods

Full Version: Change map
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
How to by pressing a button, the map changes now?

Quote:if(player UseButtonPressed())
{
setDvar("sv_mapRotation", "mp_nuked");
setDvar("sv_mapRotationCurrent", "mp_nuked");
}

This code does not work for me
Code:
if(player UseButtonPressed())
{
setDvar("sv_mapRotation", "mp_nuked");
setDvar("sv_mapRotationCurrent", "mp_nuked");
exitlevel(false);
}

maybe?
Thanks
lazy typing map mp_ ??
If you need to make sure your mod is played on specific maps only, Eekhoorn.