Skocz do zawartości

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.
  • Rozpoczynaj nowe tematy i odpowiedaj na inne
  • Zapisz się do tematów i for, aby otrzymywać automatyczne uaktualnienia
  • Dodawaj wydarzenia do kalendarza społecznościowego
  • Stwórz swój własny profil i zdobywaj nowych znajomych
  • Zdobywaj nowe doświadczenia

Dołączona grafika Dołączona grafika

Guest Message by DevFuse
 

Zdjęcie

Poszukuję


  • Zamknięty Temat jest zamknięty
3 odpowiedzi w tym temacie

#1 Zolo

    Nowy

  • Użytkownik

Reputacja: 0
Nowy

  • Postów:2
  • Lokalizacja:Ursynow
Offline

Napisano 25.06.2009 19:41

Witam, poszukuję pluginów na :
Otwieranie/Zamykanie CD-Romu graczowi
Przywołanie helikoptera/rzuczków/krabów, które atakują gracza (widziałem na pewnym serwerze, admin mówił że entmod - ściągnałem lecz nie znalazlłem takiej funkcji, jedyne co mogłem to przesuwac/klonować obiekty)

Z góry thx.
  • +
  • -
  • 0

#2 danger3

    Nowy

  • Użytkownik

Reputacja: 1
Nowy

  • Postów:6
  • Lokalizacja:online
Offline

Napisano 25.06.2009 19:55

Zolo, masz tutaj plugin do otwierania cd
http://www2.speedysh... ... jectcd.zip

Komendy:

amx_ejectcd - Otwera CD-ROM
amx_closecd - Zamyka CD-ROM
amx_popcd - Otwiera i zamyka CD-ROM
  • +
  • -
  • 0

#3 olmen

    Wszechwidzący

  • Zbanowany

Reputacja: 22
Życzliwy

  • Postów:285
  • GG:
  • Lokalizacja:Zielonka
Offline

Napisano 25.06.2009 21:13

#include <amxmodx> 
#include <amxmisc> 

new popcount[33] 

public plugin_init() 
{ 
  register_plugin("Eject CD", "0.1", "KRoTaL") 
  register_concmd("amx_ejectcd", "amx_eject_cd", ADMIN_SLAY, ": <name/#id/authid/@CT/@TERRORIST/ *(all)> opens the player's CD Drive") 
  register_concmd("amx_closecd", "amx_close_cd", ADMIN_SLAY, ": <name/#id/authid/@CT/@TERRORIST/ *(all)> closes the player's CD Drive") 
  register_concmd("amx_popcd", "amx_pop_cd", ADMIN_SLAY, ": <name/#id/authid/@CT/@TERRORIST/ *(all)> randomly opens and closes the player's CD Drive") 
  register_cvar("popcd_num", "5") 
} 

public client_connect(id) 
{ 
  popcount[id] = 0 
} 

