AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Using of g_cstrikeRunning (https://forums.alliedmods.net/showthread.php?t=2988)

tron73 06-23-2004 03:36

Using of g_cstrikeRunning
 
Because I am using a cs:cz server, I often look into t´he smas and find

g_cstrikeRunning = is_running("cstrike")

I dont know exactly, but I read somewhere, that you should change it to

g_cstrikeRunning = is_running("czero")

What exactly is it for and is it enough to search for that definition and change it to czero instead?

SidLuke 06-23-2004 07:04

"cstrike","czero" or "dod","ts" are main directories where addons/*.* files (amxx) are.

tron73 06-23-2004 14:50

Hmm, misunderstood, I think.

I know the "cstrike" " czero" and so on, but what about if I change it from cstrike to czero, because I have a czero dedi.

I made the weaponrestriction work with the change, but I don't exactly know, what it does... (not the rstriction-thing ...)

Downtown1 06-23-2004 15:07

It's probably a simple boolean that indicates whether or not that game is running.

i.e. if you are running DoD, it would return false.

IceMouse[WrG] 06-23-2004 15:40

Theres a get_modname, which that compares the string you put in to the string it reutrns, so if the mod you're running is cstrike, and you put cstrike there, then it returns true, otherwise false... It's useful if you want to make a mod-specific feature, while still making it work with outher mods(Messages that would make other mods crash)


All times are GMT -4. The time now is 14:44.

Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.