EventScripts Forums
Mattie's EventScripts and Source Forums
Script Categories
16000 (15) abilities (15) addon (72) addons (17) admin (354) admins (23) advert (29) adverts (27) afk (18) alerts (12) ammo (25) anti (21) armor (11) auth (16) automatic (15) awp (29) ban (24) bank (11) ba_jail (35) bhop (46) block (27) bomb (48) bonus (25) boost (22) bot (36) bot-management (20) bots (24) bullet (13) bunnyhop (19) Buy (27) buymenu (13) c4 (12) cash (77) Change (14) chat (77) cheat (15) clan (17) classes (24) color (30) colors (20) command (23) commands (21) config (28) configurable (11) connect (58) counter (12) Counter-Strike-Source (20) CS:S (20) css (3381) custom (13) Damage (49) database (14) dead (19) Deagle (11) death (20) deathmatch (79) deathrun (17) deutsch (15) dice (12) disconnect (26) Dissolve (12) dm (24) dod:s (11) dods (501) download (13) easy (26) effect (14) effects (126) English (16) entity (24) est (12) es_tools (14) Eventscript (12) exploit (11) flashbang (27) français (104) french (36) fun (312) funny (18) Gabeee (11) game (12) gamemode (11) gameplay (175) German (11) give (22) gravity (16) grenade (28) grenades (32) gun (16) GunGame (31) GunGame5 (11) guns (20) Hack (16) headshot (37) health (72) hegrenade (15) help (11) hit (13) hl2dm (442) HP (26) hudhint (13) hun (17) hungarian (26) info (52) information (19) invisible (11) IP (13) jail (81) jailbreak (14) join (47) jump (19) kick (25) kill (51) kills (24) knife (66) leveling (38) LnD (14) lol (11) magyar (48) management (14) manager (11) mani (16) map (32) map-management (26) maps (17) match (21) Memphis-84 (13) menu (144) message (34) messaging (52) minecraft (12) mod (121) model (18) models (33) modye (16) money (50) motd (13) music (32) mute (20) nades (20) name (15) new (13) noblock (54) orangebox (23) player (49) player-management (31) player-tracking (28) popup (72) prop (13) propmenu (14) props (34) protect (12) protection (32) punish (11) punishment (51) python (80) quake (32) QuakeSounds (12) race (13) races (20) radio (30) random (47) rank (42) rates (15) rcon (12) realism (22) Regeln (23) respawn (69) restrict (41) round (26) rpg (32) rules (63) say (17) score (16) scout (29) Script (25) script-helper (25) scriptpack (33) sdk (171) server (61) server-tools (42) shop (12) showdamage (20) silly (31) simple (33) skin (17) skins (34) slay (13) soccer (14) sound (67) sounds (107) source (14) spanish (18) spawn (82) speed (26) statistics (14) stats (57) status (15) Steam (11) STEAMID (30) Superhero (15) surf (41) Team (30) team-balance (14) teleport (17) text (19) TF2 (142) time (23) timer (15) tools (15) tracers (19) triggers (11) uedi (17) uses_auth (18) vip (23) vote (39) voting (22) war (25) Warcraft (12) warcraft-source (20) wc3 (14) wcs (47) wcs:Python (32) weapon (88) weapons (120) web (16) welcome (14) wuerfeln (11) zm (26) zombie (100) zombiemod (55) zombies (12)
Script Authors
*XYZ*SaYnt (12) .:MiB:. (20) .:modye:. (14) .eMko* (6) 101satoon101 (12) 3R10N (24) 4u571n91 (5) 7355608 (9) Absolute (9) Ace Rimmer (40) adminc (5) adyshor37 (5) Adz (8) AgathaKnuppelkuh (8) aidden (8) ajax (5) ak_47 (6) Al3c Tr3v3lyan (6) allstareng (5) ashbash1987 (9) ATAMAH (7) Ayuto (5) aznone (5) B00M (5) BackRaw (41) BFH_RedBull (8) bigfabi (8) Bioko (10) blackshoxx (9) Blade (10) bladesback (13) bobdole (11) bodzsar1 (8) bonbon (36) Brainsucker (32) cagemonkey (8) capo azzlack (7) captain master (6) carbon-14 (10) CaskioUTF (5) cbirou (15) CbRRR (16) ChaCaLz2psy4 (5) CharlesT (5) Chris1888 (5) Chrisber (5) chrismrulz (10) Chun (6) cladiron (10) clipz934 (8) Colster (21) Cookieman8 (7) CrAzD (6) craziest (11) dani12356 (12) DanielB (19) Darkness123 (8) Dave (9) dbozan99 (7) dead man walker (12) deathx9 (5) Deathyy (16) dhack (17) Di[M]aN (12) DJ Fire-Black prod (8) DoCky (31) Don (15) dordtcore (9) DragonFreddo (8) Drassil (5) dretax14 (11) Einlanzers (47) EmbouT (10) emilplov (7) Errant (10) Eun (6) Fantole (10) FMIS (5) Franc1sco (17) freddukes (18) Frequency (6) Fridge (5) Fugi91 (6) Fulmine (5) G4ME (5) GAMEREN2 (8) german9114 (13) GODJonez (40) GoodfellaDeal (5) Hansi (6) Hisoka (6) HitThePipe (7) HOLLDIDAY (24) Icetouch (6) ichthys (25) Im the new guy (14) iNexus (13) infamous1 (9) isivisi (13) ispaine (7) Jackmaster (9) Jeff91 (45) JoeyT2006 (30) Juba_PornBorn (12) jxl180 (11) KDBFame (6) L'In20Cible (11) L.P.H (8) Largo Usagi (10) LnD (14) Lobe (11) loKkdoKk (8) lolo-le-haricot (7) LosNir (5) Lumpi@Work (9) M4rc3L-XCN (7) macshot (7) magyar-oneill (9) Matth (7) Mattie (21) mave1993 (5) MBchrono (15) McFly (20) Medda (5) Memphis-84 (15) Messiah93 (20) Mickyy (5) micmacx (6) minimal42O (5) Mitchell (5) Mixer57 (5) modye (6) Monster_Bitch1 (9) Mordavolt (7) motomoto (21) MrScriptaz (6) mryoung (6) MyTechZone.de (9) Nicolous (23) ojii (31) oliVier (10) Omega68 (6) Omega_K2 (11) Owned|Myself (8) P3N (7) pand3mic (6) parsimba (5) Pascal257 (9) PatPeter (7) PDrop (10) Phaedrus (18) PhantOm Fury (7) phoenix131 (9) pinkyyy -.- (5) pitbull0993 (7) PixelGamer (7) qwern (5) randomknifer (9) Raptor150 (31) Ratzee (6) ReaCtioN2oo9 (6) RedCliff (5) Rennnyyy (17) revolutionfighters (8) RideGuy (12) Rio (9) Roeliekt (6) roof (16) runamagic (13) Ryezin (5) sandking220 (6) Sarcasm_Poisoning (10) saRs| Johnny-5 (13) Schubaal (10) sea212 (5) sega74rus (15) sgt.angel (6) Shad0w (11) ShoTaXx# (7) sicilia (7) sicman_adrian (22) skillz92 (7) sn4k3 (18) Snake12 (7) snake38 (10) sonicsight (7) SpeedFreak (9) spoonman184 (12) stabby (22) stas (27) Stirni (6) stonedegg (8) Strontium Dog (30) SumGuy14 (25) SuperDave (49) surfteam (5) TaCo (5) TanaToS (17) Tealk (6) teowow (16) TheCheeTaH (27) TheDonFather (5) theresthatguy (6) Tiny Tod (7) tooshkan4uk (8) Totyahun (9) uedi (38) ultimatebuster (6) Undead (25) usernamesaretaken (15) wanted241 (9) Warren (13) westham (6) WhiteAvenger (7) Wonder (14) Wundermaxe (5) X-Mania (5) XE_ManUp (14) xfalcon61 (5) zSweetXz (5) ZZMatty (6) [Cs]Lord_Inferno2 (11) [DAP]Kickbutt (5) [NATO]Hunter (28) ||Wolf|| (10)
Search

