AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   not working in game (https://forums.alliedmods.net/showthread.php?t=29217)

Mini_Midget 06-01-2006 08:24

not working in game
 
this is just part of a mod i'm doing atm but i can't seem to make it
headshots only
Code:
register_cvar("amx_zbot_hs","1") public headshot() {     if(get_cvar_num("amx_zbot_hs") == 1)         {         set_user_hitzones(0 ,0, 2)         client_print(0, print_chat, "[AMXX]  Headshot only mode has been ^x04ENABLED")     }     else if(get_cvar_num("amx_zbot_hs") == 0)         {         set_user_hitzones(0, 0, 255)         client_print(0, print_chat, "[AMXX]  Headshot only mode has been ^x04DISABLED")     }     return PLUGIN_HANDLED }
i don't get any compile errors or such but in game, i can shoot the rest of the body and not just the head
yeah... i know i ain't the best scripter but getting there

Hawk552 06-01-2006 08:25

set_user_hitzones is broken, good luck

Mini_Midget 06-01-2006 08:27

what'd you mean? don't understand

Hawk552 06-01-2006 08:38

:arrow:

http://forums.alliedmods.net/showthread.php?t=24982
http://forums.alliedmods.net/showthread.php?t=16415


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

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