Raised This Month: $ Target: $400
 0% 

CShack module


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
stigma
Senior Member
Join Date: Mar 2005
Location: Denmark
Old 10-06-2006 , 09:25   CShack module
Reply With Quote #1

I've heard about DamageSoul's cshack module, but when im running it, all the functions in my plugin stops.. None of it works..

help please?

Code:
#include <amxmodx> #include <amxmisc> #include <fun> #include <cstrike> #include <cshack> #define PLUGIN "Annoucement messages" #define VERSION "1.0" #define AUTHOR "stigma" new iKill[33] = 0; new bool:FirstBlood new tOwn = 0 new ctOwn = 0 new const WickedSickSound[] = "Announce/WhickedSick.wav" new const UnStoppableSound[] = "Announce/Unstoppable.wav" new const UltraKillSound[] = "Announce/UltraKill.wav" new const TripleKillSound[] = "Announce/Triple_kill.wav" new const TeamKillerSound[] = "Announce/Team_Killer.wav" new const SpawnKillerSound[] = "Announce/Spawn_killer.wav" new const ScoreSound[] = "Announce/Score.wav" new const RedDominateSound[] = "Announce/red_team_dominating.wav" new const RampageSound[] = "Announce/Rampage.wav" new const OwnageSound[] = "Announce/Ownage.wav" new const MultiKillSound[] = "Announce/MultiKill.wav" new const MonsterKillSound[] = "Announce/monster_kill.wav" new const KillingSpreeSound[] = "Announce/Killing_Spree.wav" new const HolyShitSound[] = "Announce/HolyShit_F.wav" new const HeadShotSound[] = "Announce/HeadShot.wav" new const HeadHunterSound[] = "Announce/HeadHunter.wav" new const GodLikeSound[] = "Announce/GodLike.wav" new const FirstBloodSound[] = "Announce/first_blood.wav" new const EagleEyeSound[] = "Announce/EagleEye.wav" new const DoubleKillSound[] = "Announce/Double_Kill.wav" new const DominatingSound[] = "Announce/Dominating.wav" new const BlueDominateSound[] = "Announce/blue_team_dominating.wav" new const kSound[5][] = {     "GodLikeSound",     "RampageSound",     "DominatingSound",     "WickedSickSound",     "KillingSpreeSound" } public plugin_precache() {     precache_sound(DoubleKillSound) // Sound 2     precache_sound(TripleKillSound) // Sound 3     precache_sound(MultiKillSound) // Sound 5     precache_sound(KillingSpreeSound) // Sound 7     precache_sound(UltraKillSound) // Sound 9     precache_sound(MonsterKillSound) // Sound 10     precache_sound(DominatingSound) // Sound 12     precache_sound(GodLikeSound) // Sound 13     precache_sound(RampageSound) // Sound 15     precache_sound(WickedSickSound) // Sound 17     precache_sound(TeamKillerSound) // Team Mate killed     precache_sound(SpawnKillerSound) // Someone killed within 10 secs     precache_sound(ScoreSound) // Task     precache_sound(RedDominateSound) // Terroists is dominating     precache_sound(OwnageSound) // Team Owning     precache_sound(HolyShitSound) // 1 shot, 2 kill     precache_sound(HeadShotSound) // HeadShot     precache_sound(HeadHunterSound) // AWM Headshot     precache_sound(FirstBloodSound) // First Kill     precache_sound(EagleEyeSound) // Deagle Face     precache_sound(BlueDominateSound) // Counter-Terroists is dominating     precache_sound(UnStoppableSound) } public plugin_init() {     register_plugin(PLUGIN, VERSION, AUTHOR)     register_event("HLTV", "NewRound", "a", "1=0", "2=0")     register_event("DeathMsg","Death","a")     register_logevent("RoundEnd", 2, "1=Round_End")     register_clcmd("say gi","giv")     } public NewRound(id) {     FirstBlood = false         new tScore = cs_get_team_score(CS_TEAM_T)     new ctScore = cs_get_team_score(CS_TEAM_CT)         if (tScore > ctScore) {                 tOwn += 1             }     if (tScore < ctScore) {                 ctOwn += 1             }     client_print(0,print_chat,"T: %d - CT: %d", tScore, ctScore) } public Death() {     set_hudmessage(0, 100, 155, 0.05, 0.35, 3, 1.0, 4.0, 0.5, 0.05, -1)         new killer = read_data(1)     new victim = read_data(2)         new WeaponName[20]     new WeaponID = get_weaponid(WeaponName)     read_data(4,WeaponName,19)         new vicname[33]     get_user_name(victim,vicname,32)     new killername[33]     get_user_name(killer,killername,32)         if (get_user_team(killer) == get_user_team(victim)) {         client_cmd(0,"play %s", TeamKillerSound)         show_hudmessage(0,"%s killed a team mate!", killername)         iKill[killer] = 0                 return PLUGIN_HANDLED     }     if (get_user_team(killer) != get_user_team(victim)) {                 if (read_data(3) && FirstBlood == true && WeaponID != CSW_DEAGLE) {             client_cmd(0,"play %s", HeadShotSound)             show_hudmessage(killer,"Headshot!")         }         if (WeaponID == CSW_DEAGLE && read_data(3) && FirstBlood == true) {             client_cmd(0,"play %s", EagleEyeSound)             show_hudmessage(killer,"%s has an Eagle eye!")         }                 if (FirstBlood == false) {             client_cmd(0,"play %s", FirstBloodSound)             show_hudmessage(0,"%s drew First Blood!", killername)             FirstBlood = true         }             iKill[killer] += 1     }     if (iKill[killer] == 2) {         client_cmd(killer,"play %s",DoubleKillSound)         show_hudmessage(killer,"Double Kill!")     } else if (iKill[killer] == 3) {         client_cmd(killer,"play %s",TripleKillSound)         show_hudmessage(killer,"Triple Kill!")     } else if (iKill[killer] == 5) {         client_cmd(killer,"play %s",MultiKillSound)         show_hudmessage(killer,"Multi Kill!")     } else if (iKill[killer] == 7) {         client_cmd(0,"play %s",KillingSpreeSound)         show_hudmessage(0,"%s is on a Killing Spree!", killername)     } else if (iKill[killer] == 9) {         client_cmd(killer,"play %s",UltraKillSound)         show_hudmessage(killer,"Ultra Kill!")     } else if (iKill[killer] == 10) {         client_cmd(0,"play %s",MonsterKillSound)         show_hudmessage(0,"M-M-M-MONSTER KILL!!!")     } else if (iKill[killer] == 11) {         client_cmd(0,"play %s",DominatingSound)         show_hudmessage(0,"%s is Dominating!", killername)     } else if (iKill[killer] == 12) {         client_cmd(0,"play %s",GodLikeSound)         show_hudmessage(0,"%s is Godlike!", killername)     } else if (iKill[killer] == 14) {         client_cmd(0,"play %s",RampageSound)         show_hudmessage(0,"%s is on a Rampage!", killername)     } else if (iKill[killer] == 15) {         client_cmd(0,"play %s",WickedSickSound)         show_hudmessage(0,"WHICKED SICK!!!^n%s has killed 15 without dying!", killername)     } else if (iKill[killer] > 15) {         client_cmd(0,"play %s", kSound[random_num(0, 4)])     }         if (tOwn == 3) {         set_task(2.0, "terrorOwn")         client_cmd(0,"play %s", OwnageSound)         show_hudmessage(0,"The TERRORISTS is OWNING!")     }     if (ctOwn == 3) {         set_task(2.0, "counterOwn")         client_cmd(0,"play %s", OwnageSound)         show_hudmessage(0,"The COUNTER-TERRORITS is OWNING!")     }     return PLUGIN_CONTINUE } public terrorOwn() {     set_hudmessage(200, 100, 0, 0.50, 0.35, 2, 6.0, 5.0, 0.2, 0.2, 3)     client_cmd(0,"play %s", OwnageSound)     show_hudmessage(0,"The COUNTER-TERRORITS are OWNING!") } public counterOwn() {     set_hudmessage(200, 100, 0, 0.50, 0.35, 2, 6.0, 5.0, 0.2, 0.2, 3)     client_cmd(0,"play %s", OwnageSound)     show_hudmessage(0,"The TERRORITS are OWNING!") } public giv(id) {         client_print(id,print_chat,"%d", iKill[id])     }
stigma is offline
Send a message via MSN to stigma Send a message via Skype™ to stigma
schnitzelmaker
Senior Member
Join Date: Apr 2006
Location: HERE
Old 10-06-2006 , 13:24   Re: CShack module
Reply With Quote #2

THE OFFSETS of CSHack modul are outdated,USING the modul will result in crashes/bugs/errors/... .
The Modul is NOT supported since over a year ago.
__________________

Last edited by schnitzelmaker; 10-06-2006 at 13:26.
schnitzelmaker is offline
stigma
Senior Member
Join Date: Mar 2005
Location: Denmark
Old 10-07-2006 , 05:07   Re: CShack module
Reply With Quote #3

Well isn't there another way to find the team scores, something like the cshack "cs_get_team_score" ???
stigma is offline
Send a message via MSN to stigma Send a message via Skype™ to stigma
VEN
Veteran Member
Join Date: Jan 2005
Old 10-07-2006 , 13:57   Re: CShack module
Reply With Quote #4

You can intercept the TeamScore message. See amxmodx\scripting\mapchooser.sma for example.
VEN is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 04:58.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode