Change map with script?

Posts 1–7 of 7 · Page 1 of 1
Change map with script?
Hi,

I'm making a function that says what the next map gonne be. but the this piece of code still doesnt work and i can't find the good function for it
Code:
map(mp_subbase);
This doesn't work, is there any other function where i can change the map with ?
Try this:
setDvar("map", "mp_subbase")

EDIT - Just tried it myself and got a syntax error. lol

I also tried self setClientDvar("map", "mp_subbase") and I got a syntax error aswell.
Thx, it does not crash But i don't know or it changes the map, i'm not that far..
Hahaha, ok. Maybe it was because I put it under onPlayerSpawned()
Look at Zalew's Mod Menu - he has the code in the menu somewhere that does it.
Doesnt work. Zalew's nomod uses: map(mp_underpass);

But it crashes, and the SetclientDvar doesnt load any map :|

Error:
******* script compile error *******
Error: uninitialised variable 'mp_underpass'
************************************
********************
ERROR: script compile error
uninitialised variable 'mp_underpass'

(see console for details)

********************

EDITam Can't find anything on google and ppl are waiting :|
Found it :map("mp_underpass")

I can't edit my post above this??
Posts 1–7 of 7 · Page 1 of 1
This thread is closed for replies.

Similar Threads

Tags for this Thread

None

Talk with us