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

Problem z FTP i z Vipem


  • Nie możesz napisać tematu
  • Zaloguj się, aby dodać odpowiedź
12 odpowiedzi w tym temacie

#1 Fokus Smok

    Nowy

  • Użytkownik

Reputacja: -3
Nowy

  • Postów:7
  • Imię:Fokus
  • Lokalizacja:Polska
Offline

Napisano 09.05.2012 12:52

To tak z kolega chce zalozyc serwer HnS 100aa. Chcielibysmy sie dowiedziec jak wgrac taka paczke do Ftp. Gotowa paczke HnS mam tylko ze w ftp nie wiem czy mam usuwac pliki w addons, models i sound czy je tylko podmienic?. Oraz jak wgrac vipa, a przy okazji czy moglibyscie sprawdzic czy to jest prawidlowy kod na vipa

#include <amxmodx>
#include <cstrike>
#include <fun>
#include <hamsandwich>
#define PLUGIN "Hns Vip"
#define VERSION "1.0"
#define AUTHOR "speedkill"
#define ADMIN_CHECK ADMIN_LEVEL_H
new health_add
new health_hs_add
new health_max
new nKiller
new nKiller_hp
new nHp_add
new nHp_max
static const COLOR[] = "^x04"
static const CONTACT[] = ""
new maxplayers
new gmsgSayText
public plugin_init() {
register_plugin(PLUGIN, VERSION, AUTHOR)
health_add = register_cvar("amx_vip_hp", "15")
health_hs_add = register_cvar("amx_vip_hp_hs", "25")
health_max = register_cvar("amx_vip_max_hp", "130")
register_event("DeathMsg", "death", "a", "1>0")
register_clcmd("say /vip","motd")
register_clcmd("say", "handle_say")
maxplayers = get_maxplayers()
gmsgSayText = get_user_msgid("SayText")
RegisterHam(Ham_Spawn, "player", "abc", 1)
}
public plugin_precache() {
precache_model("models/player/hnsvip/hnsvip.mdl")
}
public client_connect(id) {
if(get_user_flags(id) & ADMIN_LEVEL_H)
{
  new name[32]
  get_user_name(id, name, 31)
  set_hudmessage(255, 0, 0, 0.1, 0.3, 0, 6.0, 12.0)
  show_hudmessage(0, "Wbija vip %s",name)
}
}
public abc(id)
{
if(is_user_alive(id) && get_user_flags(id) & ADMIN_LEVEL_H && get_user_team(id) == 1)
{
 
  give_item(id, "weapon_smokegrenade")
  give_item(id, "weapon_flashbang")
  give_item(id, "weapon_hegrenade")
  model(id)
}
}
public death()
{
nKiller = read_data(1)

if ( (read_data(3) == 1) && (read_data(5) == 0) )
{
  nHp_add = get_pcvar_num (health_hs_add)
}
else
  nHp_add = get_pcvar_num (health_add)
nHp_max = get_pcvar_num (health_max)
if(!(get_user_flags(nKiller) & ADMIN_LEVEL_H))
  return;

nKiller_hp = get_user_health(nKiller)
nKiller_hp += nHp_add
if (nKiller_hp > nHp_max) nKiller_hp = nHp_max
set_user_health(nKiller, nKiller_hp)

}
public model(id) {
new CsTeams:userTeam = cs_get_user_team(id)
if (userTeam == CS_TEAM_T) {
  cs_set_user_model(id, "hnsvip")
}
else if(userTeam == CS_TEAM_CT) {
  cs_set_user_model(id, "hnsvip")
}
else {
  cs_reset_user_model(id)
}
}
public motd(id) {
show_motd(id,"vip.txt","Hns Vip")
}
public handle_say(id) {
new said[192]
read_args(said,192)
if( ( containi(said, "who") != -1 && containi(said, "/vips") != -1 ) || contain(said, "/vips") != -1 )
  set_task(0.1,"print_adminlist",id)
return PLUGIN_CONTINUE
}
public print_adminlist(user)
{
new adminnames[33][32]
new message[256]
new contactinfo[256], contact[112]
new id, count, x, len

for(id = 1 ; id <= maxplayers ; id++)
  if(is_user_connected(id))
  if(get_user_flags(id) & ADMIN_CHECK)
  get_user_name(id, adminnames[count++], 31)

len = format(message, 255, "%s Vipy online: ",COLOR)
if(count > 0) {
  for(x = 0 ; x < count ; x++) {
   len += format(message[len], 255-len, "%s%s ", adminnames[x], x < (count-1) ? ", ":"")
   if(len > 96 ) {
    print_message(user, message)
    len = format(message, 255, "%s ",COLOR)
   }
  }
  print_message(user, message)
}
else {
  len += format(message[len], 255-len, "Brak vipow online")
  print_message(user, message)
}

get_cvar_string("amx_contactinfo", contact, 63)
if(contact[0])  {
  format(contactinfo, 111, "%s Contact Server Admin -- %s", COLOR, contact)
  print_message(user, contactinfo)
}
}
print_message(id, msg[]) {
message_begin(MSG_ONE, gmsgSayText, {0,0,0}, id)
write_byte(id)
write_string(msg)
message_end()
}

  • +
  • -
  • 0

