Jump to content

Leaderboard

Popular Content

Showing content with the highest reputation on 04/16/14 in all areas

  1. gaoesa

    Custom commands.

    Sorry, I didn't read the question carefully and the example was a redundant command anyway. This should work for your case. exec = putteam "[n]" sI'm not sure if it needs the '!' in front or not. Be sure you have the "-characters in place. That way the command will not get confused if the name includes spaces in between.
    1 point
  2. TheSilencerPL

    Vsays

    Yes it's possible. It's done the same way like for other mods. In order to do this you have to create a pk3 file with the following structure: zzz_my_srv_souds.pk3 - scripts - wm_allies_chat.voice - wm_axis_chat.voice - ui - wm_quickmessageAlt.menu - sound - bye - greeting - misc - funny The *.voice files define the sounds definitions. Directories inside sound directory are just for your own convenience to group the files by kind, you might not have any of the as well. Inside the sound categories direcotries place your .wav files and map them in the .voice files. Then in the wm_quickmessageAlt.menu you define your vsay menu. Example: wm_allies_chat.voice hello1 { sound/ksl/hi/hello1.wav "^4Hello!" }wm_quickmessageAlt.menu with hello1 QM_MENU_START( "wm_quickhibye_alt" ) QM_MENU_ITEM( "^71. Dzien dobry", exec "VoiceChat dziendobry";close wm_quickhibye_alt, "1", 0 ) QM_MENU_ITEM( "^72. Hello 1!", exec "VoiceChat hello1"; close wm_quickhibye_alt, "2", 1 ) QM_MENU_ITEM( "^73. Hello 2!", exec "VoiceChat hello2"; close wm_quickhibye_alt, "3", 2 ) QM_MENU_ITEM( "^74. Hello 3!", exec "VoiceChat hello3"; close wm_quickhibye_alt, "4", 3 ) QM_MENU_ITEM( "^75. Hello 4!", exec "VoiceChat hello4"; close wm_quickhibye_alt, "5", 4 ) QM_MENU_ITEM( "^76. Hello 5!", exec "VoiceChat hello5"; close wm_quickhibye_alt, "6", 5 ) QM_MENU_ITEM( "^77. Hello 6!", exec "VoiceChat hello6"; close wm_quickhibye_alt, "7", 6 ) QM_MENU_ITEM( "^78. Hi!", exec "VoiceChat kslhi"; close wm_quickhibye_alt, "8", 7 ) QM_MENU_ITEM( "^D9. More...", close wm_quickhibye_alt; open wm_quickhibye2_alt, "9", 8 ) QM_MENU_ENDIf you don't know how to do it despite the example above, please check the pk3 files from some server and check how it is done there, you will quickly grasp the idea.
    1 point
×
×
  • Create New...