Post new topic Reply to topic
Go to page 1, 2, 3, 4, 5, 6  Next
Author Message
User avatar
Site Administrator
Site Administrator
Profile

Posts: 7640
Location:
At Work
 
New postPosted: 2006-05-07, 11:10 am 
   Post subject: MugMod by Mattie

:arrow: MugMod v0.71 by Mattie

MugMod allows you to steal your victim's cash when you kill them with a knife.
Requirements:
------------------------------
  • EventScripts v1.0
------------------------------

Features:
------------------------------
  • Any knife kill will steal all of the victim's money.
  • An "owned" sound will play whenever a knife kill happens.
------------------------------

Notes:
------------------------------
  • The plugin version of MugMod will no longer be supported. This is now the official version.
  • This is a new 'Script Addon" rather than a script pack. It requires v1.0 of EventScripts.
  • To enable, add es_load mugmod to your autoexec.cfg.
------------------------------
Code:
------------------------------
Code:
// ******************************
// Mattie's MugMod v0.71
//      for Counter-Strike: Source
//
// * Description:
//      Any knife kill will steal all of the victim's money.
//
//
// * Install instructions:
//       1. Install Mattie's EventScripts plugins:
//            http://mattie.info/cs
//
//       2. Add the following line somewhere in autoexec.cfg:
//           es_load mugmod
//
//       3. (Optional) Review the config settings below and tweak
//
// ******************************


