find_ent_by_class problems
here's my little issue:
Code:
as soon usp is dropped, the remove task performs and the server crashes. any suggestions? :? |
Yes. I don't recommend "coding" such thing - it's not that simple as MOST of the coders think. Just use fm_strip_user_gun from the Fakemeta Utilities or search for my strip_user_gun function.
|
how should i then use this function, like this?
Code:
|
You should specify the player's index:
Code:
|
Code:
|
so, used fm_strip_user_gun as you said:
Code:
but this is only performed on one bot. why? |
with get players you can get just alive bots with
Code:
Also you don't do <= pnum is < pnum And don't use new id = ... inside of a loop its horrible practice. Causes more load. |
You can't strip vest(helm) and grenades with that function, it's for guns.
If you want to strip everything except knife why don't you use strip_user_weapons and then give_item knife? |
| All times are GMT -4. The time now is 16:31. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.