EventScripts Forums
Mattie's EventScripts and Source Forums
Mattie recommends...
Premier Sponsor:Platinum Sponsor:
 
Script Categories
16000 (15) abilities (15) addon (71) addons (17) admin (348) admins (23) advert (27) adverts (26) afk (17) alerts (12) ammo (25) anti (20) armor (11) auth (16) automatic (15) awp (29) ban (24) ba_jail (34) bhop (45) block (27) bomb (47) bonus (25) boost (21) bot (35) bot-management (20) bots (24) bullet (13) bunnyhop (18) Buy (27) buymenu (13) c4 (12) cash (76) Change (14) chat (75) cheat (15) clan (17) classes (24) color (30) colors (20) command (23) commands (20) config (28) configurable (11) connect (55) counter (11) Counter-Strike-Source (18) CS:S (20) css (3320) custom (13) Damage (48) database (14) dead (19) Deagle (11) death (19) deathmatch (79) deathrun (17) deutsch (13) dice (11) disconnect (24) Dissolve (12) dm (24) dod:s (11) dods (494) download (12) easy (26) effect (14) effects (125) 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 (20) gravity (15) grenade (28) grenades (32) gun (15) GunGame (31) GunGame5 (11) guns (20) Hack (16) headshot (37) health (70) hegrenade (15) help (11) hit (13) hl2dm (432) HP (25) hudhint (11) hungarian (24) info (52) information (17) invisible (11) IP (13) jail (79) jailbreak (14) join (45) jump (19) kick (25) kill (50) kills (23) knife (65) leveling (38) LnD (14) lol (11) magyar (34) management (14) manager (11) mani (16) map (31) map-management (26) maps (17) match (21) Memphis-84 (13) menu (139) message (30) 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 (46) player-management (31) player-tracking (28) popup (70) prop (13) propmenu (14) props (34) protect (11) protection (31) punish (11) punishment (51) python (79) quake (32) QuakeSounds (12) race (13) races (20) radio (29) random (47) rank (41) rates (15) rcon (12) realism (22) Regeln (22) respawn (67) restrict (40) round (26) rpg (32) rules (60) say (17) score (15) scout (29) Script (25) script-helper (25) scriptpack (33) sdk (171) server (60) server-tools (42) shop (12) showdamage (19) silly (31) simple (32) skin (17) skins (34) slay (13) soccer (14) sound (65) sounds (106) source (13) spanish (18) spawn (81) speed (25) statistics (13) stats (55) status (15) Steam (11) STEAMID (29) Superhero (15) surf (41) Team (29) team-balance (14) teleport (16) text (17) TF2 (142) time (22) 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 (87) weapons (116) web (16) welcome (13) wuerfeln (11) zm (26) zombie (99) 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) 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) 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) 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) 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 (19) Mickyy (5) micmacx (6) Mitchell (5) Mixer57 (5) modye (6) Monster_Bitch1 (9) Mordavolt (7) motomoto (12) MrScriptaz (6) mryoung (6) MyTechZone.de (8) 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 (10) stabby (22) stas (27) Stirni (6) stonedegg (7) 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
Author Message
User avatar
Power User
Profile

Posts: 510
Location:
Tampa
 
New postPosted: 2006-09-30, 1:56 pm 
   Post subject: Restocking any weapon / ammo is adjustable in the cfg block

// ******************************
// RESTOCK V1.0a
// for Day Of Defeat: Source
//
// * NOTICE: This script only sets the max limit and does not compound the ammo.
// * Also restock has unlimited use as of now.
//
// * Description:
// Bind a key to !restock (bind q !restock)
// This will restock any weapon in your hands
// For the grenades , smokegrenades , and rifle grenades you MUST have atleast 1.
// Type ammohelp to get help with console and binding. Requires Es_Tools v.416d or Mani_Admin 1.BetaN for help menu's
// When restocking a message comes up telling you how many bullets/nades/riflenades were given.
// WebSite help: http://forums.mattie.info/cs/forums/vie ... 6296#76296
// * Credits:
// Written By: cLaD
// E-mail: [email protected]
// Thanks ljfsp for your infomation here http://forums.mattie.info/cs/forums/vie ... php?t=8536
// I couldn't have done this with out it.
// * Requirements:
// EventScripts v1.1.1.015w or newer
// Es_Tools v.416d or Mani_Admin 1.BetaN ((( ONLY NEEDED ))) for the "ammohelp" menu or motd.
//
// ********************************************************************

