knife_abilities

Cereri programare pluginuri Inexistente! (noi)
Post Reply
ALEX
Nou Venit
Nou Venit
Posts: 10
Joined: Thu Jan 28, 2010 12:09 pm

knife_abilities

Post by ALEX »

De unde fac rost de pluginu knife_abilities da sa mearga downloadu ca peste tot lam cautat si nu a mers linkul .
User avatar
CryWolf
Sys Admin
Sys Admin
Posts: 462
Joined: Tue Dec 15, 2009 11:32 am
Detinator Steam: Da
Cunostinte CS: Excelente
Reputatie: Detinator
Webmaster
Scripter
Trance Fan
Location: Botosani
Contact:

Re: knife_abilities

Post by CryWolf »

Salut,

Vezi asta:

Code: Select all

#include <amxmodx>
#include <fakemeta>

#define PLUGIN "New Plugin"
#define VERSION "1.0"
#define AUTHOR "Author"

public plugin_init ( ) {
   register_plugin(PLUGIN, VERSION, AUTHOR)
   
   register_event("CurWeapon", "Event_CurWeapon","be", "1=1")
   register_event("DeathMsg","Event_DeathMsg","a")
}

public Event_CurWeapon(id)
{
   new wpid = get_user_weapon(id,wpid,wpid)
   
   if(wpid == CSW_KNIFE)
   {
      fm_set_user_rendering(id,kRenderFxNone,0,0,0,kRenderTransAlpha,0)
   }
   else
   {
      fm_set_user_rendering(id,kRenderFxNone,0,0,0,kRenderTransAlpha,255)
   }
}
      
public client_disconnect(id)
{
   fm_set_user_rendering(id,kRenderFxNone,0,0,0,kRenderTransAlpha,255)
}

public Event_DeathMsg(id)
{
   fm_set_user_rendering(id,kRenderFxNone,0,0,0,kRenderTransAlpha,255)
}

stock fm_set_user_rendering(index, fx = kRenderFxNone, r = 255, g = 255, b = 255, render = kRenderNormal, amount = 16)
{
   new Float:RenderColor[3]
   RenderColor[0] = float(r)
   RenderColor[1] = float(g)
   RenderColor[2] = float(b)

   set_pev(index, pev_renderfx, fx)
   set_pev(index, pev_rendercolor, RenderColor)
   set_pev(index, pev_rendermode, render)
   set_pev(index, pev_renderamt, float(amount))

   return PLUGIN_HANDLED;
} 
- Daca ai AMX Mod X 1.7 ai nevoie si de asta: -> Modul: Hamsandwich (AMXX) <-

Sucess!
Info: NU IMI DATI PM PENTRU CERERI AJUTOR ETC (NU RASPUND) FOLOSITI FORUMUL.
Image

Image
CUM SA NU LUPTI PENTRU IUBIRE ????
Daca lupti,inseamna ca vrei sa castigi ceva.Iubirea nu-i o miza.
Post Reply