#2 JustBeFine

    Profesjonalista

  • Zbanowany

Reputacja: 66
Pomocny

  • Postów:162
  • GG:
  • Steam:steam
  • Imię:Paweł
  • Lokalizacja:Holandia
Offline

Napisano 09.05.2012 13:17

Plugin się kompiluje więc raczej działa.

Co do wgrania paczki to tylko musisz podmienić.

Jak plugin nie będzie działał prawidłowo to pisz.
Nie mam pomysłu na sygnę :<

#3 Fokus Smok

    Nowy

  • Autor tematu
  • Użytkownik

Reputacja: -3
Nowy

  • Postów:7
  • Imię:Fokus
  • Lokalizacja:Polska
Offline

Napisano 09.05.2012 13:23

Tak wlasnie tylko mozesz mi powiedziec jak to skomlikowac ?
  • +
  • -
  • 0

#4 JustBeFine

    Profesjonalista

  • Zbanowany

Reputacja: 66
Pomocny

  • Postów:162
  • GG:
  • Steam:steam
  • Imię:Paweł
  • Lokalizacja:Holandia
Offline

Napisano 09.05.2012 13:27

Wchodzisz na: http://amxx.pl/kompilator/

Wklejasz to w puste okno.
#include <amxmodx>
#include <cstrike>
#include <fun>
#include <hamsandwich>
#define PLUGIN "Hns Vip"
#define VERSION "1.0"
#define AUTHOR "speedkill"
#define ADMIN_CHECK ADMIN_LEVEL_H
new health_add
new health_hs_add
new health_max
new nKiller
new nKiller_hp
new nHp_add
new nHp_max
static const COLOR[] = "^x04"
new maxplayers
new gmsgSayText
public plugin_init() {
register_plugin(PLUGIN, VERSION, AUTHOR)
health_add = register_cvar("amx_vip_hp", "15")
health_hs_add = register_cvar("amx_vip_hp_hs", "25")
health_max = register_cvar("amx_vip_max_hp", "130")
register_event("DeathMsg", "death", "a", "1>0")
register_clcmd("say /vip","motd")
register_clcmd("say", "handle_say")
maxplayers = get_maxplayers()
gmsgSayText = get_user_msgid("SayText")
RegisterHam(Ham_Spawn, "player", "abc", 1)
}
public plugin_precache() {
precache_model("models/player/hnsvip/hnsvip.mdl")
}
public client_connect(id) {
if(get_user_flags(id) & ADMIN_LEVEL_H)
{
new name[32]
get_user_name(id, name, 31)
set_hudmessage(255, 0, 0, 0.1, 0.3, 0, 6.0, 12.0)
show_hudmessage(0, "Wbija vip %s",name)
}
}
public abc(id)
{
if(is_user_alive(id) && get_user_flags(id) & ADMIN_LEVEL_H && get_user_team(id) == 1)
{

give_item(id, "weapon_smokegrenade")
give_item(id, "weapon_flashbang")
give_item(id, "weapon_hegrenade")
model(id)
}
}
public death()
{
nKiller = read_data(1)
if ( (read_data(3) == 1) && (read_data(5) == 0) )
{
nHp_add = get_pcvar_num (health_hs_add)
}
else
nHp_add = get_pcvar_num (health_add)
nHp_max = get_pcvar_num (health_max)
if(!(get_user_flags(nKiller) & ADMIN_LEVEL_H))
return;
nKiller_hp = get_user_health(nKiller)
nKiller_hp += nHp_add
if (nKiller_hp > nHp_max) nKiller_hp = nHp_max
set_user_health(nKiller, nKiller_hp)
}
public model(id) {
new CsTeams:userTeam = cs_get_user_team(id)
if (userTeam == CS_TEAM_T) {
cs_set_user_model(id, "hnsvip")
}
else if(userTeam == CS_TEAM_CT) {
cs_set_user_model(id, "hnsvip")
}
else {
cs_reset_user_model(id)
}
}
public motd(id) {
show_motd(id,"vip.txt","Hns Vip")
}
public handle_say(id) {
new said[192]
read_args(said,192)
if( ( containi(said, "who") != -1 && containi(said, "/vips") != -1 ) || contain(said, "/vips") != -1 )
set_task(0.1,"print_adminlist",id)
return PLUGIN_CONTINUE
}
public print_adminlist(user)
{
new adminnames[33][32]
new message[256]
new contactinfo[256], contact[112]
new id, count, x, len
for(id = 1 ; id <= maxplayers ; id++)
if(is_user_connected(id))
if(get_user_flags(id) & ADMIN_CHECK)
get_user_name(id, adminnames[count++], 31)
len = format(message, 255, "%s Vipy online: ",COLOR)
if(count > 0) {
for(x = 0 ; x < count ; x++) {
len += format(message[len], 255-len, "%s%s ", adminnames[x], x < (count-1) ? ", ":"")
if(len > 96 ) {
print_message(user, message)
len = format(message, 255, "%s ",COLOR)
}
}
print_message(user, message)
}
else {
len += format(message[len], 255-len, "Brak vipow online")
print_message(user, message)
}
get_cvar_string("amx_contactinfo", contact, 63)
if(contact[0]) {
format(contactinfo, 111, "%s Contact Server Admin -- %s", COLOR, contact)
print_message(user, contactinfo)
}
}
print_message(id, msg[]) {
message_begin(MSG_ONE, gmsgSayText, {0,0,0}, id)
write_byte(id)
write_string(msg)
message_end()
}


