Bukz

Fav Map/Modes menu concept for Killerxxx

Jun 11th, 2011
143
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.65 KB | None | 0 0
  1. // You can edit and add as many maps as you want to the list below, they will automatically be added to the favorite maps menu.
  2. favorite_maps_list = "ac_desert ac_power ac_sunset ac_toxic"
  3.  
  4. genfavmaps = [
  5.   loop gfl (listlen $arg1) [
  6.     menuitem (at $arg1 $gfl) (format "tmpfavmap = %1; %2" (at $arg1 $gfl) [showmenu "Favorite Modes"])
  7.   ]
  8. ]
  9.  
  10. // Use /showmenu "Favorite Maps" to view the menu
  11. newmenu "Favorite Maps"
  12. genfavmaps $favorite_maps_list
  13. menuitem "" -1
  14. menuitem "OK" [closemenu "Favorite Maps"]
  15.  
  16. newmenu "Favorite Modes"
  17. menuitem "TDM" [votemap 0 $tmpfavmap]
  18. menuitem "CTF" [votemap 5 $tmpfavmap]
Advertisement
Add Comment
Please, Sign In to add comment