The ammo given is completely adjustable in the config block.
Image Image Image Image

=============

UPDATED:
Added option to say restockme in the player chat.





User avatar
Power User
Profile

Posts: 510
Location:
Tampa
 
New postPosted: 2006-11-27, 3:07 pm 

updated.


User avatar
New User
Profile

Posts: 6
Location:
frt campbell ky
 
New postPosted: 2008-01-03, 1:59 pm 

hey guys this is just a [CENSORED] thought how about u make it more sence to ppl who arnt really smart such as in ur dl were the hell is cfg block at. give us [CENSORED] instructions. this [CANDY NOODLES] u put out is for [CENSORED] rocket scientists i just need simple [CANDY NOODLES].


User avatar
Power User
Profile

Posts: 510
Location:
Tampa
 
New postPosted: 2008-01-03, 9:32 pm 

wow, this remark tells me you haven't even opened the txt file and looked at it.
can i assume you know how to install a script ?

Code:
// ******************************
//  RESTOCK  V1.0a
//      for Day Of Defeat: Source
//
// * NOTICE: This script only sets the max limit and does not compound the ammo.
// *      Also restock is unlimited as of now.
//
// * Description:
//      Bind a key to !restock (bind q !restock) OR type "restockme" in the chat but without the quotes.
//      This will restock any weapon in your hands
//      For the grenades , smokegrenades , and rifle grenades you MUST have atleast 1.
//      Type  ammohelp  to get help with console and binding. Requires Es_Tools v.416d or Mani_Admin 1.BetaN for help menu's
//      When restocking a message comes up telling you how many bullets/nades/riflenades were given.
//      WebSite help: http://forums.mattie.info/cs/forums/viewtopic.php?p=76296#76296
// 
//
// * Credits:
//       Written By: cLaD
//       E-mail: [email protected]
//       Thanks ljfsp for your infomation here http://forums.mattie.info/cs/forums/viewtopic.php?t=8536
//       I couldn't have done this with out it.
// * Requirements:
//      EventScripts v1.1.1.015w or newer
//      Es_Tools v.416d or Mani_Admin 1.BetaN  ((( ONLY NEEDED ))) for the "ammohelp" menu
//
// ********************************************************************
//
//  Only edit the config block, here's an example
//   es_setinfo k98_ammo 100 |Where 100 is the ammo that can be adjusted.
//  Scroll down and look for the weapon_k98 ( all weapons start with WEAPON_ ).
//  Below it there is a //comment// line. It gives the default ammo ,and the max ammo for that weapon.
//  ++++++++++++++++++++ ONLY USE THAT FOR REFERENCE +++++++++++++++++++

block load
{
  //Version
   es_xsetinfo RestockVersion v1.0
   es_makepublic RestockVersion
}

event config
{
          es_setinfo k98_ammo 100
         es_setinfo a_gren_ger_ammo 3
         es_setinfo mp40_ammo 510
         es_setinfo mp44_ammo 750
         es_setinfo k98_scoped_ammo 80
         es_setinfo mg42_ammo 500
         es_setinfo pschreck_ammo 20
         es_setinfo c96_ammo 60
         es_setinfo frag_ger_ammo 5
         es_setinfo smoke_ger_ammo 5
         es_setinfo colt_ammo 210
         es_setinfo grand_ammo 160
         es_setinfo a_gren_us_ammo 3
         es_setinfo thompson_ammo 280
         es_setinfo bar_ammo 500
         es_setinfo spring_ammo 80
         es_setinfo 30cal_ammo 600
         es_setinfo bazooka_ammo 20
         es_setinfo m1carbine_ammo 180
         es_setinfo frag_us_ammo 5
         es_setinfo smoke_us_ammo 5
         es_setinfo p38_ammo 160                 
}

//=============================================================================
//
//      NOTHING TO EDIT BELOW THIS POINT
//
//=============================================================================


User avatar
New User
Profile

Posts: 6
Location:
frt campbell ky
 
New postPosted: 2008-01-03, 9:58 pm 

i no how to install all this [CANDY NOODLES] were the hell is cfg block i dont need ur guys nerdy slang for [CANDY NOODLES] also were is ammo menu. i am very good with comps its wut i do in the army this [CANDY NOODLES] is confusing.


User avatar
Power User
Profile

Posts: 510
Location:
Tampa
 
New postPosted: 2008-01-04, 2:43 am 

