multiple commands in addpopup

jaxwire

Junior Member
Joined
Oct 17, 2004
Likes
0
#1
I have a pulldown menu that I use to change - for example - the runspeed, thus:

addpopup "Change Run Speeds" "0" command "rcon sv_runspeed 0"

I'm trying to add MaM2.1-generated servermessages to each button so that when I change the runspeed the server reports it. The rcon command for the msg is:

rcon command "sayi Runspeed set to 0"

Now how do I combine those 2? I found out through trial and error that you can have multiple commands in a single addpopup statement by putting a ; between commands, but I've been unsuccesful to add the text. Here's what I have so far :

addpopup "Change Run Speeds" "0" command "rcon sv_runspeed 0;command sayi runspeed set to 0"

This executes the runspeed change, and also runs the sayi command, but without the text... I've tried adding quotes, created aliases for the entire sayi command and text, but nothing seems to work.... Any ideas?
 

Repsaj

Junior Member
Joined
Jun 25, 2004
Likes
0
#2
if you have spearhead, you need to replace the spaces with \s

so:

command"sayi\srunspeed\sset\sto\s0"

maybe that is working, don't know for sure
 
Top Bottom