Day of Defeat Plugins Community
This site is an archive — everything is readable and downloadable, nothing can be posted. Admin
Archive › Old Forum Threads › Help › Scripting Help › multiple map names
4 posts, 2 people · 830 views Thread Rating: ★★★★★
closedmultiple map names
Started by meathead on 01-07-2008, 12:11 PM
meathead
started this thread
Posts: 337
Threads: 23
Joined: Aug 2007
01-07-2008, 12:11 PM #1

Is possible for this line to have more than one map name?rnOr do I just repeat the code with a different map name?rnrnif(is_user_connected(id) && equali(mapname,"dod_hill_classic"))rnrn(from Diamonds sniperlimits for hillclassic plugin)rnrnMeathead Hobo

diamond-optic
posted here
Posts: 2,068
Threads: 103
Joined: May 2005
01-07-2008, 02:26 PM #2

you could do something like:nnnif(is_user_connected(id) && (equali(mapname,"dod_hill_classic") || equali(mapname,"dod_donner") || equali(mapname,"dod_zafod"))nnwhich would translate to something like the user has to be connected & the map has to be hill OR donner OR zafod

meathead
started this thread
Posts: 337
Threads: 23
Joined: Aug 2007
01-07-2008, 05:50 PM #3

Thanks, still trying to learn!

diamond-optic
posted here
Posts: 2,068
Threads: 103
Joined: May 2005
01-07-2008, 10:06 PM #4

yup.. no problem :-)

Archive › Old Forum Threads › Help › Scripting Help › multiple map names
DoD Plugins Archive · Repository · Old Forum Threads · Maps · Admin · built 14 Sep 2026 00:34 UTC