Comunitatea Salmen
Bun venit pe Forumul Sallmen Community !!!

Pentru a vedea tot forumu trebuie sa va inregistrati !!!

Sallmen Forum Community Welcome!

To see all forum you must register!

Comunitatea Salmen
Bun venit pe Forumul Sallmen Community !!!

Pentru a vedea tot forumu trebuie sa va inregistrati !!!

Sallmen Forum Community Welcome!

To see all forum you must register!

Comunitatea Salmen
Doriți să reacționați la acest mesaj? Creați un cont în câteva clickuri sau conectați-vă pentru a continua.

Salmen Comunity o comunitate de Counter-Strike, Metin2 etc.. .
 
AcasaPortalUltimele imaginiÎnregistrareConectare

 

 Pluginurii pt. iarna

In jos 
AutorMesaj
Vlade' <3
Membru Activ
Vlade' <3


masculin Numarul mesajelor : 715
Data nasterii : 09/12/1994
Data de inscriere : 21/07/2009
Varsta : 29
Localizare : Undeva pe planeta albastra

Pluginurii pt. iarna Empty
MesajSubiect: Pluginurii pt. iarna   Pluginurii pt. iarna EmptySam Feb 26, 2011 4:15 am

Snow - Ninge pe server:

Cod:
#include
#include

#define PLUGIN "Snow"
#define VERSION "1.0"
#define AUTHOR "anakin_cstrike"

public plugin_init()
  register_plugin(PLUGIN, VERSION, AUTHOR);
public plugin_precache()
  engfunc(EngFunc_CreateNamedEntity, engfunc(EngFunc_AllocString, "env_snow"));



Snow - Ninge pe server:


Cod:
 #include
#include

#define PLUGIN "Snow"
#define VERSION "1.0"
#define AUTHOR "anakin_cstrike"

public plugin_init()
  register_plugin(PLUGIN, VERSION, AUTHOR);
public plugin_precache()
  engfunc(EngFunc_CreateNamedEntity, engfunc(EngFunc_AllocString, "env_snow"));


Join IP - Mesaj la conectarea / deconectarea unui player:


Cod:
#include
#include
#include


#define MAXPLAYER 32

enum Color
{
  YELLOW = 1, // Yellow
  GREEN, // Green Color
  TEAM_COLOR, // Red, grey, blue
  GREY, // grey
  RED, // Red
  BLUE, // Blue
}

new TeamInfo;
new SayText;
new MaxSlots;

new TERRORIST[] = "TERRORIST";
new CT[] = "CT";
new NOTHING[] = "";
new SPEC[] = "SPECTATOR";

new bool:IsConnected[MAXPLAYER + 1];

public plugin_init()
{
  register_plugin("Join notice color", "1.0", "kp_uparrow");

  register_cvar("amx_joinmsg", "1") //1=connected only,2=connecting + connected,3=connecting connected disconnected

  TeamInfo = get_user_msgid("TeamInfo");
  SayText = get_user_msgid("SayText");
  MaxSlots = get_maxplayers();
}

public client_putinserver(player)
{
  IsConnected[player] = true;
  if(get_cvar_num("amx_joinmsg") >= 1) {
  new authid[35],user[32],ip[32],Country[33]
  get_user_name(player,user,31)
  get_user_ip(player,ip,31,1)
  get_user_authid(player,authid,34)
  geoip_country(ip,Country)

  ColorChat(0, GREEN, "%s ^x01(^x03%s^x01) (^x03%s^x01) a intrat un Spiridus (^x03%s^x01).",user,ip,authid,Country);
        client_cmd(0,"spk buttons/blip1")
  client_cmd(0,"hud_saytext_time 8")
  client_cmd(0,"hud_deathnotice_time 8") //lol just my own remove if needed
  }
}

public client_disconnect(player)
{
  if(get_cvar_num("amx_joinmsg") >= 3) {
  IsConnected[player] = false;
  new authid[35],user[32],ip[32],Country[33]
  get_user_name(player,user,31)
  get_user_ip(player,ip,31,1)
  get_user_authid(player,authid,34)
  geoip_country(ip,Country)

  ColorChat(0, GREEN, "%s ^x01(^x03%s^x01) (^x03%s^x01) a plecat sa imparta cadouri (^x03%s^x01).",user,ip,authid,Country);
  }
}
public client_authorized(player)
{
  IsConnected[player] = false;
  if(get_cvar_num("amx_joinmsg") >= 2) {
  new authid[35],user[32],ip[32],Country[33]
  get_user_name(player,user,31)
  get_user_ip(player,ip,31,1)
  get_user_authid(player,authid,34)
  geoip_country(ip,Country)

  ColorChat(0, GREEN, "%s ^x01(^x03%s^x01) (^x03%s^x01) vine Mosu` (^x03%s^x01).",user,ip,authid,Country);
  }
}


