AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   cl_backspeed error (https://forums.alliedmods.net/showthread.php?t=29573)

Mini_Midget 06-08-2006 05:56

cl_backspeed error
 
i'm getting this error when i try to compile this part of my script...
Code:

/home/users/amxmodx/tmp3/phpDIC9UD.sma(181) : error 017: undefined symbol "cl_backspeed"
i'm trying to make it that CT's have a set backspeed ONLY
and here is the script...
Code:
register_cvar("amx_zbot_backspeed", "220.0") register_event("CurWeapon","backspeed","be","1=1") public backspeed(id) {     if (is_user_alive(id) && cs_get_user_team(id) == CS_TEAM_CT) {         client_cmd(id, cl_backspeed(get_cvar_num("amx_zbot_backspeed")))     }     return PLUGIN_HANDLED }

v3x 06-08-2006 06:44

Code:
#include <amxmodx> #include <cstrike> public plugin_init() {     register_cvar("amx_zbot_backspeed", "220.0")     register_event("CurWeapon","backspeed","be","1=1") } public backspeed(id) {     new CsTeams:team = cs_get_user_team(id)     if (is_user_alive(id) && team == CS_TEAM_CT) {         client_cmd(id, "cl_backspeed %d" , get_cvar_num("amx_zbot_backspeed"))     } }

Mini_Midget 06-08-2006 07:19

thxs v3x,
i can always count on you :wink:


All times are GMT -4. The time now is 16:35.

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