Nie chce aby ten plugin dodawał inny stroj dla vipa. Pomoze ktos dam reputa +++
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.
|
Przerobienie pluginu
#1
Napisano 31.01.2011 12:05
Nie chce aby ten plugin dodawał inny stroj dla vipa. Pomoze ktos dam reputa +++
#2
Napisano 31.01.2011 14:48
- Nowe itemy, klasy, questy dla COD mod'a
- Pisanie, Edytowanie oraz Naprawianie pluginów
Kontakt PW lub Na stronce
Pomoglem? Odwdziecz sie daj
#3
Napisano 31.01.2011 14:51
Użytkownik eSSTa edytował ten post 31.01.2011 14:52
#4
Napisano 31.01.2011 15:09
/* Plugin generated by AMXX-Studio */ /* CVARY: //////////////////////////VIP BY SpartakuS///////////////////////// ////////////////////////////Cs-Crash.pl//////////////////////////// amx_ilezycia "10" // Ile VIPowi ma dodawac hp na start amx_ilekamizelki "50" // Ile VIPowi ma dodawac kamizelki na start amx_ilekasy "1500" // Ustala ilosc kasy ile ma dodawac na start amx_tagstrony "[Cs-Crash.pl]" // TAG twojej strony amx_adresstrony "Cs-Crash.pl" // Adres twojego forum */ #include <amxmodx> #include <amxmisc> #include <cstrike> #include <fun> #include <colorchat> #include <Vexd_Utilities> #define PLUGIN "CsCrash-VIP" #define VERSION "1.0" #define AUTHOR "SpartakuS" #define ADMIN_VIP ADMIN_RESERVATION #define SCOREATTRIB_NONE 0 #define SCOREATTRIB_DEAD ( 1 << 0 ) #define SCOREATTRIB_BOMB ( 1 << 1 ) #define SCOREATTRIB_VIP ( 1 << 2 ) new kasa new money new kamizelka new zycie new hostName new zapraszamy public plugin_init() { register_plugin(PLUGIN, VERSION, AUTHOR); register_message( get_user_msgid( "ScoreAttrib" ), "MessageScoreAttrib" ); register_event("CurWeapon", "Event_CurWeapon", "be", "1=1"); register_event("ResetHUD", "resetModel", "b"); register_logevent("newRound",2,"1=Round_Start"); kasa = register_cvar("amx_ilekasy","1500"); zycie = register_cvar("amx_ilezycia","10"); kamizelka = register_cvar("amx_ilekamizelki","50"); hostName = register_cvar("amx_tagstrony","[Cs-Crash.pl]"); zapraszamy = register_cvar("amx_adresstrony","Cs-Crash.pl"); register_clcmd("say /vipy", "printVip"); register_clcmd("say /vips", "printVip"); register_clcmd("say /kosztvip","koszt"); register_clcmd("say /vip","pokazujemotd"); set_task(30.0,"spam",_,_,_,"b"); return PLUGIN_CONTINUE; } public plugin_precache() { } public newRound() { new players[32]; new playersNum; new player; get_players(players, playersNum,"a"); for(new i=0;i<playersNum;i++) { player=players[i]; if(get_user_flags(player) & ADMIN_LEVEL_H) { money += get_pcvar_num(kasa); kamizelka += get_pcvar_num(kamizelka); zycie += get_pcvar_num(zycie); give_item(player, "weapon_deagle"); give_item(player, "ammo_50ae"); give_item(player, "ammo_50ae"); give_item(player, "ammo_50ae"); give_item(player, "ammo_50ae"); give_item(player, "ammo_50ae"); give_item(player, "ammo_50ae"); give_item(player, "ammo_50ae"); give_item(player, "weapon_awp"); give_item(player, "ammo_338magnum"); give_item(player, "ammo_338magnum"); give_item(player, "ammo_338magnum"); give_item(player, "ammo_338magnum"); give_item(player, "ammo_338magnum"); give_item(player, "weapon_hegrenade"); give_item(player, "weapon_flashbang"); give_item(player, "weapon_smokegrenade"); give_item(player, "item_assaultsuit"); give_item(player, "item_thighpack"); set_user_armor(player,get_user_armor(player) +kamizelka); set_user_health(player,get_user_health(player) +zycie); cs_set_user_money(player,cs_get_user_money(player) + money); ColorChat(player,RED,"%s^x01 Otrzymales cale wyposazenie ^x04 VIP'a!", hostName); } } return PLUGIN_CONTINUE; } public printVip(id) { new players[32]; new playersNum; new player; new vipNum=0; ColorChat(id,BLUE,"%s^x04 Vipy online:",hostName); get_players(players, playersNum,"a"); { vipNum++; for(new i=0;i<playersNum;i++) { player=players[i]; new playerName[32]; get_user_name(player,playerName,31); if(get_user_flags(player) & ADMIN_LEVEL_H) { ColorChat(id,RED,"%s",playerName); } } } if(vipNum==0) { ColorChat(id,BLUE,"%s^x01 Brak ^x04Vipow^x01 na Serwerze", hostName); } return PLUGIN_HANDLED; } public pokazujemotd(id) { show_motd(id,"vip.txt","MOTD"); } public koszt(id) { ColorChat(id,RED,"%s^x03 Koszt VIP'a to^x04 10zl^x03 SMS Lub^x04 7zl^x03 Przelew", hostName); } public spam() { switch(random(3)) { case 0: ColorChat(0,RED,"%s^x01 Zapraszamy do Rejestracji na^x04 %s", hostName, zapraszamy); case 1: ColorChat(0,RED,"%s^x03 Koszt VIP'a to^x04 10zl^x03 SMS Lub^x04 7zl^x03 Przelew", hostName); case 2: ColorChat(0,BLUE,"%s^x01 Aby dostac informacje o ^x04Vipach^x01 wpisz ^x03/vipy", hostName); } } public MessageScoreAttrib( iMsgID, iDest, iReceiver ) { new iPlayer = get_msg_arg_int( 1 ); if( is_user_connected( iPlayer ) && ( get_user_flags( iPlayer ) & ADMIN_VIP ) ) { set_msg_arg_int( 2, ARG_BYTE, is_user_alive( iPlayer ) ? SCOREATTRIB_VIP : SCOREATTRIB_DEAD ); } } public client_putinserver(id) { if(get_user_flags(id) & ADMIN_LEVEL_H) { new name[32] get_user_name(id,name,31) set_hudmessage(255, 0, 0, -1.0, 0.25, 0, 1.0, 2.0, 0.1, 0.2, 2); show_hudmessage(0, "Przychodzi Vip^n %s^n Witamy!!!",name) client_cmd(0,"spk misc/vip") } } /* AMXX-Studio Notes - DO NOT MODIFY BELOW HERE *{\\ rtf1\\ ansi\\ deff0{\\ fonttbl{\\ f0\\ fnil Tahoma;}}\n\\ viewkind4\\ uc1\\ pard\\ lang1045\\ f0\\ fs16 \n\\ par } */
#5
Napisano 31.01.2011 15:14
Co do @up po co zostawiles w plugin_init, ResetHUD skoro usunales ta procedure?
- Nowe itemy, klasy, questy dla COD mod'a
- Pisanie, Edytowanie oraz Naprawianie pluginów
Kontakt PW lub Na stronce
Pomoglem? Odwdziecz sie daj
#6
Napisano 31.01.2011 15:24
#7
Napisano 31.01.2011 15:25
Ale macie:
/* Plugin generated by AMXX-Studio */ /* CVARY: //////////////////////////VIP BY SpartakuS///////////////////////// ////////////////////////////Cs-Crash.pl//////////////////////////// amx_ilezycia "10" // Ile VIPowi ma dodawac hp na start amx_ilekamizelki "50" // Ile VIPowi ma dodawac kamizelki na start amx_ilekasy "1500" // Ustala ilosc kasy ile ma dodawac na start amx_tagstrony "[Cs-Crash.pl]" // TAG twojej strony amx_adresstrony "Cs-Crash.pl" // Adres twojego forum */ #include <amxmodx> #include <amxmisc> #include <cstrike> #include <fun> #include <colorchat> #include <Vexd_Utilities> #define PLUGIN "CsCrash-VIP" #define VERSION "1.0" #define AUTHOR "SpartakuS" #define ADMIN_VIP ADMIN_RESERVATION #define SCOREATTRIB_NONE 0 #define SCOREATTRIB_DEAD ( 1 << 0 ) #define SCOREATTRIB_BOMB ( 1 << 1 ) #define SCOREATTRIB_VIP ( 1 << 2 ) new kasa new money new kamizelka new zycie new hostName new zapraszamy public plugin_init() { register_plugin(PLUGIN, VERSION, AUTHOR); register_message( get_user_msgid( "ScoreAttrib" ), "MessageScoreAttrib" ); register_logevent("newRound",2,"1=Round_Start"); kasa = register_cvar("amx_ilekasy","1500"); zycie = register_cvar("amx_ilezycia","10"); kamizelka = register_cvar("amx_ilekamizelki","50"); hostName = register_cvar("amx_tagstrony","[Cs-Crash.pl]"); zapraszamy = register_cvar("amx_adresstrony","Cs-Crash.pl"); register_clcmd("say /vipy", "printVip"); register_clcmd("say /vips", "printVip"); register_clcmd("say /kosztvip","koszt"); register_clcmd("say /vip","pokazujemotd"); set_task(30.0,"spam",_,_,_,"b"); return PLUGIN_CONTINUE; } public newRound() { new players[32]; new playersNum; new player; get_players(players, playersNum,"a"); for(new i=0;i<playersNum;i++) { player=players[i]; if(get_user_flags(player) & ADMIN_LEVEL_H) { money += get_pcvar_num(kasa); kamizelka += get_pcvar_num(kamizelka); zycie += get_pcvar_num(zycie); give_item(player, "weapon_deagle"); give_item(player, "ammo_50ae"); give_item(player, "ammo_50ae"); give_item(player, "ammo_50ae"); give_item(player, "ammo_50ae"); give_item(player, "ammo_50ae"); give_item(player, "ammo_50ae"); give_item(player, "ammo_50ae"); give_item(player, "weapon_awp"); give_item(player, "ammo_338magnum"); give_item(player, "ammo_338magnum"); give_item(player, "ammo_338magnum"); give_item(player, "ammo_338magnum"); give_item(player, "ammo_338magnum"); give_item(player, "weapon_hegrenade"); give_item(player, "weapon_flashbang"); give_item(player, "weapon_smokegrenade"); give_item(player, "item_assaultsuit"); give_item(player, "item_thighpack"); set_user_armor(player,get_user_armor(player) +kamizelka); set_user_health(player,get_user_health(player) +zycie); cs_set_user_money(player,cs_get_user_money(player) + money); ColorChat(player,RED,"%s^x01 Otrzymales cale wyposazenie ^x04 VIP'a!", hostName); } } return PLUGIN_CONTINUE; } public printVip(id) { new players[32]; new playersNum; new player; new vipNum=0; ColorChat(id,BLUE,"%s^x04 Vipy online:",hostName); get_players(players, playersNum,"a"); { vipNum++; for(new i=0;i<playersNum;i++) { player=players[i]; new playerName[32]; get_user_name(player,playerName,31); if(get_user_flags(player) & ADMIN_LEVEL_H) { ColorChat(id,RED,"%s",playerName); } } } if(vipNum==0) { ColorChat(id,BLUE,"%s^x01 Brak ^x04Vipow^x01 na Serwerze", hostName); } return PLUGIN_HANDLED; } public pokazujemotd(id) { show_motd(id,"vip.txt","MOTD"); } public koszt(id) { ColorChat(id,RED,"%s^x03 Koszt VIP'a to^x04 10zl^x03 SMS Lub^x04 7zl^x03 Przelew", hostName); } public spam() { switch(random(3)) { case 0: ColorChat(0,RED,"%s^x01 Zapraszamy do Rejestracji na^x04 %s", hostName, zapraszamy); case 1: ColorChat(0,RED,"%s^x03 Koszt VIP'a to^x04 10zl^x03 SMS Lub^x04 7zl^x03 Przelew", hostName); case 2: ColorChat(0,BLUE,"%s^x01 Aby dostac informacje o ^x04Vipach^x01 wpisz ^x03/vipy", hostName); } } public MessageScoreAttrib( iMsgID, iDest, iReceiver ) { new iPlayer = get_msg_arg_int( 1 ); if( is_user_connected( iPlayer ) && ( get_user_flags( iPlayer ) & ADMIN_VIP ) ) { set_msg_arg_int( 2, ARG_BYTE, is_user_alive( iPlayer ) ? SCOREATTRIB_VIP : SCOREATTRIB_DEAD ); } } public client_putinserver(id) { if(get_user_flags(id) & ADMIN_LEVEL_H) { new name[32] get_user_name(id,name,31) set_hudmessage(255, 0, 0, -1.0, 0.25, 0, 1.0, 2.0, 0.1, 0.2, 2); show_hudmessage(0, "Przychodzi Vip^n %s^n Witamy!!!",name) client_cmd(0,"spk misc/vip") } } /* AMXX-Studio Notes - DO NOT MODIFY BELOW HERE *{\\
#8
Napisano 31.01.2011 15:52
tu log z pliku error.
Poradzccie cos plaxx
L 01/31/2011 - 11:17:31: Start of error session.
L 01/31/2011 - 11:17:31: Info (map "awp_india") (file "addons/amxmodx/logs/error_20110131.log")
L 01/31/2011 - 11:17:31: [CSTRIKE] Invalid player 14
L 01/31/2011 - 11:17:31: [AMXX] Displaying debug trace (plugin "vip_spartakus.amxx")
L 01/31/2011 - 11:17:31: [AMXX] Run time error 10: native error (native "cs_get_user_team")
L 01/31/2011 - 11:17:31: [AMXX] [0] vip_spartakus.sma::resetModel (line 125)
L 01/31/2011 - 12:23:56: Start of error session.
L 01/31/2011 - 12:23:56: Info (map "de_dust") (file "addons/amxmodx/logs/error_20110131.log")
L 01/31/2011 - 12:23:56: replace() buffer not big enough (135>=127)
L 01/31/2011 - 12:23:56: [AMXX] Displaying debug trace (plugin "statsx.amxx")
L 01/31/2011 - 12:23:56: [AMXX] Run time error 10: native error (native "replace")
L 01/31/2011 - 12:23:56: [AMXX] [0] 22319.attach::client_color (line 259)
L 01/31/2011 - 12:23:56: [AMXX] [1] 22319.attach::cmdHp (line 1048)
L 01/31/2011 - 15:49:49: Start of error session.
L 01/31/2011 - 15:49:49: Info (map "de_aztec") (file "addons/amxmodx/logs/error_20110131.log")
L 01/31/2011 - 15:49:49: [CSTRIKE] Invalid player 8
L 01/31/2011 - 15:49:49: [AMXX] Displaying debug trace (plugin "vip_spartakus.amxx")
L 01/31/2011 - 15:49:49: [AMXX] Run time error 10: native error (native "cs_get_user_team")
L 01/31/2011 - 15:49:49: [AMXX] [0] vip_spartakus.sma::resetModel (line 125)
L 01/31/2011 - 15:49:50:Name: marycha | STEAMID: VALVE_ID_LAN | IP: 92.55.241.72
L 01/31/2011 - 15:49:49: [AMXX] [0] vip_spartakus.sma::resetModel (line 125)
L 01/31/2011 - 15:49:49: [AMXX] Run time error 10: native error (native "cs_get_user_team")
L 01/31/2011 - 15:49:49: [AMXX] Displaying debug trace (plugin "vip_spartakus.amxx")
L 01/31/2011 - 15:49:49: [CSTRIKE] Invalid player 8
#9
Napisano 31.01.2011 16:21
wiem ze dzialalby normalnie ale po co pisac cos co jest kompletnie niepotrzebne?
@up
dopisz obok vip_spartakus.amxx debug
w plugins.ini
Użytkownik stasekstaskowy edytował ten post 31.01.2011 16:21
- Nowe itemy, klasy, questy dla COD mod'a
- Pisanie, Edytowanie oraz Naprawianie pluginów
Kontakt PW lub Na stronce
Pomoglem? Odwdziecz sie daj
#10
Napisano 01.02.2011 12:02
Użytkownicy przeglądający ten temat: 0
0 użytkowników, 0 gości, 0 anonimowych