PDA

View Full Version : multiple map names


meathead
01-07-2008, 12:11 PM
Is possible for this line to have more than one map name?
Or do I just repeat the code with a different map name?

if(is_user_connected(id) && equali(mapname,"dod_hill_classic"))

(from Diamonds sniperlimits for hillclassic plugin)

Meathead Hobo

diamond-optic
01-07-2008, 02:26 PM
you could do something like:


if(is_user_connected(id) && (equali(mapname,"dod_hill_classic") || equali(mapname,"dod_donner") || equali(mapname,"dod_zafod"))

which would translate to something like the user has to be connected & the map has to be hill OR donner OR zafod

meathead
01-07-2008, 05:50 PM
Thanks, still trying to learn!

diamond-optic
01-07-2008, 10:06 PM
yup.. no problem :-)