Keslertje2005 Posted April 24, 2007 Share Posted April 24, 2007 Yo Scoob, I don't want admins to change maps all the time, but they are allowed to change to a random map when the server doesnt load a new one. Is it possible to do that without the !changemap random thing but just !random ? Cause when I do !random it just tells a random map but doesnt change. And is it possible to put it in the script by myself? I don't really have the time to wait for PRS 1.3 with that command.. And anohter cool command for admins: !nextmap will change the map to the givin map at the end of the round. Really really thanks for this mate! You really help me alot! Link to comment
Scooby Posted April 25, 2007 Share Posted April 25, 2007 ok erm... im not entirely sure what u mean, theres no way of only allowing admins to change maps if the server doesnt load one, but if u want !random to change to a random map? hmm the easiest way is to just use !map or !changemap to do the same thing and remove the word random altogether. to do this: goto line 271 u should see this: if (!$4) mta.pm $1 $2 Error: Specify A Map Name elseif ($4 == random) { change it to: if (!$4) { also while u have it open, change line 270 to this: if ($mta.level($1,$2) >= $prs.startmap($1)) { hehe seems i left some useless code in there, dont worry, it doesnt work. ok and im guessing that !nextmap command was something for 1.3? not a prob, i'll add it for u. progress is going ok:) Link to comment
Keslertje2005 Posted April 25, 2007 Author Share Posted April 25, 2007 That's not really what I ment. I have level 4 admins. I want them to be able to start a Random map with the code !random. And only level 5 admins will be able to start a specified given map... That !nextmap is for PRS 1.3 yeh, thats easier than typing !cm in the last 5 seconds. Link to comment
Scooby Posted April 25, 2007 Share Posted April 25, 2007 ok..here... goto line 71, replace: elseif (!rand* iswm $3) mta.text $1 Random Race: $hget(prstemp,randomrace) with: elseif ($3 == !random) { if ($mta.level($1,$2) >= 4) { mta.text $1 Starting A Random Map - $hget(prstemp,randomrace) mta.startrace $1 $mta.races($1,$hget(prstemp,randomrace)) } else insuf $1 $2 } Link to comment
Recommended Posts