←  Szukam pluginu

AMXX.pl: Support AMX Mod X i SourceMod

»

/zasady i /regulamin

Locked

  • +
  • -
shorer's Photo shorer 14.06.2011

Witajcie szukam czegoś takiego, żę jak ktoś na sayu napisze /regulamin i /zasady to mu się wyświetli :spadowa: To mają być dwie osobne komendy :confused:
Quote

  • +
  • -
;(('s Photo ;(( 14.06.2011

#include <amxmodx>
public plugin_init() {
        register_plugin("Motdy", "VERSION", "DAMIANq")
        register_clcmd("say /zasady","zasady")
        register_clcmd("say /regulamin","regulamin")
}
public zasady(id){ 
        show_motd(id, "zasady.txt", "tytul_motd");
}

public regulamin(id){
        show_motd(id, "regulamin.txt", "tytul_motd");
}

robisz zasady.txt i regulamin.txt i tam robisz własne zasady, regulamin i wrzucasz do cstrike/ a przed skompilowaniem pluga wpisz sobie tytul motd w miejscu tytul_motd
Edited by DAMIANq, 14.06.2011 18:05.
Quote

  • +
  • -
shorer's Photo shorer 14.06.2011

Nic nie szczaiłem z tego co anpisales ;/
Quote

  • +
  • -
;(('s Photo ;(( 14.06.2011

1. Robisz pliki tekstowe zasady.txt i regulamin.txt a tam w HTML robisz własne zasady itp
2. Zamiast tytul_motd dajesz jakiś tytuł motd.
3. Kompilujesz plugin np na www.amxx.pl/kompilator
Quote

  • +
  • -
shorer's Photo shorer 14.06.2011

36351215gg niech ktoś mi to wytlumaczy
Quote

  • +
  • -
Abes Mapper's Photo Abes Mapper 14.06.2011

Jak tego nie rozumiesz to nic nie zrozumiesz. Lepiej się za to nie zabieraj
Quote

  • +
  • -
ErroR'S's Photo ErroR'S 14.06.2011

Robisz notatnikiem nowy plik w nim piszesz te zasady w jezyku HTML tak samo robisz z regulaminem poradnik HTML Kurs HTML - strona WWW za darmo
W 8 i 14 linijce zmieniasz tytił motd na napis jaki bedzie im wyświetlany i po edycji tego wyżej kompilujesz plik do amxx


#include <amxmodx>
public plugin_init() {
        register_plugin("Motdy", "VERSION", "DAMIANq")
        register_clcmd("say /zasady","zasady")
        register_clcmd("say /regulamin","regulamin")
}
public zasady(id){ 
        show_motd(id, "zasady.txt", "Zasady Serwera");
}

public regulamin(id){
        show_motd(id, "regulamin.txt", "Regulamin");
}
Kompilujesz to pod tym linkiem www.amxx.pl/kompilator przykladowe nazwy motd dalem ci juz w pluginie

Dodano 14 czerwiec 2011 - 19:10:
A i te pliki zrobione notatnikiem dajesz do cstrike folderu głównego gdzie jest server.cfg
Quote
Locked