public ColorChat(id, Color:type, const msg[], {Float,Sql,Result,_}:...)
{
  static message[256];

  switch(type)
  {
      case YELLOW: // Yellow
      {
        message[0] = 0x01;
      }
      case GREEN: // Green
      {
        message[0] = 0x04;
      }
      default: // White, Red, Blue
      {
        message[0] = 0x03;
      }
  }

  vformat(message[1], 251, msg, 4);

  // Make sure message is not longer than 192 character. Will crash the server.
  message[192] = '^0';

  new team, did;

  if(id && IsConnected[id])
  {
      team = get_user_team(id);

      did = color_selection(id, type);
      show_message(id, id, MSG_ONE, message);

      if(did)
      {
        TeamSelection(id, team);
      }
  } else {
      new index = FindPlayer();

      if(index != -1)
      {
        team = get_user_team(index);

        did = color_selection(index, type);
        show_message(index, 0, MSG_ALL, message);

        if(did)
        {
            TeamSelection(index, team);
        }
      }
  }
}

show_message(id, index, type, message[])
{
  message_begin(type, SayText, {0, 0, 0}, index);
  write_byte(id);
  write_string(message);
  message_end();
}

Team_Info(id, team[])
{
  message_begin(MSG_ALL, TeamInfo);
  write_byte(id);
  write_string(team);
  message_end();

  return 1;
}

color_selection(index, Color:Type)
{
  switch(Type)
  {
      case RED:
      {
        return Team_Info(index, TERRORIST);
      }
      case BLUE:
      {
        return Team_Info(index, CT);
      }
      case GREY:
      {
        return Team_Info(index, NOTHING);
      }
  }

  return 0;
}

TeamSelection(index, team)
{
  switch(team)
  {
      case 0:
      {
        Team_Info(index, NOTHING);
      }
      case 1:
      {
        Team_Info(index, TERRORIST);
      }
      case 2:
      {
        Team_Info(index, CT);
      }
      case 3:
      {
        Team_Info(index, SPEC);
      }
  }
}

FindPlayer()
{
  new i = -1;

  while(i <= MaxSlots)
  {
      if(IsConnected[++i])
      {
        return i;
      }
  }

  return -1;
}


Cer instelat - Cerul este intunecat si instelat:


Cod:
 #include

public plugin_init()
{
  register_plugin("Plugin","1.0","AUTHOR")
  server_cmd("sv_skyname space")
}


Christmas C4C4 inlocuit de un bradut:


Cod:
#include
#include

#define PLUGIN "Christmas_C4"
#define VERSION  "1.0"
#define AUTHOR "Author"

#define CHRISTMAS "models/c14-cristmastree.mdl"

 public plugin_init()
 {
    register_plugin(PLUGIN,VERSION,AUTHOR);
    register_forward(FM_SetModel,"fw_setmodel");
 }

 
 public fw_setmodel(ent,model[])
 {
    if(equali(model,"models/w_c4.mdl"))
    {
        engfunc(EngFunc_SetModel,ent,CHRISTMAS);
        return FMRES_SUPERCEDE;
    }

    return FMRES_IGNORED;
 }
 
 public plugin_precache()
 {
    precache_model(CHRISTMAS);
 }
 
 public plugin_modules()
 {
    require_module("Fakemeta")
  }

Download model :[Trebuie sa fiti inscris si conectat pentru a vedea acest link]

Bull Christmass Oamenii au caciuli in cap si he-urile sunt inlocuite cu bulgari de zapada:


Cod:
#include
#include
#include
#include

new g_Enable;
new g_bwEnt[33];


new const model_nade_world[] = "models/snowballs/w_snowball.mdl"
new const model_nade_view[] = "models/snowballs/v_snowball.mdl"
new const model_trail[] = "sprites/laserbeam.spr"
new on
new rendering
new trail

//For snowball trail
new g_trail
public plugin_init() {
  register_plugin( "Christmass", "1.0", "anakin_cstrike" );
  register_cvar("santa_hat", "1.1", FCVAR_SERVER);
  g_Enable = register_cvar("amx_santahat", "1");
 
  RegisterHam(Ham_Spawn, "player", "fwHamPlayerSpawnPost", 1);
 
  on = register_cvar("snowballs_on","1")
  if(get_pcvar_num(on))
  {
      rendering = register_cvar("snowballs_rendering","1")
      trail = register_cvar("snowballs_trail","1")
     
      register_forward(FM_SetModel,"forward_model")
     
      register_event("CurWeapon","func_modelchange_hook","be","1=1","2=4","2=9","2=25")
  }
}

public plugin_precache()
{
  engfunc(EngFunc_PrecacheModel,model_nade_world)
  engfunc(EngFunc_PrecacheModel,model_nade_view)
  engfunc(EngFunc_PrecacheModel,model_nade_view)
 
  engfunc ( EngFunc_CreateNamedEntity, engfunc( EngFunc_AllocString, "env_snow" ) );
 
  g_trail = engfunc(EngFunc_PrecacheModel,model_trail)
 
  precache_model("models/santa_hat.mdl");
}

public fwHamPlayerSpawnPost( const player ) { // Cleanup by arkshine
  if ( get_pcvar_num( g_Enable ) && is_user_alive( player ) && !pev_valid ( g_bwEnt[ player ] ) ) {
      g_bwEnt[ player ] = engfunc ( EngFunc_CreateNamedEntity, engfunc( EngFunc_AllocString, "info_target" ) );
      set_pev( g_bwEnt[ player ], pev_movetype, MOVETYPE_FOLLOW );
      set_pev( g_bwEnt[ player ], pev_aiment, player );
      engfunc( EngFunc_SetModel, g_bwEnt[ player ], "models/santa_hat.mdl" );
  }
}

