Witamy w Nieoficjalnym polskim support'cie AMX Mod X
Witamy w Nieoficjalnym polskim support'cie AMX Mod X, jak w większości społeczności internetowych musisz się zarejestrować aby móc odpowiadać lub zakładać nowe tematy, ale nie bój się to jest prosty proces w którym wymagamy minimalnych informacji.
|
amxbans_core
amxbans_main
atac
basebuilder
celltrie
chr_engine
cod
codmod
colorchat
credits
csdm
dHUD
diablo_nowe
entlib
expmod
expmod_achievements
expmod_mission
expmod_shop
fvault
ggpro
gunxpmod
ncodmod
netdb
orpheu
orpheu_advanced
orpheu_const
orpheu_memory
orpheu_stocks
pokemod
roulette
StripWeapons
zmvip
zombie_plague_advance
zombieplague
zombieplaguenew1.3
amxmisc
amxmodx
cellarray
chatcolor
core
datapack
file
float
hlsdk_const
lang
message_const
message_stocks
messages
newmenus
sorting
string
time
vault
vector
CSX
DoDX
Engine
call_think
client_impulse
client_kill
client_PostThink
client_PreThink
copy_keyvalue
create_entity
DispatchKeyValue
DispatchSpawn
drop_to_floor
eng_get_string
entity_count
entity_get_byte
entity_get_edict
entity_get_float
entity_get_int
entity_get_string
entity_get_vector
entity_range
entity_set_byte
entity_set_edict
entity_set_float
entity_set_int
entity_set_model
entity_set_origin
entity_set_size
entity_set_string
entity_set_vector
fake_touch
find_ent_by_class
find_ent_by_model
find_ent_by_owner
find_ent_by_target
find_ent_by_tname
find_ent_in_sphere
find_sphere_class
force_use
get_decal_index
get_global_edict
get_global_float
get_global_int
get_global_string
get_global_vector
get_grenade_id
get_info_keybuffer
get_keyvalue
get_speak
get_usercmd
halflife_time
is_in_viewcone
is_valid_ent
is_visible
pfn_keyvalue
pfn_playbackevent
pfn_spawn
pfn_think
pfn_touch
playback_event
point_contents
precache_event
radius_damage
register_impulse
register_think
register_touch
remove_entity
server_frame
set_lights
set_speak
set_usercmd
set_view
trace_forward
trace_hull
trace_line
trace_normal
traceresult
engine_stocks
Fakemeta
Fun
GeoIP
HamSandwich
JSON
NS
nVault
REAPI
hlsdk_const
reapi
reapi_engine
reapi_engine_const
reapi_gamedll
reapi_rechecker
reapi_reunion
reapi_vtc
Sockets
Sql
SQLx
TFCX
TSFUN
TSX
find_ent_by_owner
Dodane 16.07.2018 13:14 przez: Robiin#
Opis
Znajduje byt z konkretnym classname u ownera o indexie iOwner.
Składnia
find_ent_by_owner(iIndex, const szClass[], iOwner, iJghgType=0)
Zwracana wartość
Zwraca index bytu, lub 0 jeśli byt nie zostanie znaleziony.
Typ
NatywnyNotatki
iIndex - Index bytu od którego ma zacząć szukać enta
const szClass[] - Classname szukanego bytu
iOwner - Index ownera
iJghgType = 0 - Do czego ma być porównany string szClass:
- 0 - Classname
- 1 - Target
- 2 - Targetname
Przykład
new WeaponIndex = find_ent_by_owner(-1, "weapon_usp", id); if(!WeaponIndex) client_print(id, print_chat, "Gracz %i nie posiada USP.", id); else client_print(id, print_chat, "Gracz %i posiada USP.", id);
Uwagi
Index -1 w argumencie iIndex jest błędny. Błędny index pozwala na przeszukanie wszystkich indexów, co zapobiega ignorowaniu indexów mniejszych od podanej wartości.
Podłożone C4 z ownerem o indexie iOwner będzie miało tę samą nazwę klasy co granaty - "grenade".
Zakaz używania, kopiowania i innego wykorzystywania treści witryny oraz innych materiałów w niej zawartych bez zgody autorów. Wszelkie prawa zastrzeżone. © 2009-2024