well i'll tell you what,get your head out of your ass and RTFM.
I don't think i want to help you with your adittude you can figure it out your self.


User avatar
Newbie
Profile

Posts: 38
Location:
Melbourne, Australia
 
New postPosted: 2008-01-04, 5:56 pm 

LOL!!!! What a tool. Don't blame ya cladiron.


User avatar
New User
Profile

Posts: 7
 
New postPosted: 2008-03-17, 11:59 am 
   Post subject: Help?

I need some help!

I am running es tools/ eventscripts(both the latest)
mani admin mod (metamod source obviously)
DODSRealism
Now i'm trying to get !restockme to work, i see it responding on my server to restockme without the !, and it says it's given ammo, but the players have nothing....
Any help would be great...i'll dig up the error code.

¢Volkl {RD}: restockme
Syntax: es_setplayerprop <userid> <propertypath> <value>
Unknown command "CDODPlayer.baseclass.localdata.m_iAmmo.008"
Unknown command "server_var"


User avatar
Power User
Profile

Posts: 510
Location:
Tampa
 
New postPosted: 2008-03-18, 4:05 am 

Well for starters lets make sure we know this.
restockme is for chat.
!restock is for a bind in the console. bind q !restock

Have you adjusted anything ?



Also in the config block, edit the line at the top part from event config to block config so it looks like this.