public func_modelchange_hook(id)
  set_pev(id, pev_viewmodel2,model_nade_view)
 
public forward_model(entity,const model[])
{
  if(!pev_valid(entity))
      return FMRES_IGNORED
 
  if ( model[ 0 ] == 'm' && model[ 7 ] == 'w' && model[ 8 ] == '_' )
  {
      switch ( model[ 9 ] )
      {
        case 'f' :
        {
            engfunc ( EngFunc_SetModel, entity, model_nade_world )
            if(get_pcvar_num(trail))
            {
              fm_set_trail(entity,255,255,255,255)
            }
            if(get_pcvar_num(rendering))
            {
              fm_set_rendering ( entity, kRenderFxGlowShell, 255, 255, 255, kRenderNormal, 255 )
            }
     
        }
        case 'h' :
        {
            engfunc ( EngFunc_SetModel, entity, model_nade_world )
            if(get_pcvar_num(trail))
            {
              fm_set_trail(entity,255,0,0,255)
            }
            if(get_pcvar_num(rendering))
            {
              fm_set_rendering ( entity, kRenderFxGlowShell, 255, 0, 0, kRenderNormal, 255 )
            }
        }
        case 's' :
        {
            engfunc ( EngFunc_SetModel, entity, model_nade_world )
            if(get_pcvar_num(trail))
            {
              fm_set_trail(entity,0,255,0,255)
            }
            if(get_pcvar_num(rendering))
            {
              fm_set_rendering ( entity, kRenderFxGlowShell, 0, 255, 0, kRenderNormal, 255 )
            }
        }
      }
      return FMRES_SUPERCEDE
  }
 
  return FMRES_IGNORED
}
stock fm_set_trail(id,r,g,b,bright)
{
  message_begin(MSG_BROADCAST, SVC_TEMPENTITY)
  write_byte(TE_BEAMFOLLOW)           
  write_short(id)       
  write_short(g_trail)     
  write_byte(25)           
  write_byte(5)             
  write_byte(r)           
  write_byte(g)             
  write_byte(b)             
  write_byte(bright)             
  message_end()
}

Descarca resurse :[Trebuie sa fiti inscris si conectat pentru a vedea acest link]

Christmas Knife - Cutitul este inlocuit cu o Counter-strike:



Cod:
#include
#include

#define PLUGIN "Knife Model's"
#define VERSION "0.2"
#define AUTHOR "P.Of.Pw"

#define V_MODEL "models/v_knife_craciun.mdl"


//#define KNIFE_W_MODEL "models/server/w_nume_model.mdl"

public plugin_init()
{
  register_plugin(PLUGIN, VERSION, AUTHOR)

  // HL Event CurWeapon
  register_event("CurWeapon", "Event_CurWeapon", "be","1=1");
 
  // FM_SetModel Fakemeta forward
  register_forward(FM_SetModel,"fw_setmodel"/*,1*/);
}


// Plugin Precache forward
public plugin_precache()
{
  // precache the required models
  engfunc(EngFunc_PrecacheModel,V_MODEL);
  //engfunc(EngFunc_PrecacheModel,P_MODEL);
  //engfunc(EngFunc_PrecacheModel,W_MODEL);
}


 
public Event_CurWeapon(id)
{   
  if(!is_user_alive(id))
      return PLUGIN_CONTINUE;
 
  new weaponID = read_data(2);

  if(weaponID != CSW_KNIFE) // Inportat inlocuti Knife daca vrei sa puneti o arma.. ex: Deagle deci CSW_Deagle
      return PLUGIN_CONTINUE;

  set_pev(id, pev_viewmodel2, V_MODEL);
  //set_pev(id, pev_weaponmodel2, P_MODEL);
 
  return PLUGIN_CONTINUE;
}



public fw_setmodel(ent,const model[])
{
  // check if isn't a valid model
  if(!pev_valid(ent))
      return FMRES_IGNORED;
   
  // if isn't w_knife model
  //if(strcmp(KNIFE_W_MODEL,model) )
  //  return FMRES_IGNORED;
 
  // get ent classname
  static classname[32]
  pev(ent,pev_classname,classname,31);
 
 
  if(!strcmp(classname, "weaponbox") || !strcmp(classname, "armoury_entity") || !strcmp(classname, "grenade"))
  {
      // set model
      //engfunc(EngFunc_SetModel, ent, W_MODEL);
      return FMRES_SUPERCEDE;
  }
 
  return FMRES_IGNORED;
}
Sus In jos
https://salmen.all-up.com
 
Pluginurii pt. iarna
Sus 
Pagina 1 din 1

Permisiunile acestui forum:Nu puteti raspunde la subiectele acestui forum
Comunitatea Salmen :: Counter-Strike :: Counter-Strike 1.6 :: Resurse :: Pluginuri-AmxModX-
Mergi direct la: