מידע על המוד:
קוד:
****** HyuNaS HitAndRun ******* Plugin Name: HyuNaS HitAndRun* Plugin Descption: A new gamemode for Counter-Strike.* Plugin Version: 1.0* Plugin Creator: Hyuna aka NorToN*
אז ככה, נמאס לי שילדים מתחננים למוד נורמאלי של HNR ומביאים להם את של נתיב (שדורש את המודול orpheu ויש לו באגים) או שהם יוצאים פראיירים וקונים את המוד מישהו ב-200 שקל.
המוד הזה נבנה (ב-Amx Mod X Studio) ועבר בדיקות באמצעות שרת ביתי במשך שבועיים והשקעתי בו הרבה זמן בשבילכם.
שימו לב!
כדי שהרמון מקפיא יעבוד לכם נורמאלי, בלי תלות ב-mp_friendlyfire, שינתי את המוד של הרימון המקפיא. המוד עם ה-SMA שלו נמצא בראר שבהורדה.
אם אין לכם רימון מקפיא בשרת המוד לא יביא לכם רימון סמוק (רימון מקפיא) ולא יהיה אפשר לקנות אותו.
מערכות שהמוד כולל:
* מערכת Cash שכולל את מערכת ה-send, מערכת ה-gamble ומערכת ה-shop.
* מערכת ה-Levels שכולל את מערכת ה-XP (מין הסתם...)
* מערכת אוונטים
דברים בשופ שהמוד כולל:
* חנות נשקים
* חנות רימונים
* חנות Extra Ammo Pack ל-Scout
* חנות Powers - מהירות, בלתי נראה, גראביטי, אם אפשר להיפגע מ HeGrenade, אנטי-פלאש.
* Misc Stuff - הפעלת אוונטים (אדימינים עם הדגל "n"), תפריט נוח של Gamble, הצגת הסטטים של שחקנים אחרים ושלך (lvl, xp וכל זה).
* Help - מידע על המוד ועזרה בתוך Motd.
למוד הזה יש Config אוטומטי - הוא יוצר קובץ קונפיג אוטומטי שיש בו את כל ה-CVARS ואפשר לשנות בנוחות (נמצא ב-addons/amxmodx/configs/HitAndRun.cfg).
המוד הזה הוא גם API שאפשר לעשות מוד נפרד ולקשר את המוד הראשי עם המוד הנפרד באמצעות Natives ו-Forwards.
הגדרת המוד:
המוד מכיל מערכת הגנה נגד שגיאות AMX_ERR_STACKERR, AMX_ERR_STACKLOW ו-AMX_ERR_HEAPLOW. המערכת מגדילה את הזיכרון שמקבל המוד מ-16KB (ברירת מחדל) ל-128KB. אם יש לכם בעיות בהרצה/לאגים תחפשו את השורה הזאת:
קוד PHP:
// To evoid AMX_ERR_STACKERR, AMX_ERR_STACKLOW and AMX_ERR_HEAPLOW debug errors
#pragma dynamic 32768
ותשנו אותה ל
קוד PHP:
// To evoid AMX_ERR_STACKERR, AMX_ERR_STACKLOW and AMX_ERR_HEAPLOW debug errors
// #pragma dynamic 32768
המוד מכיל מערכת נוחה להוספת דברים בשופ ולשנות מחירים =]:
קוד PHP:
enum _:WepTemp
{
NAME[32],
CLASS[32],
COST,
CSW,
BULLETS
};
/* Name | Class | Cost | CSW Code | Bullets */
new szPriWeapons [] [WepTemp] = {
{ "M4A1", "weapon_m4a1", 50, CSW_M4A1, 2 },
{ "MP5", "weapon_mp5navy", 60, CSW_MP5NAVY, 5 },
{ "M3", "weapon_m3", 70, CSW_M3, 6 }
};
/* Name | Class | Cost | CSW Code | - */
new szGrenades [3] [WepTemp] = {
{ "HE Grenade", "weapon_hegrenade", 20, CSW_HEGRENADE },
{ "Flash Grenade", "weapon_flashbang", 15, CSW_FLASHBANG },
{ "Freeze Grenade", "weapon_smokegrenade", 20, CSW_SMOKEGRENADE }
};
/* - | - | Cost | - | Bullets */
new szExtraAmmo [] [WepTemp] = {
{ "", "", 30, 0, 5 },
{ "", "", 70, 0, 15 },
{ "", "", 130, 0, 30 }
};
קוד PHP:
enum _owers
{
SPEED,
INVISIBILITY,
GRAVITY,
NOHEGRENADE,
NOFLASH
};
enum _wrTemp
{
PWR_NAME[64],
PWR_TIME[16],
PWR_COST
};
/* Name | Time | Cost */
new szPwrs [Powers] [PwrTemp] = {
{ "Speed" ,"1 Round", 100 },
{ "Invisibility" ,"10 Seconds", 130 },
{ "Gravity", "1 Round", 130 },
{ "No He Grenade Infection", "1 Round" , 150 },
{ "No Flash", "1 Round", 170 }
};
שינוי מספר הסאונדים של הניצחון, מספר הסאונדים של ה Infecte ומספר הלבלים המקסימאלי
קוד PHP:
// Max win sounds
#define MAX_WIN_SOUNDS 6
// Max infecte sounds
#define MAX_INFECTE_SOUNDS 3
// Max levels that allowed
#define MAX_LEVELS 21
new const g_winsounds [MAX_WIN_SOUNDS] [] = {
"HyuNaS_HNR/winsound1.mp3",
"HyuNaS_HNR/winsound2.mp3",
"HyuNaS_HNR/winsound3.mp3",
"HyuNaS_HNR/winsound4.mp3",
"HyuNaS_HNR/winsound5.mp3",
"HyuNaS_HNR/winsound6.mp3"
};
new const g_infectesounds [MAX_INFECTE_SOUNDS] [] = {
"HyuNaS_HNR/infected1.wav",
"HyuNaS_HNR/infected2.wav",
"HyuNaS_HNR/infected3.wav"
};
new xps[MAX_LEVELS] [] = {
"10",
"20",
"40",
"80",
"160",
"320",
"640",
"840",
"1000",
"1500",
"2200",
"3000",
"4000",
"7000",
"11000",
"20000",
"32000",
"44000",
"58000",
"80000",
"100000"
};
דרישות:
Amx Mod X v1.8.2
מודולים: Fakemeta, Cstrike, HamSandwich
פקודות:
קוד:
****** Commands ******* say /cash - Shows your correct ****** Support to view other players ******* say /gamble <amount> - Gamble points. If players win, he will get the amount of points he gambled, if not he will lose the amount of points he gambled.* say /hnrstats - Shows how much round played, how much wins you have & Total rounds played & Total wins. Supports see other players Rounds && Wins.* say /level, say /lvl, say /xp - Shows at what level you are, how much xp do you have and how much xp do you need to collect to level up. Supports see other players level && xp && next level xp.* say /next, say /nextlevel, say /nextlvl - Show how much xp do you need to collect to level up, for fat lazy man. It's DOESN'T SUPPORTS SEE OTHER PLAYERS NEXT LVL XP!!!! * say /send <tagret> <amount> - Sends point to ****** Amount is how much cash send. You cann't send to yourself cash(Target is 3 letters from the name).* say /shop, radio1 (z), radio2(x), radio3(c) - Open shop menu.* say /scout - Scout system. This function is currently unavailable. Maybe I'll add this function to next versions.* say /rs - Shows a menu to reset HitAndRun Stats (Level, XP, Cash, Rounds and Wins). Be carefull with this option =]* say /hnrhelp - Shows help motd of the plugin.* say /event - Shows if event is started. If yes, shows the event name. If not, shows the rounds left until a random event will start.
Cvars:
קוד:
****** Cvars ******* amx_hnr_enabled 0/1 - Enable/Disable the plugin. (Defualt: 1)* amx_hnr_noslowdown 0/1 - Enable/Disable noslowdown after jump. (Defualt: 1)* amx_hnr_nozoom 0/1 - Enable/Disable nozoom at scout. (Defualt: 0)* amx_hnr_noscoutdrop 0/1 - Enable/Disable blocking scout from dropping. (Defualt: 1)* amx_hnr_blockkill 0/1 - Enable/Disable blocking from client killing himself. (Defualt: 1)* amx_hnr_cashsys 0/1 - Enable/Disable Cash (aka Money aka Points) System. (Defualt: 1)* amx_hnr_roundsys 0/1 - Enable/Disable Round & Wins Count System. (Defualt: 1)* amx_hnr_sendsys 0/1 - Enable/Disable Send System. (Defualt: 1)* amx_hnr_gamblesys 0/1 - Enable/Disable Gamble System. (Defualt: 1)* amx_hnr_levelsys 0/1 - Enable/Disable Level System. (Defualt: 1)
Natives:
קוד:
****** Natives ******* hnr_get_infected() - Return the last player that was infected.* hnr_get_lasthit() - Return the last player that hit.* hnr_get_winner() - Return the last winner.* bool:hnr_started() - Returns the game status. (bool)* hnr_get_event() - Returns the event status.* hnr_get_user_rounds(index, total = 0) - Returns how much rounds played a client.* hnr_get_user_xp(index) - Returns how much xp have a client.* hnr_get_user_level(index) - Returns client's level.* hnr_get_user_powers(index) - Returns bits sum of powers.
Forwards:
קוד:
****** Forwards ******* hnr_client_won(client) - Called when a client wins the game.* hnr_client_infected(client) - Called when a client infect.* hnr_event_started(event) - Called when an event started.
אינקלודים:
קוד:
****** Includes ******* #include <amxmodx>* #include <amxmisc>* #include <cstrike>* #include <hamsandwich>* #include <fakemeta_util>* #include <fvault>* #include <dhudmessage>
Change Log:
קוד:
****** Change Log ******* V 1.0 - First Public Release.
רישיון:
קוד:
// License:/* HyuNaS HitAndRun v1.0 Copyright (C) 2013 Hyuna aka NorToN This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program. If not, see */
קרדיטים:
קוד:
****** Credits ******* Roy [NorToN aka Hyuna] - Plugin Creator.* AlliedModders Forum - Some Code and shit like that...