Quote:
Originally Posted by Supremache
PHP Code:
new szMapName[64] get_mapname(0, szMapName, 63) If(szMapName, equal ("de_")) return;
|
No. You may want to test code before posting.
_____________________________________________ ____________
@MacL, this is a Scripting Help question so you should post things like this in Scripting Help in the future.
You would use
get_mapname() and
equal() to compare only the first X number of characters (because both examples given only have 3 characters, you would set argument 'c' to 3).
If you have differing sizes of prefixes, you may want to consider breaking the string with something like
strtok() using the underscore as a tocken and comparing the first result to your prefixes.
_____________________________________________ ____________
For others who might want it: No plugin code modification required, simply configure the plugin to only load on the maps you want:
https://wiki.alliedmods.net/Configur...ecific_Plugins
__________________