block config
{

// ******************************
//   MUGMOD SETTINGS
// ******************************
   // enable
   mattie_mugmod 1

   // enables round-start announcement
   mugmod_announce 1

   // enables kill sound
   mugmod_sounds 1
   mugmod_soundfile "bot/owned.wav"

   // what percentage of money?
   mugmod_percentage 100

// ******************************
//   MUGMOD SAYINGS
// ******************************
   // Feel free to change the sayings but be sure
   //    to increase the number_of_sayings if you add or remove
   es_keysetvalue mugmod sayings number_of_sayings 5

   es_keysetvalue mugmod sayings 1 "[MUGGING] Your money or your life. Well, I guess I'll take both."
   es_keysetvalue mugmod sayings 2 "[MUGGING] So I guess he's not going to be needing this wallet."
   es_keysetvalue mugmod sayings 3 "[MUGGING] They say you can't take it with you."
   es_keysetvalue mugmod sayings 4 "[MUGGING] Next time cough up the lunch money, loser."
   es_keysetvalue mugmod sayings 5 "[MUGGING] CHA-CHING!"

     // used when a victim is poor
   es_keysetvalue mugmod sayings nomoney "[MUGGING] JUST GREAT. All that work and nothing to show for it."

     // used for a knife teamkill
   es_keysetvalue mugmod sayings teamknifer "[MUG ATTEMPT] *** I'm a team back-stabber! ***"
}


//
//
// ONLY ADVANCED USERS BELOW THIS LINE
// ***********************************


event load
{
   es_log Loading MugMod...

   // called whenever the plugin is loaded
   es_setinfo mattie_mugmod 0
   es_makepublic mattie_mugmod
   es_setinfo mugmod_sounds 0
   es_setinfo mugmod_announce 0
   es_setinfo mugmod_soundfile 0
   es_setinfo mugmod_percentage 0.0

   es_keygroupdelete mugmod
   es_keygroupcreate mugmod
   es_keycreate mugmod sayings
   // import the user's configs
   es_doblock mugmod/config   

}

event round_start
{
   if (server_var(mattie_mugmod) > 0) do
   {
      // do the announcement
      if (server_var(mugmod_announce) > 0) then es_xmsg #multi #green[MugMod]#default Mugging is in effect. Take a player's money by killing them with a knife.
   }
}

event player_death
{
   if (server_var(mattie_mugmod) > 0) do
   {
      if (event_var(weapon) equalto knife) do
      {
         es_xsetinfo randsay 0
         // don't mug if they're on the same team.
         if (event_var(es_attackerteam) notequalto event_var(es_userteam)) do
         {
            // take money
            es_xsetinfo killercash 0
            es_xsetinfo victimcash 0
            es_getplayerprop killercash event_var(attacker) "CCSPlayer.m_iAccount"
            es_getplayerprop victimcash event_var(userid) "CCSPlayer.m_iAccount"
            es_setinfo muggedamount server_var(victimcash)
            // calculate percentage
            es_math muggedamount * server_var(mugmod_percentage)
            es_math muggedamount / 100
            es_math victimcash - server_var(muggedamount)
            es_math killercash + server_var(muggedamount)
            // complete the transaction
            es_setplayerprop event_var(attacker) "CCSPlayer.m_iAccount" server_var(killercash)
            es_setplayerprop event_var(userid) "CCSPlayer.m_iAccount" server_var(victimcash)
            
            // play sound
            if (server_var(mugmod_sounds) > 0) then es_xcexec_all playgamesound server_var(mugmod_soundfile)
            
            // say message
            if (server_var(muggedamount) <= 200) do
            {
               // poor victim
               es_xkeygetvalue randsay mugmod sayings nomoney
               es_cexec event_var(attacker) say server_var(randsay)
            }
            else
            {
               // rich victim
               es_xkeygetvalue randsay mugmod sayings number_of_sayings
               es_rand randsay 1 server_var(randsay)
               es_keygetvalue randsay mugmod sayings server_var(randsay)
               es_cexec event_var(attacker) say server_var(randsay)
            }
         }
         else
         {
            es_xkeygetvalue randsay mugmod sayings teamknifer
            es_cexec event_var(attacker) say server_var(randsay)
         }
      }
   }
}


// ******************************
//   END MUGMOD SCRIPT
// ******************************

