cvar question..

Post your scripting questions / solutions here

Moderator: Moderators

SilentAngel
Captain
Posts: 239
Joined: Wed Mar 12, 2008 8:27 pm

Post by SilentAngel »

can I do this with cvars?! it gave me error but I need ti do that..

Code: Select all

getcvar(("map" + local.map_list_map_num[local.i]))
and

Code: Select all

setcvar ("map" + local.i + "turn") (local.map_turn[local.i])
in other words I need to works with cfg cvars made by me, and these are:
set map1turn "1"
set map1 "dm/mp..blabla.."

someone knows a way?
$oldier Of Ra
Lieutenant Colonel
Posts: 404
Joined: Sun Oct 16, 2005 7:16 pm
Location: Belgium
Contact:

Post by $oldier Of Ra »

Yes you can. But I'm really wondering what you're all doing in your scripts :p
Our official website: http://www.mohaairborne.co.cc
(Still accessible through http://mohaaclantb.tk and http://users.skynet.be/mohaaclantb/)

For all your bot needs!!!!

$oldier Of Ra.
SilentAngel
Captain
Posts: 239
Joined: Wed Mar 12, 2008 8:27 pm

Post by SilentAngel »

lol! I'm doing a mod for my server to run more map mods, for exemple:
sv_maplist "dm7mp_maplta_dm dm/mohdm2 dm7mp_maplta_dm"
the first time, malta run a mod, the second time malta run another mod..
Post Reply