Raised This Month: $ Target: $400
 0% 

Using of g_cstrikeRunning


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
tron73
Senior Member
Join Date: Apr 2004
Location: Schulzendorf / germany
Old 06-23-2004 , 03:36   Using of g_cstrikeRunning
Reply With Quote #1

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?
__________________


Debian LAMP
AMD 64 3700+
2xCS:S
tron73 is offline
Send a message via ICQ to tron73
SidLuke
Senior Member
Join Date: Mar 2004
Location: Poland, Chrzanow
Old 06-23-2004 , 07:04  
Reply With Quote #2

"cstrike","czero" or "dod","ts" are main directories where addons/*.* files (amxx) are.
SidLuke is offline
Send a message via AIM to SidLuke Send a message via MSN to SidLuke
tron73
Senior Member
Join Date: Apr 2004
Location: Schulzendorf / germany
Old 06-23-2004 , 14:50  
Reply With Quote #3

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 ...)
__________________


Debian LAMP
AMD 64 3700+
2xCS:S
tron73 is offline
Send a message via ICQ to tron73
Downtown1
Veteran Member
Join Date: Mar 2004
Old 06-23-2004 , 15:07  
Reply With Quote #4

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.
Downtown1 is offline
IceMouse[WrG]
Senior Member
Join Date: Mar 2004
Old 06-23-2004 , 15:40  
Reply With Quote #5

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)
IceMouse[WrG] is offline
Send a message via AIM to IceMouse[WrG] Send a message via MSN to IceMouse[WrG] Send a message via Yahoo to IceMouse[WrG]
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


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


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