Mine sisusse
Otsi siit
  • Rohkem valikuid...
Otsi tulemusi mis sisaldab...
Otsi tulemusi...

[ÕPETUS] /sms plugin menüüga - UUENDUS

Soovitatud postitused

SUPERVIP

SMS Menüü EstGaming.ee serverites!

 

Miks lisasin selle siia? Vaatasin, et siin on /sms plugina õpetus olemas, aga ilma menüüta. Äkki keegi tahab endale sms pluginat menüüga.

 

Kirjeldus: Kirjutades /sms ilmub ekraanile menüü: VIP, Admin, ImmuAdmin (ja AdminVIP) valikuga. Valides neist üks, saab näha sms-informatsiooni.

 

Installimine:

1) Paki .zip kaust oma serveri FTPsse lahti

2) .txt failide sisse kirjutada järgnev kood, millel vaja muuta aadress enda järgi ära:

või täida HTML koodiga ära (P.S. Soovitan esimest varianti)

3) Lisa smsmenyy.amxx plugin addons/amxmodx/configs/plugins.ini faili lõppu

 

 

[spoiler=smsmenyy.sma - AdminVIPiga]

#include 

#define PLUGIN "SMS Menyy"

#define VERSION "0.0001"

#define AUTHOR "VIP.EE"

public plugin_init()

{

register_plugin(PLUGIN, VERSION, AUTHOR)

register_clcmd( "say_team /sms","MenuSMS");

register_clcmd( "say /sms","MenuSMS");

}

public MenuSMS(id)

{



new menu = menu_create("SMS Teenused:", "menu_handler");

menu_additem(menu, "VIP", "1", 0);

menu_additem(menu, "Admin", "2", 0);

menu_additem(menu, "ImmuAdmin", "3", 0);

menu_additem(menu, "AdminVIP", "4", 0);

menu_setprop(menu, MPROP_EXIT, MEXIT_ALL);



menu_display(id, menu, 0);

}

public menu_handler(id, menu, item)

{



if( item == MENU_EXIT )

{

 menu_destroy(menu);



 return PLUGIN_HANDLED;

}





new data[6], szName[64];

new access, callback;

menu_item_getinfo(menu, item, access, data,charsmax(data), szName,charsmax(szName), callback);

new key = str_to_num(data);



switch(key)

{

 case 1:

 {

  show_motd(id, "addons/amxmodx/configs/sms/vip.txt", "VIP");



 }

 case 2:

 {

  show_motd(id, "addons/amxmodx/configs/sms/admin.txt", "Admin");

 }

 case 3:

 {

  show_motd(id, "addons/amxmodx/configs/sms/immu.txt", "ImmuAdmin");

 } 
  case 4:

 {

  show_motd(id, "addons/amxmodx/configs/sms/adminvip.txt", "AdminVIP");

 }

}



menu_destroy(menu);

return PLUGIN_HANDLED;

}

 

 

[spoiler=smsmenyy.sma - AdminVIPita]

#include 

#define PLUGIN "SMS Menyy"

#define VERSION "0.0001"

#define AUTHOR "VIP.EE"

public plugin_init()

{

register_plugin(PLUGIN, VERSION, AUTHOR)

register_clcmd( "say_team /sms","MenuSMS");

register_clcmd( "say /sms","MenuSMS");

}

public MenuSMS(id)

{



new menu = menu_create("SMS Teenused:", "menu_handler");

menu_additem(menu, "VIP", "1", 0);

menu_additem(menu, "Admin", "2", 0);

menu_additem(menu, "ImmuAdmin", "3", 0);

menu_setprop(menu, MPROP_EXIT, MEXIT_ALL);



menu_display(id, menu, 0);

}

public menu_handler(id, menu, item)

{



if( item == MENU_EXIT )

{

 menu_destroy(menu);



 return PLUGIN_HANDLED;

}





new data[6], szName[64];

new access, callback;

menu_item_getinfo(menu, item, access, data,charsmax(data), szName,charsmax(szName), callback);

new key = str_to_num(data);



switch(key)

{

 case 1:

 {

  show_motd(id, "addons/amxmodx/configs/sms/vip.txt", "VIP");



 }

 case 2:

 {

  show_motd(id, "addons/amxmodx/configs/sms/admin.txt", "Admin");

 }

 case 3:

 {

  show_motd(id, "addons/amxmodx/configs/sms/immu.txt", "ImmuAdmin");

 } 

}



menu_destroy(menu);

return PLUGIN_HANDLED;

}

 

smsmenyy adminvipiga.zip

smsmenyy adminvipita.zip

Muudetud liikme Dydl'i poolt
skripti ja õpetuse muutus!

Jaga seda postitust


Postituse link
Share on other sites
SUPERVIP

Sooviks ära eemaldada AdminVipi.

 

Kui teed, siis aitähh Garry :)


"The true sign of intelligence is not knowledge but imagination."

- Albert Einstein