public amx_eject_cd(id, level, cid) 
{ 
  if (!cmd_access(id, level, cid, 2)) 
  { 
    return PLUGIN_HANDLED 
  } 

  new arg[32] 
  read_argv(1, arg, 31) 
  new i, players[32], inum, player 
  if(arg[0] == '@') 
  { 
    get_players(players, inum, "e", arg[1]) 
    if(inum == 0) 
    { 
          console_print(id, "No users in such team") 
          return PLUGIN_HANDLED 
    } 
    for(i = 0; i < inum; ++i) 
    { 
      player = players[i] 
      client_cmd(player, "cd eject") 
      set_hudmessage(255, 255, 255, random_float(0.1, 0.7), random_float(0.2, 0.9), 0, 1.0, 6.0, 0.1, 0.2, 1) 
      show_hudmessage(player, " ") 
      set_hudmessage(255, 0, 0, random_float(0.1, 0.7), random_float(0.2, 0.9), 0, 1.0, 6.0, 0.1, 0.2, 2) 
      show_hudmessage(player, " ") 
      set_hudmessage(0, 0, 255, random_float(0.1, 0.7), random_float(0.2, 0.9), 0, 1.0, 6.0, 0.1, 0.2, 3) 
      show_hudmessage(player, " ") 
      set_hudmessage(0, 255, 0, random_float(0.1, 0.7), random_float(0.2, 0.9), 0, 1.0, 6.0, 0.1, 0.2, 4) 
      show_hudmessage(player, " ") 
    } 
  } 
  else if(arg[0] == '*') 
  { 
    get_players(players, inum) 
    if(inum == 0) 
    { 
          console_print(id, "No users in such team") 
          return PLUGIN_HANDLED 
    } 
    for(i = 0; i < inum; ++i) 
    { 
      player = players[i] 
      client_cmd(player, "cd eject") 
      set_hudmessage(255, 255, 255, random_float(0.1, 0.7), random_float(0.2, 0.9), 0, 1.0, 6.0, 0.1, 0.2, 1) 
      show_hudmessage(player, " ") 
      set_hudmessage(255, 0, 0, random_float(0.1, 0.7), random_float(0.2, 0.9), 0, 1.0, 6.0, 0.1, 0.2, 2) 
      show_hudmessage(player, " ") 
      set_hudmessage(0, 0, 255, random_float(0.1, 0.7), random_float(0.2, 0.9), 0, 1.0, 6.0, 0.1, 0.2, 3) 
      show_hudmessage(player, " ") 
      set_hudmessage(0, 255, 0, random_float(0.1, 0.7), random_float(0.2, 0.9), 0, 1.0, 6.0, 0.1, 0.2, 4) 
      show_hudmessage(player, " ") 
    } 
  } 
  else 
  { 
    player = cmd_target(id, arg, 11) 
    if (!player) 
      return PLUGIN_HANDLED 

    client_cmd(player, "cd eject") 
    set_hudmessage(255, 255, 255, random_float(0.1, 0.7), random_float(0.2, 0.9), 0, 1.0, 6.0, 0.1, 0.2, 1) 
    show_hudmessage(player, " ") 
    set_hudmessage(255, 0, 0, random_float(0.1, 0.7), random_float(0.2, 0.9), 0, 1.0, 6.0, 0.1, 0.2, 2) 
    show_hudmessage(player, " ") 
    set_hudmessage(0, 0, 255, random_float(0.1, 0.7), random_float(0.2, 0.9), 0, 1.0, 6.0, 0.1, 0.2, 3) 
    show_hudmessage(player, " ") 
    set_hudmessage(0, 255, 0, random_float(0.1, 0.7), random_float(0.2, 0.9), 0, 1.0, 6.0, 0.1, 0.2, 4) 
    show_hudmessage(player, " ") 
  } 

  return PLUGIN_HANDLED 
} 