Potem wpisujesz jaka ma być nazwa i klikasz "Kompiluj."
Po skompilowaniu klikasz "Pobierz" i gotowe.
Mam nadzieję, że potrafisz wgrywać plugin??
Nie mam pomysłu na sygnę :<

#5 Fokus Smok

    Nowy

  • Autor tematu
  • Użytkownik

Reputacja: -3
Nowy

  • Postów:7
  • Imię:Fokus
  • Lokalizacja:Polska
Offline

Napisano 09.05.2012 13:34

ale to musze pierw na pik .sma?


@ Edit dzięki i sory nie zauwazylem pierwszych zdan :]

A jeszcze jedno. Na jaka flage jest vip? ^^

Użytkownik Fokus Smok edytował ten post 09.05.2012 13:47

  • +
  • -
  • 0

#6 fejk

    Wszechpomocny

  • Zbanowany

Reputacja: 53
Pomocny

  • Postów:336
  • GG:
  • Lokalizacja:users.ini
Offline

Napisano 09.05.2012 13:52

ten wyżej jest na flage "H"

#7 JustBeFine

    Profesjonalista

  • Zbanowany

Reputacja: 66
Pomocny

  • Postów:162
  • GG:
  • Steam:steam
  • Imię:Paweł
  • Lokalizacja:Holandia
Offline

Napisano 09.05.2012 14:09

ten wyżej jest na flage "H"


To nie flaga H. Flaga H ma dostęp do komendy "amx_cfg". ADMIN_LEVEL_H czyli custom level H czyli flaga T!

Użytkownik JustBeFine edytował ten post 09.05.2012 14:10

Nie mam pomysłu na sygnę :<

#8 Fokus Smok

    Nowy

  • Autor tematu
  • Użytkownik

Reputacja: -3
Nowy

  • Postów:7
  • Imię:Fokus
  • Lokalizacja:Polska
Offline

Napisano 09.05.2012 14:22

A bys mogl mi powiedziec jak go wgrac?
  • +
  • -
  • 0

#9 JustBeFine

    Profesjonalista

  • Zbanowany

