aimkill
how do i make an function that kills a player if <playerid> aims at him, but onley if <playerid> is in an radius of let's say 10meters from him?
I allso wanna know how to use get_cvar_num()! (make the value of mp_freesetime a variable) hope you understood! |
Code:
Code:
new cvar_value = get_cvar_num("cvarname") |
how would i do if the user that <someone> is aiming @ onley gets killed if <someone> and <someone #2> is closer then 10 meters from eatchother?
|
Code:
|
Thx, v3x and twlight! :lol:
|
Quote:
Second, why not handle it completely in the engine, by simply making get_user_aiming do the work? It can't capture people that are not alive, and the last parameter is how far they are from one another. Thats just wasting CPU. |
Quote:
|
Exactly. So if you want it below ten meters, you set it to about 100, and it'll check to see if their within that radius.
12 * 3 * 3 = 108, 100 being a good approximate distance. |
uh.. any example twlight or avalanche?
(i readed at funcwiki.php but i didn't undrestand) |
If im reading what twilight and ava have said:
Code:
[EDIT] Fixed |
| All times are GMT -4. The time now is 14:25. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.