Raised This Month: $ Target: $400
 0% 

How to check if users running :\


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Smokey485
Senior Member
Join Date: Dec 2004
Location: Newt 'Ellin
Old 01-17-2005 , 13:52   How to check if users running :\
Reply With Quote #1

How do I check if a user is running, i looked in the functions I cant find it, i found is_running, cstrike_running, but thats for if the mod is running, help please?
Smokey485 is offline
Send a message via AIM to Smokey485 Send a message via MSN to Smokey485
XxAvalanchexX
Veteran Member
Join Date: Oct 2004
Location: abort73.com
Old 01-17-2005 , 15:18  
Reply With Quote #2

You can use get_user_buttons and then check for IN_FORWARD, IN_BACK, etcetera, although they could still be walking and holding those down. Check their speed probably.
__________________
No longer around. Thanks your support, everyone! As always:
THIS ONES FOR YOU
3000 PTS
XxAvalanchexX is offline
FeuerSturm
AlliedModders Donor
Join Date: Apr 2004
Old 01-17-2005 , 15:29  
Reply With Quote #3

or just use IN_RUN
FeuerSturm is offline
Smokey485
Senior Member
Join Date: Dec 2004
Location: Newt 'Ellin
Old 01-17-2005 , 15:49  
Reply With Quote #4

thank u so much! im gonna code now :-D

its get_user_button

uhh, give me a example of the code...
im figuring
Code:
if(get_user_button(id) = IN_RUN){
Smokey485 is offline
Send a message via AIM to Smokey485 Send a message via MSN to Smokey485
Peli
Veteran Member
Join Date: Mar 2004
Location: San Diego, CA
Old 01-17-2005 , 16:54  
Reply With Quote #5

I think ...
Code:
if(get_user_button(id) = IN_FORWARD) {    // code }
Code:
if(IN_RUN(id) {    // code }
Peli is offline
Send a message via MSN to Peli
Smokey485
Senior Member
Join Date: Dec 2004
Location: Newt 'Ellin
Old 01-17-2005 , 16:58  
Reply With Quote #6

Uh, theres something wrong with my engine_stocks.inc cause its getting a frekin error in the compile thing for the enginestock
Smokey485 is offline
Send a message via AIM to Smokey485 Send a message via MSN to Smokey485
Peli
Veteran Member
Join Date: Mar 2004
Location: San Diego, CA
Old 01-17-2005 , 17:04  
Reply With Quote #7

Show us the error.
Peli is offline
Send a message via MSN to Peli
Smokey485
Senior Member
Join Date: Dec 2004
Location: Newt 'Ellin
Old 01-17-2005 , 17:05  
Reply With Quote #8

Code:
C:\Documents and Settings\default\Desktop\Steam\SteamApps\smoka485\dedicated ser
ver\ts\addons\amxmodx\scripting\include\engine_stocks.inc(67) : error 017: undef
ined symbol "entity_get_int"
C:\Documents and Settings\default\Desktop\Steam\SteamApps\smoka485\dedicated ser
ver\ts\addons\amxmodx\scripting\include\engine_stocks.inc(70) : error 010: inval
id function or declaration
C:\Documents and Settings\default\Desktop\Steam\SteamApps\smoka485\dedicated ser
ver\ts\addons\amxmodx\scripting\include\engine_stocks.inc(74) : error 010: inval
id function or declaration
C:\Documents and Settings\default\Desktop\Steam\SteamApps\smoka485\dedicated ser
ver\ts\addons\amxmodx\scripting\include\engine_const.inc(58) : error 021: symbol
 already defined: "EV_INT_effects"
C:\Documents and Settings\default\Desktop\Steam\SteamApps\smoka485\dedicated ser
ver\ts\addons\amxmodx\scripting\include\engine_const.inc(110) : error 021: symbo
l already defined: "EV_FL_renderamt"
C:\Documents and Settings\default\Desktop\Steam\SteamApps\smoka485\dedicated ser
ver\ts\addons\amxmodx\scripting\include\engine_const.inc(122) : error 021: symbo
l already defined: "EV_VEC_origin"
C:\Documents and Settings\default\Desktop\Steam\SteamApps\smoka485\dedicated ser
ver\ts\addons\amxmodx\scripting\include\engine_const.inc(164) : error 021: symbo
l already defined: "EV_SZ_classname"
oh yeah...reply faster im just a minute away. keep refreshing
Smokey485 is offline
Send a message via AIM to Smokey485 Send a message via MSN to Smokey485
Peli
Veteran Member
Join Date: Mar 2004
Location: San Diego, CA
Old 01-17-2005 , 17:11  
Reply With Quote #9

Looks like you didn't include an include file that you need to use for some natives in your code.
Peli is offline
Send a message via MSN to Peli
Smokey485
Senior Member
Join Date: Dec 2004
Location: Newt 'Ellin
Old 01-17-2005 , 17:13  
Reply With Quote #10

maybe i shoulda read, they look alike, engine_stocks, engine_const, same thing

Code:
C:\Documents and Settings\default\Desktop\Steam\SteamApps\smoka485\dedicated ser
ver\ts\addons\amxmodx\scripting\include\engine_stocks.inc(67) : error 017: undef
ined symbol "entity_get_int"
C:\Documents and Settings\default\Desktop\Steam\SteamApps\smoka485\dedicated ser
ver\ts\addons\amxmodx\scripting\include\engine_stocks.inc(69) : warning 203: sym
bol is never used: "id"
C:\Documents and Settings\default\Desktop\Steam\SteamApps\smoka485\dedicated ser
ver\ts\addons\amxmodx\scripting\include\engine_const.inc(58) : error 021: symbol
 already defined: "EV_INT_effects"
C:\Documents and Settings\default\Desktop\Steam\SteamApps\smoka485\dedicated ser
ver\ts\addons\amxmodx\scripting\include\engine_const.inc(110) : error 021: symbo
l already defined: "EV_FL_renderamt"
C:\Documents and Settings\default\Desktop\Steam\SteamApps\smoka485\dedicated ser
ver\ts\addons\amxmodx\scripting\include\engine_const.inc(122) : error 021: symbo
l already defined: "EV_VEC_origin"
C:\Documents and Settings\default\Desktop\Steam\SteamApps\smoka485\dedicated ser
ver\ts\addons\amxmodx\scripting\include\engine_const.inc(164) : error 021: symbo
l already defined: "EV_SZ_classname"
I still get those errors!!!

Code:
speedrp.sma(28) : warning 211: possibly unintended assignment
speedrp.sma(28) : error 022: must be lvalue (non-constant)
speedrp.sma(28) : warning 215: expression has no effect
speedrp.sma(28) : error 001: expected token: ";", but found ")"
speedrp.sma(28) : error 029: invalid expression, assumed zero
speedrp.sma(28) : fatal error 107: too many error messages on one line
And thats the code for my thing

i think u should give me a diff way to see if there running or not.. cause this aint working !!
Smokey485 is offline
Send a message via AIM to Smokey485 Send a message via MSN to Smokey485
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 19:25.


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