------------------------------

Let me know if you have questions or comments. Enjoy!
-Mattie


Last edited by Mattie on 2007-04-17, 11:25 pm, edited 20 times in total.




User avatar
Experienced
Profile

Posts: 443
Location:
Scotland
 
New postPosted: 2006-05-07, 11:23 am 

I loved this mod and now that its a mod I love it even more. :D
Thanks Mattie.


User avatar
New User
Profile

Posts: 7
 
New postPosted: 2006-05-10, 7:41 am 

4me dosnt work can somebody help?


User avatar
Veteran
Profile

Posts: 872
Location:
New Jersey
 
New postPosted: 2006-05-10, 9:10 am 

can you explain as to how you got it uploaded, like direcotry file name

are you using the latest ES version? 1.0+

_________________
Image
BYFBO. Custom Maps, http://www.pandatales.org/BYFBO_maps.html


User avatar
Site Administrator
Site Administrator
Profile

Posts: 7640
Location:
At Work
 
New postPosted: 2006-05-10, 1:28 pm 

AntiGaranti wrote:
4me dosnt work can somebody help?


I'll be happy to help-- can you explain what you've installed and tried thus far? "doesn't work" doesn't tell me much. Does it announce? Does it not give cash? Do you see no sign of the addon?

What directory did you install to? Can you check that you followed these instructions?
http://www.mattie.info/cs/forums/viewtopic.php?t=46

Thanks,
-Mattie


User avatar
New User
Profile

Posts: 7
 
New postPosted: 2006-05-14, 4:09 pm 

Hi Mattie

so I install my eventscript.

1.to the cstrike/addons the EventScripts files for my linux server

2.autoexec:
// EventScripts Configuration
mattie_eventscripts 1
eventscripts_subdirectory events

eventscripts_register counter-bet

es_load mugmod

3.to cstrike/cfg/events/counter-bet files, and counter-bet works :D

4. to cstrike/addons/eventscripts/mugmod, and mugmod dosnt wok :x

would be nice if you can me help

THX


User avatar
Site Administrator
Site Administrator
Profile

Posts: 7640
Location:
At Work
 
New postPosted: 2006-05-14, 6:23 pm 

What version of ES did you download? It should have the mugmod files inside of it if you download v1.0.0.15 (you can check version by typing eventscripts_version in your console).

You need to be sure you've placed the following file:
es_mugmod.txt
into this directory:
cstrike/addons/eventscripts
You should have to do that if you installed ES v1.0 because it comes with that in the correct location (assuming you copied the contents of the zip directly into place with same directories).

Let me know the answers above and I'll clarify further,
-Mattie


User avatar
New User
Profile

Posts: 7
 
New postPosted: 2006-05-15, 1:39 pm 

Hi Mattie

so now i installed the v1.0.0.15 on my server.

i try so

to cstrike/addons/eventscripts/then the .txt es_mugmod.txt in the directory---->dosent work

then i try so

to cstrike/addons/eventscripts/mugmod/then the .txt es_mugmod.txt in the directory---->dosent work

i dont know what i do wrong!!!!


User avatar
Site Administrator
Site Administrator
Profile

Posts: 7640
Location:
At Work
 
New postPosted: 2006-05-15, 1:47 pm 

Download v1.0.0.16 that I just released and copy ALL of the files in it to the right directories (do not open any of the .txt files in a text editor).

Your directory structure would then look like this:
Code:
addons/mattie_eventscripts.dll
addons/mattie_eventscripts.res
addons/mattie_eventscripts.vdf
addons/mattie_eventscripts_i486.so

addons/eventscripts/diag/es_diag.txt
addons/eventscripts/corelib/es_corelib.txt
addons/eventscripts/mugmod/es_mugmod.txt
addons/eventscripts/attract/es_attract.txt
addons/eventscripts/unittest/es_unittest.txt
addons/eventscripts/syphon/es_syphon.txt
addons/eventscripts/slingshot/es_slingshot.txt


Does that pre-packaged MugMod and v1.0.0.16 of the plugin now work?
-Mattie


User avatar
New User
Profile

Posts: 7
 
New postPosted: 2006-05-15, 1:57 pm 

Yeah now mugmod works!!!!!!!

and what was now different?

Big Thanks for the fast help :D


User avatar
Site Administrator
Site Administrator
Profile

Posts: 7640
Location:
At Work
 
New postPosted: 2006-05-15, 2:25 pm 

ES handles extra spaces better in EventScripts v1.0.0.16. I'm not sure if that solved the problem or if something else fixed it, though.

-Mattie


User avatar
New User
Profile

Posts: 8
 
