From 7aa31c764dd86d944a7b75e75fbd8e923e1aa11e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Johnny=20Bergstr=C3=B6m?= Date: Wed, 17 Nov 2004 07:33:29 +0000 Subject: [PATCH] Fixed some mistakes and typos. --- plugins/include/engine_stocks.inc | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) diff --git a/plugins/include/engine_stocks.inc b/plugins/include/engine_stocks.inc index f45c777e..3fe61499 100755 --- a/plugins/include/engine_stocks.inc +++ b/plugins/include/engine_stocks.inc @@ -11,6 +11,14 @@ #endif #define _engine_stocks_included +#if !defined _amxmodx_included + #include +#endif + +#if !defined _engine_included + #include +#endif + stock fakedamage(idvictim,szClassname[],Float:takedmgdamage,damagetype) { new entity = create_entity("trigger_hurt") @@ -118,7 +126,7 @@ stock get_brush_entity_origin(ent, Float:orig[3]) /* Remove entity by name */ stock remove_entity_name(eName[]) { - new iEntity = FindEntity(-1, eName) + new iEntity = find_ent_by_class(-1, eName) while (iEntity > 0) { remove_entity(iEntity) @@ -155,7 +163,7 @@ stock make_deathmsg(killer,victim,headshot,weapon[]) message_begin(MSG_ALL,get_user_msgid("DeathMsg"),{0,0,0},0) write_byte( killer ) write_byte( victim ) - + new mod_name[32] get_modname(mod_name,31) if (equal(mod_name,"cstrike") || equal(mod_name,"czero") || equal(mod_name,"csv15") || equal(mod_name,"cs13")) @@ -188,8 +196,8 @@ stock user_silentkill(index) return 1 } -/* Set endering of an entity */ -stock set_rendering(index,fx=kRenderFxNone, r=255,g=255,b=255, render=kRenderNormal,amount=16) +/* Set rendering of an entity */ +stock set_rendering(index, fx=kRenderFxNone, r=255, g=255, b=255, render=kRenderNormal, amount=16) { entity_set_int(index,EV_INT_renderfx,fx) new Float:RenderColor[3]