Jaga seda postitust


Postituse link
Share on other sites
SUPERVIP

#include 

#define PLUGIN "SMS Menyy"

#define VERSION "0.0001"

#define AUTHOR "VIP.EE"

public plugin_init()

{

register_plugin(PLUGIN, VERSION, AUTHOR)

register_clcmd( "say_team /sms","MenuSMS");

register_clcmd( "say /sms","MenuSMS");

}

public MenuSMS(id)

{



new menu = menu_create("SMS Teenused:", "menu_handler");

menu_additem(menu, "VIP", "1", 0);

menu_additem(menu, "Admin", "2", 0);

menu_additem(menu, "ImmuAdmin", "3", 0);

menu_setprop(menu, MPROP_EXIT, MEXIT_ALL);



menu_display(id, menu, 0);

}

public menu_handler(id, menu, item)

{



if( item == MENU_EXIT )

{

 menu_destroy(menu);



 return PLUGIN_HANDLED;

}





new data[6], szName[64];

new access, callback;

menu_item_getinfo(menu, item, access, data,charsmax(data), szName,charsmax(szName), callback);

new key = str_to_num(data);



switch(key)

{

 case 1:

 {

  show_motd(id, "http://www.estsurf.eu/asjad/vip.php", "VIP");



 }

 case 2:

 {

  show_motd(id, "http://www.estsurf.eu/asjad/admin.php", "Admin");

 }

 case 3:

 {

  show_motd(id, "http://www.estsurf.eu/asjad/immu.php", "ImmuAdmin");

 } 

}



menu_destroy(menu);

return PLUGIN_HANDLED;

}

Eemaldasin AdminVIP proovi :)

Muudetud liikme Mystery'i poolt

Bf3_Mystery.png

bug.gif

Jaga seda postitust


Postituse link
Share on other sites
SUPERVIP
Author of the topic Postitas

Uuendasin skripti ja õpetust!

Jaga seda postitust


Postituse link
Share on other sites
VIP

Saaks selle AdminVIP asemel Super Admin?


Live

Work

Create

Jaga seda postitust


Postituse link
Share on other sites

http://www.upload.ee/files/3426153/smsmenu.amxx.html

 

Saaks selle AdminVIP asemel Super Admin?

 

Panin uploadi compiletuna :)

 

Või siis .sma

 

#include 

#define PLUGIN "SMS Menyy"


#define VERSION "0.0001"


#define AUTHOR "VIP.EE"


public plugin_init()


{


register_plugin(PLUGIN, VERSION, AUTHOR)


register_clcmd( "say_team /sms","MenuSMS");


register_clcmd( "say /sms","MenuSMS");


}


public MenuSMS(id)


{






new menu = menu_create("SMS Teenused:", "menu_handler");


menu_additem(menu, "VIP", "1", 0);


menu_additem(menu, "Admin", "2", 0);


menu_additem(menu, "Immu Admin", "3", 0);


menu_additem(menu, "Super Admin", "4", 0);


menu_setprop(menu, MPROP_EXIT, MEXIT_ALL);






menu_display(id, menu, 0);


}


public menu_handler(id, menu, item)


{






if( item == MENU_EXIT )


{


 menu_destroy(menu);






 return PLUGIN_HANDLED;


}










new data[6], szName[64];


new access, callback;


menu_item_getinfo(menu, item, access, data,charsmax(data), szName,charsmax(szName), callback);


new key = str_to_num(data);






switch(key)


{


 case 1:


 {


  show_motd(id, "addons/amxmodx/configs/sms/vip.txt", "VIP");





 }


 case 2:


 {


  show_motd(id, "addons/amxmodx/configs/sms/admin.txt", "Admin");


 }


 case 3:


 {


  show_motd(id, "addons/amxmodx/configs/sms/immu.txt", "ImmuAdmin");


 } 
  case 4:


 {


  show_motd(id, "addons/amxmodx/configs/sms/adminvip.txt", "AdminVIP");


 }


}






menu_destroy(menu);


return PLUGIN_HANDLED;


}  

 

Saad ise compileda siin: http://www.amxmodx.org/webcompiler.cgi


Love me like you do, lo-lo-love me like you do

Jaga seda postitust


Postituse link
Share on other sites

Kommentaari lisamiseks loo konto või logi sisse

Kommenteerimiseks peate olema liige

Loo konto

Liituge meie kommuuni uue kontoga. See on lihtne!

Loo uus konto

Logi sisse

On juba konto? Logi sisse siit.

Logi sisse nüüd

×
×
  • Loo uus...

Oluline informatsioon

Selle veebisaidi paremaks muutmiseks oleme teie seadmesse paigutanud küpsised . Võite kohandada oma küpsiste seadeid , vastasel juhul eeldame, et te olete küpsiste kasutamisega nõus kui jätkate veebisaidil sirvimist.. Palun lugege läbi Kasutustingimused ja Privaatsuspoliitika.