AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   How to check if users running :\ (https://forums.alliedmods.net/showthread.php?t=9396)

Smokey485 01-17-2005 13:52

How to check if users running :\
 
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?

XxAvalanchexX 01-17-2005 15:18

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.

FeuerSturm 01-17-2005 15:29

or just use IN_RUN :wink:

Smokey485 01-17-2005 15:49

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){

Peli 01-17-2005 16:54

I think ...
Code:
if(get_user_button(id) = IN_FORWARD) {    // code }
Code:
if(IN_RUN(id) {    // code }

Smokey485 01-17-2005 16:58

Uh, theres something wrong with my engine_stocks.inc cause its getting a frekin error in the compile thing for the enginestock

Peli 01-17-2005 17:04

Show us the error.

Smokey485 01-17-2005 17:05

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 :P im just a minute away. keep refreshing

Peli 01-17-2005 17:11

Looks like you didn't include an include file that you need to use for some natives in your code.

Smokey485 01-17-2005 17:13

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

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!!! :evil:

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 !!


All times are GMT -4. The time now is 19:25.

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