// %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% // AdSkin For admin, V1.0 // Made by -=DJ_MOH=- website http://www.dj-moh.nl // for admins to set their teamspy skins // they can choose only the skins from the opposite team // Typ !adskin in text if you are an admin // ---- Note Feel Free to EDIT the Dutch language the english translation // is wrote above ---- // %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% block config { // **************************************************************************** // Edit this for your server settings ! you can read the little tuts // **************************************************************************** // set you admins - no spaces - as_admins "STEAM_0:1:13000842,Steam_id_or_lan" // everyone can call the menu ? 0 = every player can call | 1 = Only admins can call the menu // i recommend to set it to 1 because its a disaster if every one changes team (lolllll!!) adminonly 1 } // **************************************************************************** // Do -NOT- edit below this line unless you know what your doing ! // **************************************************************************** event load { es_log Loading adskin.... es_setinfo as_version ADSKIN_v1.0 es_makepublic as_version es_setinfo as_admins 0 es_setinfo adminonly 0 es_getplayerteam as_team event_var(userid) es_setinfo as_sound "bot/owned.wav" es_doblock adskin/config } // this popup will show if you are a terrorist block popupct { // ct skins es_setinfo ct1 "player/ct_gign" es_setinfo ct2 "player/ct_gsg9" es_setinfo ct3 "player/ct_sas" es_setinfo ct4 "player/ct_urban" popup create ctpop // english line "choose the a skin" popup addline ctpop "Choose adskin teamspy skin: event_var(es_username)" popup addline ctpop "->1. Gign" popup addline ctpop "->2. Gsg9" popup addline ctpop "->3. Sas" popup addline ctpop "->4. Urban" popup addline ctpop "<----------->" popup addline ctpop "->0. EXIT" popup menuselect ctpop adskin/ctchosen } // do this if a CTskin is chosen block ctchosen { if (server_var(_popup_choice) == 1) then es est_SetModel event_var(userid) server_var(ct1) if (server_var(_popup_choice) == 2) then es est_SetModel event_var(userid) server_var(ct2) if (server_var(_popup_choice) == 3) then es est_SetModel event_var(userid) server_var(ct3) if (server_var(_popup_choice) == 4) then es est_SetModel event_var(userid) server_var(ct4) if (server_var(_popup_choice) == 0) then popup close ctpop event_var(userid) } // this popup will show if you are an counter-terrorist block popupt { // terror skins es_setinfo t1 "player/t_arctic" es_setinfo t2 "player/t_guerilla" es_setinfo t3 "player/t_leet" es_setinfo t4 "player/t_phoenix" popup create tpop popup addline tpop "Choose adskin teamspy skin: event_var(es_username)" popup addline tpop "->1. Srtic" popup addline tpop "->2. Guerilla" popup addline tpop "->3. Leet" popup addline tpop "->4. Phoenix" popup addline tpop "<----------->" popup addline tpop "->0. EXIT" popup menuselect tpop adskin/tchosen } // do this if a Terrorskin is chosen block tchosen { if (server_var(_popup_choice) == 1) then es est_SetModel event_var(userid) server_var(t1) if (server_var(_popup_choice) == 2) then es est_SetModel event_var(userid) server_var(t2) if (server_var(_popup_choice) == 3) then es est_SetModel event_var(userid) server_var(t3) if (server_var(_popup_choice) == 4) then es est_SetModel event_var(userid) server_var(t4) if (server_var(_popup_choice) == 0) then popup close tpop event_var(userid) } // if admin says !admin then get playerteam, and show the skin menu event player_say { if (event_var(command) = "!adskin") do { if (server_var(adminsonly) = 1) do { if (event_var(es_steamid) in server_var(as_admins)) do { // if he is from terrorist team if (server_var(as_team) = 2) do { es_doblock adskin/popupct } if (server_var(as_team) = 3) do { es_doblock adskin/popupt } else do es_msg event_var(userid) #red[AdSkin] #lightgreen You do not have permission to use this ! // delete "//" below and add "//" on top for dutch // es_msg event_var(userid) #red[AdSkin] #lightgreen Je hebt geen toestemming om dit menu te gebruiken ! es_delayed 2 es_toptext event_var(userid) #redDon't try typing !adskin again ! // delete "//" below and add "//" on top for dutch // es_delayed 2 es_toptext event_var(userid) #redProbeer niet nog een keer !adskin te typen! } } if (server_var(adminsonly) = 0) do { if (server_var(as_team) = 2) do { es_doblock adskin/popupct } if (server_var(as_team) = 3) do { es_doblock adskin/popupt } } } } // &&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&& // THE END. // &&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&