Membuat Script

Embed Size (px)

DESCRIPTION

game

Citation preview

Setup| Script making | 0 komentari First, we'll need to make an autoexec file for your binds to go in...- Open up the:C:\Valve\Steam\Steamapps\youremail\counter-strike source\cstrike\cfgfolder.- Right-Click anywhere in the folder, from the pop-up list go to New >>> TextDocument.*** Use Notepad for creating / editing your configs to prevent any possibleproblems ***- Once you open up the new text file, go to File >>> Save As...- For the File name: "autoexec.cfg"- For the Save as type: "All Files (*.*)"- For the Encoding: ANSI- Once it's saved it will create a NEW document called an autoexec.cfg, this iswhere you will enter in your commands.Entering Commands| Script making | 0 komentari - Now, here's how the buy scripting works in Source. First type which key thatyou want to bind (for this example we will use f1):bind f1- Now, decide which weapon you would like f1 to buy, we'll use the AK-47:bind f1 "buy ak47"- And that's it...of course there's more things you can add such as buyingPrimary Ammo, Kevlar, Grenades, etc. So we'll do one so that we buy anAK-47, Primary Ammo, Kevlar, and a HE grenade:bind f1 "buy ak47; buy primammo; buy vest; buy hegrenade"- You can also combine 2 different team specific weapons into the same binds.Like the AK-47 and M4A1:bind f1 "buy ak47; buy m4a1; buy primammo; buy vest; buy hegrenade"- The following formats can be used and your scripts will still functionproperly:bind f1 "buy ak47; buy primammo; buy vest; buy hegrenade"bind "f1" "buy ak47; buy primammo; buy vest; buy hegrenade"bind F1 "buy ak47; buy primammo; buy vest; buy hegrenade"bind f1 "buy AK47; buy PRIMAMMO; buy VEST; buy HEGRENADE"bind f1 "buy ak47;buy primammo;buy vest;buy hegrenade"- You can also add text headers in your autoexec in order to keep differenttypes of binds separated and labeled. Just add "//" to the beginning to makesure that the game doesn't try to read it as a command. The following is anexample://Weapon Bindsbind f1 "buy ak47; buy m4a1; buy primammo; buy vest; buy hegrenade"bind f2 "buy sg552; buy aug; buy primammo; buy vest; buy hegrenade"//Game Configscl_showfps 1cl_smooth 0Weapon Bind Names| Script making | 0 komentari Here is the list of the weapons and equipment you can buy and their properbind name...also note that these are the real weapon names and not the fakeVGUI weapon names just in case you're wondering why they're listed differentlyhere.- Pistols:"Glock18 Select Fire" - glock"H&K USP .45 Tactical" - usp"SIG P228" - p228"Desert Eagle" - deagle"FN Five-Seven" - fiveseven"Dual Beretta 96G Elite" - elite- Shotguns:"Benelli M3 Super90" - m3"Benelli XM1014" - xm1014- Submachine Guns:"Steyr Tactical Machine Pistol" - tmp"Ingram MAC-10" - mac10"H&K MP5-Navy" - mp5navy"H&K UMP45" - ump45"FN P90" - p90- Assault Rifles:"Galil" - galil"Famas" - famas"AK-47" - ak47"Colt M4A1 Carbine" - m4a1"SIG SG-552 Commando" - sg552"Steyr Aug" - aug- Sniper Rifles:"Steyr Scout" - scout"SIG SG-550 Sniper" - sg550"AI Arctic Warfare/Magnum" - awp"H&K G3/SG-1 Sniper Rifle" - g3sg1- Machine Gun:"FN M249 Para" - m249- Ammunition:"Primary Ammo" - primammo"Secondary Ammo" - secammo- Equipment:"Kevlar Vest" - vest"Kevlar Vest & Helmet" - vesthelm"Flashbang" - flashbang"HE Grenade" - hegrenade"Smoke Grenade" - smokegrenade"Defuse Kit" - defuser"NightVision Goggles" - nvgsRadio Bind Names| Script making | 0 komentari You can also bind radio commands now, here is the list of the radio messagesand their proper bind name...- Radio A:"Cover Me" - coverme"You Take the Point" - takepoint"Hold This Position" - holdpos"Regroup Team" - regroup"Follow Me" - followme"Taking Fire, Need Assistance" - takingfire- Radio B:"Go" - go"Fall Back" - fallback"Stick Together Team" - sticktog"Get in Position" - getinpos"Storm the Front" - stormfront"Report In" - report- Radio C:"Affirmative/Roger" - roger"Enemy Spotted" - enemyspot"Need Backup" - needbackup"Sector Clear" - sectorclear"I'm in Position" - inposition"Reporting In" - reportingin"She's gonna Blow!" - getout"Negative" - negative"Enemy Down" - enemydownKey Bind Names| Script making | 0 komentari Here is the list of the keyboard keys you can bind and their proper bindname...[Esc ] [F1] [F2] [F3] [F4] [F5] [F6] [F7] [F8] [F9] [F10] [F11] [F12][`] [1] [2] [3] [4] [5] [6] [7] [8] [9] [0] [-] [=] [Backspace][ Tab ] [Q] [W] [E] [R] [T] [Y] [U] [I] [O] [P] [{] [}] [ \ ][ CAPS ] [A] [S] [D] [F] [G] [H] [J] [K] [L] [;] ['] [ Enter ][ Shift ] [Z] [X] [C] [V] [B] [N] [M] [,] [.] [/] [ Shift ][Ctrl] [N/A] [Alt] [ Space Bar ] [Alt] [N/A] [N/A] [Ctrl]Keyboard Key Bind Name------------ -------------Space Bar - spaceCaps Lock - capslockEscape - escapeF1 - f1F2 - f2F3 - f3F4 - f4F5 - f5F6 - f6F7 - f7F8 - f8F9 - f9F10 - f10F11 - f11F12 - f12Pause - pauseLeft Quote - `Hyphen - -Equals Sign - =Backspace - backspaceTab Key - tabLeft Bracket - ]Right Bracket - [Forward Slash - /Semicolon - semicolonRight Quote - 'Back Slash - \Shift Key - shiftEnter - enterComma - ,Control - ctrlAlt - altOne - 1Two - 2Three - 3Four - 4Five - 5Six - 6Seven - 7Eight - 8Nine - 9Zero - 0A - aB - bC - cD - dE - eF - fG - gH - hI - iJ - jK - kL - lM - mN - nO - oP - pQ - qR - rS - sT - tU - uV - vW - wX - xY - yZ - zUp Arrow - uparrowDown Arrow - downarrowRight Arrow - rightarrowLeft Arrow - leftarrowInsert - insHome - homePage Up - pgupPage Down - pgdnDelete - delEnd - endMouse Button 1 - mouse1Mouse Button 2 - mouse2Mouse Button 3 - mouse3Mouse Button 4 - mouse4Mouse Button 5 - mouse5Mouse Wheel Up - mwheelupMouse Wheel Down - mwheeldownKeypad Key Key Bind Name---------- -------------1 - kp_end2 - kp_downarrow3 - kp_pgdn4 - kp_leftarrow5 - kp_56 - kp_rightarrow7 - kp_home8 - kp_uparrow9 - kp_pgup0 - kp_ins+ - kp_plus- - kp_minus/ - kp_slash. - kp_del* - *Enter - kp_enterImportant Notes| Script making | 0 komentari - Buy scripting in source is a lot more lenient when it comes to format. Youcan use capital letters for the weapon names and keys, also you can removethe spaces between different items (buy vest;buy primammo) and your scriptwill still work properly. Although mistakes can still happen...- If your scripts don't seem to be working, first make sure that you've setupyour autoexec properly, then check spelling, and then format. Most errorsare caused by misspelling.- If you don't have enough money to buy all the items, the game will buy in theorder that you have the weapons/equipment listed in your script.- If you just want to buy single clips of ammo use either buyammo1 for primaryammo, or buyammo2 for secondary ammo, very useful for it you just want to buyone or two magazines of AWP ammo or pistol ammo.- You can bind a key to use a certain weapon if you would like, which is veryhelpful with grenades, the following is an example:bind mouse4 "use weapon_hegrenade"Sample Autoexec| Script making | 0 komentari The following is an example of an autoexec that has buy scripts, toggle scriptsand game configs in it so you can see an example of how it all looks when usedtogether.//Walk Toggle Scriptalias walk "+speed; bind q run"alias run "-speed; bind q walk"bind q "walk"//Net_Graph Scriptalias +netgraph "net_graph 3"alias -netgraph "net_graph 0"bind ctrl "+netgraph"//Buy Menu Scriptsbind kp_home "buy deagle; buyammo2; buyammo2"bind kp_uparrow "buy scout; buyammo1"bind kp_pgup "buy mp5navy; buy primammo"bind kp_leftarrow "buy galil; buy famas; buy primammo"bind kp_5 "buy ak47; buy m4a1; buy primammo"bind kp_rightarrow "buy sg552; buy aug; buy primammo"bind kp_end "buy hegrenade; buy flashbang; buy smokegrenade"bind kp_downarrow "buy primammo; buy secammo"bind kp_pgdn "buy vest; buy vesthelm"//Game Configscl_showfps 1hud_drawhistory_time 1hud_deathnotice_time 3hud_saytext_time 5cl_smooth 0cl_ragdoll_collide 1bind mouse5 "use weapon_hegrenade"bind mouse4 "use weapon_flashbang"bind mouse3 "use weapon_smokegrenade"Older Posts HomeSubscribe to: Posts (Atom)FeedRSS Feed Email Subscription Add to Technorati FavoritesSearch Counter-Strike: Source Cheats & Codes| cheats, codes | 0 komentari Press the ` key to bring up the console then type in sv_cheats 1 , then type in a cheat:Code: Description:r_shadowids 1 with sv cheats on in console Moving numbers on screen showing players shadowssv_gravity # Replace # with number to change gravityimpulse 101 16,000 cashnet_graph 0 Won't show stats at bottom of screennet_graph 1 Show's stats at bottom of screencl_crosshairscale 4000 small crosshair, doesnt get bigger or smallernoclip let's you fly around the map and not get hurtmat_wireframe 3 See through walls.host_timescale * Replace * with a number to get the desired speed. Don't go too high or your server/CSS will crash. Higher you go, less FPS and vice versa.sv_showimpacts Puts a square where bullets hit. Very useful for learning how to control sprays. Sv_cheats is not requiredbuy c4 Free bomb, as terroristOlder Posts HomeSubscribe to: Posts (Atom)FeedRSS Feed Email Subscription Add to Technorati FavoritesSearch