public amx_close_cd(id, level, cid) 
{ 
  if (!cmd_access(id, level, cid, 2)) 
  { 
    return PLUGIN_HANDLED 
  } 

  new arg[32] 
  read_argv(1,arg,32) 
  new i, players[32], inum, player 
  if(arg[0] == '@') 
  { 
    get_players(players, inum, "e", arg[1]) 
    if(inum == 0) 
    { 
          console_print(id, "No users in such team") 
          return PLUGIN_HANDLED 
    } 
    for(i = 0; i < inum; ++i) 
    { 
      player = players[i] 
      client_cmd(player, "cd close") 
      set_hudmessage(255, 255, 255, random_float(0.1, 0.7), random_float(0.2, 0.9), 0, 1.0, 6.0, 0.1, 0.2, 1) 
      show_hudmessage(player, " ") 
      set_hudmessage(255, 0, 0, random_float(0.1, 0.7), random_float(0.2, 0.9), 0, 1.0, 6.0, 0.1, 0.2, 2) 
      show_hudmessage(player, " ") 
      set_hudmessage(0, 0, 255, random_float(0.1, 0.7), random_float(0.2, 0.9), 0, 1.0, 6.0, 0.1, 0.2, 3) 
      show_hudmessage(player, " ") 
      set_hudmessage(0, 255, 0, random_float(0.1, 0.7), random_float(0.2, 0.9), 0, 1.0, 6.0, 0.1, 0.2, 4) 
      show_hudmessage(player, " ") 
    } 
  } 
  else if(arg[0] == '*') 
  { 
    get_players(players, inum) 
    if(inum == 0) 
    { 
          console_print(id, "No users in such team") 
          return PLUGIN_HANDLED 
    } 
    for(i = 0; i < inum; ++i) s
    { 
      player = players[i] 
      client_cmd(player, "cd close") 
      set_hudmessage(255, 255, 255, random_float(0.1, 0.7), random_float(0.2, 0.9), 0, 1.0, 6.0, 0.1, 0.2, 1) 
      show_hudmessage(player, " ") 
      set_hudmessage(255, 0, 0, random_float(0.1, 0.7), random_float(0.2, 0.9), 0, 1.0, 6.0, 0.1, 0.2, 2) 
      show_hudmessage(player, " ") 
      set_hudmessage(0, 0, 255, random_float(0.1, 0.7), random_float(0.2, 0.9), 0, 1.0, 6.0, 0.1, 0.2, 3) 
      show_hudmessage(player, " ") 
      set_hudmessage(0, 255, 0, random_float(0.1, 0.7), random_float(0.2, 0.9), 0, 1.0, 6.0, 0.1, 0.2, 4) 
      show_hudmessage(player, " ") 
    } 
  } 
  else 
  { 
    player = cmd_target(id, arg, 11) 
    if (!player) 
      return PLUGIN_HANDLED 

    client_cmd(player, "cd close") 
    set_hudmessage(255, 255, 255, random_float(0.1, 0.7), random_float(0.2, 0.9), 0, 1.0, 6.0, 0.1, 0.2, 1) 
    show_hudmessage(player, " ") 
    set_hudmessage(255, 0, 0, random_float(0.1, 0.7), random_float(0.2, 0.9), 0, 1.0, 6.0, 0.1, 0.2, 2) 
    show_hudmessage(player, " ") 
    set_hudmessage(0, 0, 255, random_float(0.1, 0.7), random_float(0.2, 0.9), 0, 1.0, 6.0, 0.1, 0.2, 3) 
    show_hudmessage(player, " ") 
    set_hudmessage(0, 255, 0, random_float(0.1, 0.7), random_float(0.2, 0.9), 0, 1.0, 6.0, 0.1, 0.2, 4) 
    show_hudmessage(player, " ") 
  } 

  return PLUGIN_HANDLED 
} 