block config
{
es_setinfo k98_ammo 100
es_setinfo a_gren_ger_ammo 3
es_setinfo mp40_ammo 510
es_setinfo mp44_ammo 750
es_setinfo k98_scoped_ammo 80
es_setinfo mg42_ammo 500
es_setinfo pschreck


User avatar
New User
Profile

Posts: 7
 
New postPosted: 2008-03-18, 6:07 am 
   Post subject: even more confused!

This is strange. I just copied the entire es_restockme.txt to my addons/restockme/es_restockme.txt

Now, on my linux server, i get "you have recieved" and that's it, you don't see a amount, it looks like the server_var is not correct/giving it problems.

I figured it might be something with the linux box, so i installed it to my 2k3 box. Now this is where it gets strange. Now i get the msg "You have recieved 0 shells" and it actually strips ALL my remaining clips. In any gun/grenade/etc.

The configs are identical, and i have not adjusted anything. I would like to change it from restockme(in chat) to ammo, but it's not that big a deal. I'd just like it working.

On the linux server i have uninstalled ALL other plugins. As well as the 2k3 server. it's only restockme loading on start, and i've tried loading it manually and changing maps.

Now i have the same problem with DOGS RPG script. I can buy weapons, but the kar 93 comes with only the bullets in it. As well as i can't buy more he grenades for the kar or any player...Maybe it's something with mani_admin?

I have metamod source and maniplugin on both servers. but no other eventscripts loading.

on the nix box i see this, on the windows box the console doesn't output as much info

"Short.Shirt.No.Underwear: restockme
Unknown command "the"
Unknown command "RESTOCK"
Syntax: es_setplayerprop <userid> <propertypath> <value>
Unknown command "CDODPlayer.baseclass.localdata.m_iAmmo.021"
Unknown command "server_var"


EDIT: i was able to remove the unkonwn command on the linux server, but now it behaves the exact same as the 2k3 box. If i have 10 clips and type restockme, i loose all 10, and am only left with what's loaded in my clip.
So i guess that's progress, as now both boxes don't give a error, but actually do the opposite of what i'm trying to do...
"

This is how my config looks right now(the top portion)

Quote:
block config
{
es_setinfo k98_ammo 100
es_setinfo a_gren_ger_ammo 3
es_setinfo mp40_ammo 510
es_setinfo mp44_ammo 750
es_setinfo k98_scoped_ammo 80
es_setinfo mg42_ammo 500
es_setinfo pschreck_ammo 20
es_setinfo c96_ammo 60
es_setinfo frag_ger_ammo 5
es_setinfo smoke_ger_ammo 5
es_setinfo colt_ammo 210
es_setinfo grand_ammo 160
es_setinfo a_gren_us_ammo 3
es_setinfo thompson_ammo 280
es_setinfo bar_ammo 500
es_setinfo spring_ammo 80
es_setinfo 30cal_ammo 600
es_setinfo bazooka_ammo 20
es_setinfo m1carbine_ammo 180
es_setinfo frag_us_ammo 5
es_setinfo smoke_us_ammo 5
es_setinfo p38_ammo 160
}


i am guessing it's something to do with mani_admin ...because dog_dod_rpg does the same thing, i can't see any ammo given, and i think a custom command for ammo actually strips it, unless the kar93 is suppose to come with 1 clip only(not even 1 clip to reload)


User avatar
Power User
Profile

Posts: 510
Location:
Tampa
 
New postPosted: 2008-03-19, 4:28 am 

heh, easy fix for both.

Always remember the folder name is the same as the script name, minus the "es_"

for example my script is called es_restock.txt, so my folder is called restock.
eventscripts\restock\es_restock.txt

you have restockme , wrong name.
so i'm guessing you may have his file and folder names messed up aswell.


User avatar
New User
Profile

Posts: 7
 
New postPosted: 2008-03-19, 6:35 am 

Thanks so much. That fixed the problem, i had it named as es_restockme.txt and it was in restockme folder

Now i have 2 more requests if you would be so kind. I want to change it to "ammo" no "'s in chat to get ammo. As well, i don't want it to reload any other weapons other then pistols? i tried changing it all to 0, but that strips all remaining clips. As well as i tried removing everything but the pistol, but still the same result? any more help would be greatly appreciated, thank you!


User avatar
Power User
Profile

Posts: 510
Location:
Tampa
 
New postPosted: 2008-03-19, 7:10 am 

glad you got it working.

In the player_say section at the bottom, change the word restockme to ammo.

Code:
{
        es_xsetinfo r_curweapon 0
        if(event_var(text) = "[color=red]ammo[/color]") do
          {
          es est_GetGun r_curweapon event_var(userid)
          //
          // =========== AXIS ============
          // 
            if(server_var(r_curweapon) = weapon_k98) do
          {
              // Rifleman Primary Ammo 60 , Max Ammo 495
          es_setplayerprop event_var(userid) CDODPlayer.baseclass.localdata.m_iAmmo.005 server_var(k98_ammo)
          es_tell event_var(userid) [RESTOCK]: You have received server_var(k98_ammo) shells.
  }




to disable the other weapons like you want, you would need to comment each es_setplayerprop and es_tell line for that weapon.

Code:
            if(server_var(r_curweapon) = weapon_k98) do
          {
              // Rifleman Primary Ammo 60 , Max Ammo 495
[color=red]//[/color]          es_setplayerprop event_var(userid) CDODPlayer.baseclass.localdata.m_iAmmo.005 server_var(k98_ammo)
[color=red]// [/color]         es_tell event_var(userid) [RESTOCK]: You have received server_var(k98_ammo) shells.
   }
}


OR
you could look above each weapon, i have the default (should be) and i have the max for that weapon.


User avatar
New User
Profile

Posts: 4
 
New postPosted: 2008-03-27, 8:31 pm 

hello, i just tried to load this...

I have the latest EZ_Toolz and ES with metamod source and DODSRealism...

I just uploaded the es_restock.txt to addons/evenscripts/restock

and

added es_load restock to my autoexec.cfg..

when i restart my server it doesn't load at all.

any ideas?

on a side note, the colt is listed under axis and the p38 under allies... any particular reason?


User avatar
Power User
Profile

Posts: 510
Location:
Tampa
 
New postPosted: 2008-03-27, 8:58 pm 

Ok , let cover a few things here just to check.

when you downloaded it , make sure it did save as es_restock.txt , i have noticed it will add numbers at the end like es_restock_345.txt

have you typed es_load in the console to see if it is really loading ?
how are you trying to use it ?
do this in game console.

bind <key> !restock


User avatar
New User
Profile

Posts: 4
 
New postPosted: 2008-03-27, 9:28 pm 

ok, there are no numbers after the filename, i did es_load in console and it shows the regular stuff and DODSRealism loaded, but it doesnt show restock at all

if i bind a key ingame to !restock and hit it it does nothing at all


User avatar
New User
Profile

Posts: 4
 
New postPosted: 2008-03-27, 9:34 pm 

zomg... let me tell you why i suck...

so i have a regular DOD server and a DOD:S server. well i was saving my autoexec.cfg file into the dod folder instead of the dod/cfg folder. problem solved...

thanks bro


User avatar
Power User
Profile

Posts: 510
Location:
Tampa
 
New postPosted: 2008-03-28, 12:51 am 

;-)


Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 23 posts ]  Go to page 1, 2  Next


Who is online

Users browsing this forum: No registered users and 1 guest


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