SRCDS Steam group


Help script
#1
Hello, i want to create a script that i can use in eventscript maybe with the popup plugin.... or i mean addon

I wan´t it to popup when i type !something and only for admins maybe to play song from my computer with it...

how should i start? help me in the start and then i can do thh rest by my self Smile *Proud*
noooooooooone
Reply
#2
Read please: http://www.eventscripts.com/pages/Main_Page

...is it that hard? Did you start at all?
Reply
#3
i have started i have installed it and severall plugins that i use but i want to make a menu that i can do different stuff or if someone have a plugin that is easy to edit for my needs. I know a lot of things i won´t call me self a noob but..

maby someone som1 can told me some useful commands

i want the script/addon look like this

________
|Mymenu |............ Page 2
|.1Songs |............ 1songname
|_______|............ 2songname

and when i press a songname the song will show up ^o) is it hard to create?
noooooooooone
Reply
#4
OKejj i get it now i made some lines but how do i made so only admins can open it with example !mykeycommand
noooooooooone
Reply
#5
Why don't you use those who already are created?
Reply
#6
I want to use my own songs and i don´t really know if it´s cool to edit other peoples work..
noooooooooone
Reply
#7
Well the scripts are made? You simply just configurate it for your own songs.
Reply
#8
i want to try to create a own a found alot of information so i maybe can made it now but i will hav some questions and then i just Google te shit so thx for the moment.
noooooooooone
Reply
#9
Well is it 1.5 or python? I can help if it should be.
Reply
#10
hmm i dont know how to create it....
i will use pspPad with the counter strike plugin found on these forums i don't know how to start.
I that right i tested that...
idk i did create some and copy some but is anything right.

Code:
event_var player_say !musicmenu

def load():
   config.execute()
   global roundcount
   roundcount = 1
   index = popuplib.create('index')
   index.addline('Music Menu')
   index.addline('->1. Songname')
   index.addline('->2. Songname')
   index.addline('->3. Songname')
   index.addline('->4. Songname')
   index.addline('->5. Songname')
   index.addline('->6. Songname')
   index.addline('->7. Songname')
   index.addline('->8. Songname')
   index.addline('->9. Next Page')
   index.addline(' ')
   index.addline('->0. Exit')
   index.menuselect = index_menu
noooooooooone
Reply
#11
Well the syntax is correct.

If you want help or I can try to, but ages ago I created something last in python.

Go here: http://mattie.info/cs/forums
Reply
#12
okej but is my code right because know if a player types !musicmenu do they get up that menu below?
noooooooooone
Reply
#13
They should, but if they click nothing will happen.

But try it out.
Reply
#14
i know if they klick nothing happends i hav wrote the other stuff i can show
but i type !musicmenu in the chat nothing happends and i think i have popup loaded....

this is the code so far...

Code:
event_var player_say !musicmenu

//menu
def load():
   config.execute()
   global roundcount
   roundcount = 1
   index = popuplib.create('index')
   index.addline('Music Menu')
   index.addline('->1. Songname')
   index.addline('->2. Songname')
   index.addline('->3. Songname')
   index.addline('->4. Songname')
   index.addline('->5. Songname')
   index.addline('->6. Songname')
   index.addline('->7. Songname')
   index.addline('->8. Songname')
   index.addline('->9. Next Page')
   index.addline(' ')
   index.addline('->0. Exit')
   index.menuselect = index_menu
           //page 2
   Songname = popuplib.create('Page 2')
   Songname.addline(' ')
   Songname.addline("->1. Songname")
   Songname.addline('->2. Songname')
   Songname.addline('->3. Songname')
   Songname.addline('->4. Songname')
   Songname.addline('->5. Songname')
   songname.addline('->6. Songname')
   songname.addline('->7. Songname')
   Songname.addline(' ')
   Songname.addline('->8. Previous Page')
   Songname.addline('->9. Next Page')
   Songname.addline('0. Exit')
   Songname.menuselect = page2_menu
           //page 3
      Songname = popuplib.create('Page 3')
   Songname.addline(' ')
   Songname.addline("->1. Songname")
   Songname.addline('->2. Songname')
   Songname.addline('->3. Songname')
   Songname.addline('->4. Songname')
   Songname.addline('->5. Songname')
   songname.addline('->6. Songname')
   songname.addline('->7. Songname')
   Songname.addline(' ')
   Songname.addline('->8. Previous Page')
   Songname.addline('0. Exit')
   Songname.menuselect = page3_menu
   //sources
  
   def page2_menu(userid, choice, popupid):
   if choice == 1:
      usermsg.motd(userid, 2, 'c://Source')
   elif choice == 2:
      usermsg.motd(userid, 2, 'c://Source')
   elif choice == 3:
      usermsg.motd(userid, 2, 'c://Source')
   elif choice == 4:
      usermsg.motd(userid, 2, 'c://Source')
   elif choice == 5:
      usermsg.motd(userid, 2, 'c://Source')
   elif choice == 6:
      usermsg.motd(userid, 2, 'c://Source')
   elif choice == 7:
      usermsg.motd(userid, 2, 'c://Source')
   elif choice == 8:
      popuplib.close('Page 2', userid)
      popuplib.send('index', userid)
    elif choice == 9:
      popuplib.close('Page 2', userid)
      popuplib.send('Page 3', userid)
noooooooooone
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)