Prosiłbym o przerobienie pulginu:
1.Żeby nie było multijumpu
2. Żeby dawało wszystkie granaty na początku rundy.
Plik Sma w zlączniku
Pozdrawiam
Kamil
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.
|
Kokalovsky.
Rejestracja: 14.11.2013Aktualnie: Nieaktywny
Poza forum Ostatnio: 02.06.2014 10:21





Statystyki
- Grupa: Użytkownik
- Całość postów: 19
- Odwiedzin: 1 101
- Tytuł: Początkujący
- Wiek: Wiek nie został ustalony
- Urodziny: Data urodzin nie została podana
-
Imię
Kamil
-
Płeć
Mężczyzna
-
Lokalizacja
Rybnik
Kontakt
Moje tematy
Przeróbka Pulginu Vip
21.12.2013 16:52
Problem z Vip
21.12.2013 15:57
#include <amxmodx> #include <colorchat> #include <cstrike> #include <csx> #include <engine> #include <fun> #include <hamsandwich> forward amxbans_admin_connect(id); new Array:g_Array, CsArmorType:armortype, bool:g_Vip[33], gRound=0, g_Hudmsg, weapon_id; new const clips[]={0, 13, -0, 10, 1, 7, 0, 30, 30, 1, 30, 20, 25, 30, 35, 25, 12, 20, 10, 30, 100, 8, 30, 30, 20, 2, 7, 30, 30, 0, 50}; new const g_Langcmd[][]={"say /vips","say_team /vips","say /vipy","say_team /vipy"}; new const g_Prefix[] = "Vip Chat"; public plugin_init(){ register_plugin("VIP Ultimate", "12.3.0.2", "benio101 & speedkill"); RegisterHam(Ham_Spawn, "player", "SpawnedEventPre", 1); register_event("HLTV", "event_new_round", "a", "1=0", "2=0"); register_logevent("GameCommencing", 2, "1=Game_Commencing"); register_event("DeathMsg", "DeathMsg", "a"); register_message(get_user_msgid("ScoreAttrib"), "VipStatus"); g_Array=ArrayCreate(64,32); for(new i;i<sizeof g_Langcmd;i++){ register_clcmd(g_Langcmd[i], "ShowVips"); } register_clcmd("say /vip", "ShowMotd"); register_clcmd("say_team", "VipChat"); g_Hudmsg=CreateHudSyncObj(); } public client_authorized(id){ if(get_user_flags(id) & 256){ client_authorized_vip(id); } } public client_authorized_vip(id){ g_Vip[id]=true; new g_Name[64]; get_user_name(id,g_Name,charsmax(g_Name)); new g_Size = ArraySize(g_Array); new szName[64]; for(new i = 0; i < g_Size; i++){ ArrayGetString(g_Array, i, szName, charsmax(szName)); if(equal(g_Name, szName)){ return 0; } } ArrayPushString(g_Array,g_Name); set_hudmessage(24, 190, 220, 0.25, 0.2, 0, 6.0, 6.0); ShowSyncHudMsg(0, g_Hudmsg, "Vip %s wbija na serwer !",g_Name); return PLUGIN_CONTINUE; } public client_disconnect(id){ if(g_Vip[id]){ client_disconnect_vip(id); } } public client_disconnect_vip(id){ g_Vip[id]=false; new Name[64]; get_user_name(id,Name,charsmax(Name)); new g_Size = ArraySize(g_Array); new g_Name[64]; for(new i = 0; i < g_Size; i++){ ArrayGetString(g_Array, i, g_Name, charsmax(g_Name)); if(equal(g_Name,Name)){ ArrayDeleteItem(g_Array,i); break; } } } public SpawnedEventPre(id){ if(g_Vip[id]){ if(is_user_alive(id)){ SpawnedEventPreVip(id); } } } public SpawnedEventPreVip(id){ set_user_rendering(id, kRenderFxGlowShell, 0, 0, 255, kRenderNormal, 25); set_user_health(id, get_user_health(id)+10); cs_set_user_armor(id, min(cs_get_user_armor(id,armortype)+100, 100), CS_ARMOR_KEVLAR); new henum=(user_has_weapon(id,CSW_HEGRENADE)?cs_get_user_bpammo(id,CSW_HEGRENADE):0); give_item(id, "weapon_hegrenade"); ++henum; new fbnum=(user_has_weapon(id,CSW_FLASHBANG)?cs_get_user_bpammo(id,CSW_FLASHBANG):0); give_item(id, "weapon_flashbang"); ++fbnum; cs_set_user_bpammo(id, CSW_FLASHBANG, 2); new sgnum=(user_has_weapon(id,CSW_SMOKEGRENADE)?cs_get_user_bpammo(id,CSW_SMOKEGRENADE):0); give_item(id, "weapon_smokegrenade"); ++sgnum; give_item(id, "weapon_deagle"); give_item(id, "ammo_50ae"); weapon_id=find_ent_by_owner(-1, "weapon_deagle", id); if(weapon_id)cs_set_weapon_ammo(weapon_id, 7); cs_set_user_bpammo(id, CSW_DEAGLE, 35); recharge(id); new g_Model[64]; formatex(g_Model,charsmax(g_Model),"%s",get_user_team(id) == 1 ? "VipTT" : "VipCT"); cs_set_user_model(id,g_Model); if(gRound>=2){ cs_set_user_money(id, min(cs_get_user_money(id)+1000, 16000), 1); } if(get_user_team(id)==1){ give_item(id, "weapon_ak47"); give_item(id, "ammo_762nato"); weapon_id=find_ent_by_owner(-1, "weapon_ak47", id); if(weapon_id)cs_set_weapon_ammo(weapon_id, 30); cs_set_user_bpammo(id, CSW_AK47, 90); } if(get_user_team(id)==2){ give_item(id, "weapon_m4a1"); give_item(id, "ammo_556nato"); weapon_id=find_ent_by_owner(-1, "weapon_m4a1", id); if(weapon_id)cs_set_weapon_ammo(weapon_id, 30); cs_set_user_bpammo(id, CSW_M4A1, 90); give_item(id, "item_thighpack"); } } public event_new_round(){ ++gRound; } public GameCommencing(){ gRound=0; } public recharge(id){ new wid=get_user_weapon(id); if(wid){ new weaponname[32], weid; get_weaponname(wid, weaponname, 31); weid=find_ent_by_owner(-1, weaponname, id); if(weid){ cs_set_weapon_ammo(weid, clips[wid]); } } } public DeathMsg(){ new killer=read_data(1); new victim=read_data(2); if(is_user_alive(killer) && g_Vip[killer] && get_user_team(killer) != get_user_team(victim)){ DeathMsgVip(killer,victim,read_data(3)); } } public DeathMsgVip(kid,vid,hs){ set_user_health(kid, min(get_user_health(kid)+(hs?15:10),130)); cs_set_user_money(kid, cs_get_user_money(kid)+(hs?500:300)); } public VipStatus(){ new id=get_msg_arg_int(1); if(is_user_alive(id) && g_Vip[id]){ set_msg_arg_int(2, ARG_BYTE, get_msg_arg_int(2)|4); } } public ShowVips(id){ return PLUGIN_CONTINUE; } public client_infochanged(id){ if(g_Vip[id]){ new szName[64]; get_user_info(id,"name",szName,charsmax(szName)); new Name[64]; get_user_name(id,Name,charsmax(Name)); if(!equal(szName,Name)){ ArrayPushString(g_Array,szName); new g_Size=ArraySize(g_Array); new g_Name[64]; for(new i = 0; i < g_Size; i++){ ArrayGetString(g_Array, i, g_Name, charsmax(g_Name)); if(equal(g_Name,Name)){ ArrayDeleteItem(g_Array,i); break; } } } } } public plugin_end(){ ArrayDestroy(g_Array); } public ShowMotd(id){ show_motd(id, "vip.txt", "Informacje o vipie"); } public VipChat(id){ if(g_Vip[id]){ new g_Msg[256], g_Text[256]; read_args(g_Msg,charsmax(g_Msg)); remove_quotes(g_Msg); if(g_Msg[0] == '*' && g_Msg[1]){ new g_Name[64]; get_user_name(id,g_Name,charsmax(g_Name)); formatex(g_Text,charsmax(g_Text),"^x01(%s) ^x03%s : ^x04%s",g_Prefix, g_Name, g_Msg[1]); for(new i=1;i<33;i++){ if(is_user_connected(i) && g_Vip[i]) ColorChat(i, GREEN, "%s", g_Text); } return PLUGIN_HANDLED_MAIN; } } return PLUGIN_CONTINUE; } public bomb_planted(id){ if(is_user_alive(id) && g_Vip[id]){ cs_set_user_money(id,cs_get_user_money(id) + 300); } } public bomb_defused(id){ if(is_user_alive(id) && g_Vip[id]){ cs_set_user_money(id,cs_get_user_money(id) + 300); } } public plugin_precache(){ precache_model("models/player/VipCT/VipCT.mdl"); precache_model("models/player/VipTT/VipTT.mdl"); } public amxbans_admin_connect(id){ client_authorized(id); }
Nie wychodzi mi podmiana tego co w kodzie na plik sma w złączniku
Zostaje połowa starego i dodaje sie tylko połowa nowego
Może mi to ktoś podmienić ?
Problem z Vip Pulgin 3.4
21.12.2013 14:09
Witam, mam wgrany na serwerze ten oto pulgin: http://amxx.pl/topic...-vip-plugin-34/
Problem polega na tym, że gdy dodaje vipa w users.ini danej o sobie pozmienie mapy tego vipa nie ma.
Ps: Ja sobie dodałem vipa i działa ale innym nie, tak samo osoba mająca admina ma vipa.
Tak Wygląda moje Users.ini
; Users configuration file ; File location: $moddir/addons/amxmodx/configs/users.ini ; Line starting with ; is a comment ; 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) ; t - Flaga dostępu do przywilejów VIP'a ; Account flags: ; a - disconnect player on invalid password ; b - clan tag ; c - this is steamid/wonid ; d - this is ip ; e - password is not checked (only name/ip/steamid needed) ; k - name or tag is case sensitive. eg: if you set it so the name "Ham" ; is protected and case sensitive (flags "k" only), then anybody ; can use the names "haM", "HAM", "ham", etc, but not "Ham" ; Password: ; Add to your autoexec.cfg: setinfo _pw "<password>" ; Change _pw to the value of amx_password_field ; Format of admin account: ; <name|ip|steamid> <password> <access flags> <account flags> ; Examples of admin accounts: "STEAM_0:1:28705390" "" "it" "de" "STEAM_0:0:34049978" "" "it" "de" "MRdiablol" "dziwnehasło" "it" "ab" "RastA." "12345" "it" "ab"
Tak jak pisze w instrucji dodałem vipa koledze zgodnie ze wzorem:
Tak dodasz Vip na Nick i Hasło
"Nick" "Hasło" "it" "ab"
Następny problem to taki, że po wpisaniu na say /vips pisze "Brak Vip'ów online"
Prosiłbym o pomoc nie wiem co z tym zrobić, a siedziałem nad tym długo
Pozdrówki
- AMXX.pl: Support AMX Mod X i SourceMod
- → Przeglądanie profilu: Tematy: Kokalovsky.
- Regulamin