Reputacja: 66
Pomocny

  • Postów:162
  • GG:
  • Steam:steam
  • Imię:Paweł
  • Lokalizacja:Holandia
Offline

Napisano 09.05.2012 14:28

Wchodzisz w addons/amxmodx/configs/users.ini i na końcu dopisujesz:
Albo "Nick" "Haslo" "flagi" "a" - Na nick i hasło;
albo "IP" "" "flagi" "de" - Na IP;
albo "Steam ID" "" "flagi" "ce" - Na Steam ID.

Przykład:
- "JustBeFine" "duperele" "abcdefghijklmnopqrstu" "a";
- "123.45.67.89" "" "abcdefghijklmnopqrstu" "de" ;JustBeFine -Można to dopisać kto to jest.
- "STEAM_0:0:35205970" "" "abcdefghijklmnopqrstu" "ce" ;JustBeFine -Można to dopisać kto to jest.

Flagi jakie są.

; Access flags:
; a - immunity (can't be kicked/baned/slayed/slaped and affected by other commmands)
; b - reservation (can join on reserved slots)
; c - amx_kick command
; d - amx_ban and amx_unban commands
; e - amx_slay and amx_slap commands
; f - amx_map command
; g - amx_cvar command (not all cvars will be available)
; h - amx_cfg command
; i - amx_chat and other chat commands
; j - amx_vote and other vote commands
; k - access to sv_password cvar (by amx_cvar command)
; l - access to amx_rcon command and rcon_password cvar (by amx_cvar command)
; m - custom level A (for additional plugins)
; n - custom level B
; o - custom level C
; p - custom level D
; q - custom level E
; r - custom level F
; s - custom level G
; t - custom level H
; u - menu access
; z - user (no admin)


Dla VIP'a najlepiej dać na Nick i hasło lub Steam ID.
Przykłady dla Ciebie:
Albo "JustBeFine" "duperele" "tz" "a" - Vip dla JustBeFine na hasło "duperele";
albo "STEAM_0:0:35205970" "" "tz" "ce" - Vip na STEAM_0:0:35205970.

Jeżeli ktoś dostał vipa na hasło, przed wejściem na serwer musi wpisać w konsoli: setinfo _pw "hasło". Pamiętaj o cudzysłowiach!

Użytkownik JustBeFine edytował ten post 09.05.2012 14:32

Nie mam pomysłu na sygnę :<

#10 Fokus Smok

    Nowy

  • Autor tematu
  • Użytkownik

Reputacja: -3
Nowy

  • Postów:7
  • Imię:Fokus
  • Lokalizacja:Polska
Offline

Napisano 09.05.2012 15:01

Akurat to wiedzialem :> ale chodzi mi jak wgrac Plugin do Ftp
  • +
  • -
  • 0

#11 JustBeFine

    Profesjonalista

  • Zbanowany

Reputacja: 66
Pomocny

  • Postów:162
  • GG:
  • Steam:steam
  • Imię:Paweł
  • Lokalizacja:Holandia
Offline

Napisano 09.05.2012 15:06

Aha :D Pisemnie jest trudno wytłumaczyć więc znalazłem filmik na YT. Proszę
Nie mam pomysłu na sygnę :<

#12 sNH.

    Czy MisieQ ukradł ciasteczko?

  • Power User

Reputacja: 299
Wszechwidzący

  • Postów:1 070
  • Steam:steam
  • Imię:Bartek
  • Lokalizacja:Ełk
Offline

Napisano 09.05.2012 15:15

@Fokus Smok

Wgrywasz plik .amxx do addons/amxmodx/plugins
Następnie dopisujesz do configs/plugins.ini na końcu nazwapluginu.amxx i już.
Jeżeli masz cvary, to wpisujesz je do amxx.cfg
  • +
  • -
  • 0

#13 fejk

    Wszechpomocny

  • Zbanowany

Reputacja: 53
Pomocny

  • Postów:336
  • GG:
  • Lokalizacja:users.ini
Offline

Napisano 09.05.2012 19:21

rób to w sorcie ^^

zawartość plugins do folderu plugins

zawartość sprites do folderu sprites

zawartość models do folderu models

i tak dalej i tak dalej ^^ pełno jest poradników, nawet w FAQ na amxx jest, ale bez chęci i trochę pokory, to i tak nic nie zdziałasz..




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

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