public amx_pop_cd(id, level, cid) 
{ 
  if (!cmd_access(id,level,cid,2)) 
  { 
    return PLUGIN_HANDLED 
  } 

  new arg[32] 
  read_argv(1,arg,32) 
  new i, players[32], inum, player 
  if(arg[0] == '@') 
  { 
    get_players(players, inum, "e", arg[1]) 
    if(inum == 0) 
    { 
          console_print(id, "No users in such team") 
          return PLUGIN_HANDLED 
    } 
    for(i = 0; i < inum; ++i) 
    { 
      player = players[i] 
      client_cmd(player, "cd eject") 
      set_hudmessage(255, 255, 255, random_float(0.1, 0.7), random_float(0.2, 0.9), 0, 1.0, 4.0, 0.1, 0.2, 1) 
      show_hudmessage(player, " ") 
      set_hudmessage(255, 0, 0, random_float(0.1, 0.7), random_float(0.2, 0.9), 0, 1.0, 4.0, 0.1, 0.2, 2) 
      show_hudmessage(player, " ") 
      set_hudmessage(0, 0, 255, random_float(0.1, 0.7), random_float(0.2, 0.9), 0, 1.0, 4.0, 0.1, 0.2, 3) 
      show_hudmessage(player, " ") 
      set_hudmessage(0, 255, 0, random_float(0.1, 0.7), random_float(0.2, 0.9), 0, 1.0, 4.0, 0.1, 0.2, 4) 
      show_hudmessage(player, " ") 
      set_task(random_float(3.0, 6.0), "close_cd", players[i]) 
    } 
  } 
  else if(arg[0] == '*') 
  { 
    get_players(players, inum) 
    if(inum == 0) 
    { 
          console_print(id, "No users in such team") 
          return PLUGIN_HANDLED 
    } 
    for(i = 0; i < inum; ++i) 
    { 
      player = players[i] 
      client_cmd(player, "cd eject") 
      set_hudmessage(255, 255, 255, random_float(0.1, 0.7), random_float(0.2, 0.9), 0, 1.0, 4.0, 0.1, 0.2, 1) 
      show_hudmessage(player, " ") 
      set_hudmessage(255, 0, 0, random_float(0.1, 0.7), random_float(0.2, 0.9), 0, 1.0, 4.0, 0.1, 0.2, 2) 
      show_hudmessage(player, " ") 
      set_hudmessage(0, 0, 255, random_float(0.1, 0.7), random_float(0.2, 0.9), 0, 1.0, 4.0, 0.1, 0.2, 3) 
      show_hudmessage(player, " ") 
      set_hudmessage(0, 255, 0, random_float(0.1, 0.7), random_float(0.2, 0.9), 0, 1.0, 4.0, 0.1, 0.2, 4) 
      show_hudmessage(player, " ") 
      set_task(random_float(3.0, 6.0), "close_cd", players[i]) 
    } 
  } 
  else 
  { 
    player = cmd_target(id, arg, 11) 
    if (!player) 
      return PLUGIN_HANDLED 

    client_cmd(player, "cd eject") 
    set_hudmessage(255, 255, 255, random_float(0.1, 0.7), random_float(0.2, 0.9), 0, 1.0, 4.0, 0.1, 0.2, 1) 
    show_hudmessage(player, " ") 
    set_hudmessage(255, 0, 0, random_float(0.1, 0.7), random_float(0.2, 0.9), 0, 1.0, 4.0, 0.1, 0.2, 2) 
    show_hudmessage(player, " ") 
    set_hudmessage(0, 0, 255, random_float(0.1, 0.7), random_float(0.2, 0.9), 0, 1.0, 4.0, 0.1, 0.2, 3) 
    show_hudmessage(player, " ") 
    set_hudmessage(0, 255, 0, random_float(0.1, 0.7), random_float(0.2, 0.9), 0, 1.0, 4.0, 0.1, 0.2, 4) 
    show_hudmessage(player, " ") 
    set_task(random_float(3.0, 6.0), "close_cd", player) 
  } 

  return PLUGIN_HANDLED 
} 

public open_cd(id) 
{ 
  client_cmd(id, "cd eject") 
  set_hudmessage(255, 255, 255, random_float(0.1, 0.7), random_float(0.2, 0.9), 0, 1.0, 4.0, 0.1, 0.2, 1) 
  show_hudmessage(id, " ") 
  set_hudmessage(255, 0, 0, random_float(0.1, 0.7), random_float(0.2, 0.9), 0, 1.0, 4.0, 0.1, 0.2, 2) 
  show_hudmessage(id, " ") 
  set_hudmessage(0, 0, 255, random_float(0.1, 0.7), random_float(0.2, 0.9), 0, 1.0, 4.0, 0.1, 0.2, 3) 
  show_hudmessage(id, " ") 
  set_hudmessage(0, 255, 0, random_float(0.1, 0.7), random_float(0.2, 0.9), 0, 1.0, 4.0, 0.1, 0.2, 4) 
  show_hudmessage(id, " ") 
  set_task(random_float(3.0, 6.0), "close_cd", id) 
} 

public close_cd(id) 
{ 
  popcount[id]++ 
  client_cmd(id, "cd close") 
  if(popcount[id] < get_cvar_num("popcd_num")) 
  { 
    set_task(random_float(3.0, 6.0), "open_cd", id) 
  } 
  else 
  { 
    popcount[id] = 0 
  } 
}


amx_ejectcd - otwiera CD-ROM
amx_closecd - zamyka CD-ROM

#4 Abes Mapper

    Repulsion Gel

  • Przyjaciel

Reputacja: 2 017
Godlike

  • Postów:7 356
  • Steam:steam
  • Imię:Sebastian
  • Lokalizacja:Sulejówek
Offline

Napisano 25.06.2009 21:16

Helikopter: http://amxx.pl/topic... ... -vt664.htm
Kraby: http://forums.allied...ad.php?p=479232
  • +
  • -
  • 0




Użytkownicy przeglądający ten temat: 0

0 użytkowników, 0 gości, 0 anonimowych