Forum

> > CS2D > Scripts > Script not Working...
Forums overviewCS2D overview Scripts overviewLog in to reply

English Script not Working...

5 replies
To the start Previous 1 Next To the start

old Script not Working...

Obviously Exactly Myself
User Off Offline

Quote
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
cheats = {1} -- Allow Cheat Codes (1=true,0=false)

addhook("say","codes")
function codes(id,txt)
	if cheats == 1 then
		if (txt=="BattleBottle") then
			parse("equip "..id.." 73")
			parse("setweapon "..id.." 73")
		else
			if (txt=="LightAmplificationByStimulatedEmissionOfRadiation") then
				parse("equip "..id.." 45")
				parse("setweapon "..id.." 45")
			elseif (txt=="RocketPropelledGrenade") then
				parse("equip "..id.." 47")
				parse("setweapon "..id.." 47")
			elseif (txt=="WeLoveSatanForReal") then
				parse("equip "..id.." 46")
				parse("setweapon "..id.." 46")
			elseif (txt=="RefillNeededForMe") then
				parse("equip "..id.." 64")
			elseif (txt=="MyBodyReallyNeedsSomeProtection") then
				parse("equip "..id.." 83")
			elseif (txt=="HiddenWithCamouflage") then
				parse("equip "..id.." 84")
			elseif (txt=="SpeedySprinting") then
				parse("speedmod "..id.." 25")
			elseif (txt=="ReallyWantMyHealthToBeMaximized") then
				parse("setmaxhealth "..id.." 250")
			elseif (txt=="NeverWentToHell") then
				parse("setdeaths "..id.." 0")
			elseif (txt=="BeggingForAllYourMoney") then
				parse("setmoney "..id.." 16000")
			end
		end
	end
end

old Re: Script not Working...

Kel9290
User Off Offline

Quote
change
1
cheats = {1} -- Allow Cheat Codes (1=true,0=false)
to
1
cheats = 1 -- Allow Cheat Codes (1=true,0=false)
and
1
2
3
4
5
if (txt=="BattleBottle") then
               parse("equip "..id.." 73")
               parse("setweapon "..id.." 73")
          else
               if (txt=="LightAmplificationByStimulatedEmissionOfRadiation") then
to
1
2
3
4
if (txt=="BattleBottle") then
               parse("equip "..id.." 73")
               parse("setweapon "..id.." 73")
          elseif (txt=="LightAmplificationByStimulatedEmissionOfRadiation") then

old Re: Script not Working...

Kel9290
User Off Offline

Quote
Yep.
More >
To the start Previous 1 Next To the start
Log in to reply Scripts overviewCS2D overviewForums overview