New postPosted: 2006-05-17, 3:34 pm 
   Post subject: Mug Annoyances

Love ur plugins bro. Keep up the good work. One easy ques. tho. In my console right after it says loaded mugmod it states

"EventScripts could not find the user group mugmod."

Everything works fine, this is on a linux box. All lines added where their needed, all files in the right directories, like i said it works fine. I have your newest version of E.S., and the mugmod script that was bundled with the .rar. So whats the aforementioned all about?


User avatar
Site Administrator
Site Administrator
Profile

Posts: 7640
Location:
At Work
 
New postPosted: 2006-05-17, 3:59 pm 
   Post subject: Re: Mug Annoyances

hexitnow wrote:
Love ur plugins bro. Keep up the good work. One easy ques. tho. In my console right after it says loaded mugmod it states

"EventScripts could not find the user group mugmod."

Everything works fine, this is on a linux box. All lines added where their needed, all files in the right directories, like i said it works fine. I have your newest version of E.S., and the mugmod script that was bundled with the .rar. So whats the aforementioned all about?


If you see that message, it means it's doing what it is supposed to do. Basically it's trying to clear out any old mugmod settings that might have been left in memory. It didn't find them so it couldn't clear them.

So you're all set.
-Mattie


User avatar
Newbie
Profile

Posts: 30
 
New postPosted: 2006-05-21, 5:59 am 

Love the mugmod, very popular on our server.

Is there anyway to have it working with just Statsme Minimum? We turned mani_stats off so we didn't have double stats and to stop "top" giving different ranks/score compared to "rank" top10" etc. but his broke the mod so we have had to turn mani_stats back on again.


User avatar
Veteran
Profile

Posts: 872
Location:
New Jersey
 
New postPosted: 2006-05-21, 9:55 am 

stats programs either mani or statsme should have nothing to do with mugmod.

_________________
Image
BYFBO. Custom Maps, http://www.pandatales.org/BYFBO_maps.html


User avatar
New User
Profile

Posts: 24
 
New postPosted: 2006-05-23, 3:28 am 

This works well & players love it. Installation went well.

I have one bug and one question:

Bug: Only one of the mugging phrases ever gets said, #5 on the list "Cha-Ching!" I did not modify anything, so I am unsure why none of the other phrases ever come up.

question: Any way to modify it so only half the money is stolen?

Thanks!


User avatar
Newbie
Profile

Posts: 30
 
New postPosted: 2006-05-23, 6:42 am 

TIM3PORT wrote:
stats programs either mani or statsme should have nothing to do with mugmod.


Thanks, yes your correct. Had a long play with config yesterday and nothing changed still have problem.

What happens is there is a delay between the actual mugging and the "owned" sound/mugmod message being played/displayed.

The delay is usually until the next person/bot is killed though sometimes longer. If you mug the very last person/bot that is left you get no sound or message at all.

I think everything is working, as in it will give you the money/play sound/display message but it is often VERY delayed which give the impression that it isn't working 90% of the time.

Rebooting the server with rcon quit does improve things to begin with but before the first map is over is will have started to play up again. :(
It could be that the more mugging you do the worse it gets but I've not tested that yet.

Any ideas?

Only other mod we have on is Ace Rates
Installed with mattie_eventscripts_100beta016


Last edited by fopeyducker on 2006-05-23, 6:50 am, edited 1 time in total.

User avatar
Site Administrator
Site Administrator
Profile

Posts: 7640
Location:
At Work
 
New postPosted: 2006-05-23, 6:46 am 

fopeyducker wrote:
TIM3PORT wrote:
stats programs either mani or statsme should have nothing to do with mugmod.


Thanks, yes your correct. Had a long play with config yesterday and nothing changed still have problem.

What happens is there is a delay between the actual mugging and the "owned" sound/mugmod message being played/displayed.

The delay is usually until the next person/bot is killed though sometimes longer. If you mug the very last person/bot that is left you get no sound or message at all.

I think everything is working, as in it will give you the money/play sound/display message but it is often VERY delayed which give the impression that it isn't working 90% of the time.

Rebooting the server with rcon quit does improve things to begin with but before the first map is over is will have started to play up again. :(

Any ideas?


If you're seeing delays like that, it's because of another script you are running. What other script addons or script packs are you running on your server with EventScripts? One of them is overrunning the command queue (bad) and is causing all scripts to screw up. We would need to diagnose which script that would be. (This could also be caused by a plugin, but I've never seen it-- it's always a rogue script.)

Thanks,
-Mattie


Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 108 posts ]  Go to page 1, 2, 3, 4, 5, 6  Next


Who is online

Users browsing this forum: No registered users and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group