Forum

> > CS2D > Scripts > Classes script help
Forums overviewCS2D overview Scripts overviewLog in to reply

English Classes script help

7 replies
To the start Previous 1 Next To the start

old Classes script help

J4x
User Off Offline

Quote
Hi evryone, i need some help here, can someone tell me why this dont work?
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
37
38
39
addhook("spawn","shoot")
function shoot(id)
menu(id,"Choose one, Grenadier|Famas,First Recon|Ump45,Overwatch|m249,Sniper|Scout,|Special ops|m4a1")
end

addhook("menu","mw2")
function mw2(id,menu,button)
if(menu=="Choose one") then
if(button==1) then
parse ("setmaxhealth "..id.." 105")
parse("setarmor "..id.." 110")
return "39,2,51,52";
end

if(button==2) then
parse ("setmaxhealth "..id.." 110")
parse("setarmor "..id.." 120")
return "24,6,51,52";
end

if(button==3) then
parse ("setmaxhealth "..id.." 107")
parse("setarmor "..id.." 115")
return "40,3,51,53";
end

if(button==4) then
parse ("setmaxhealth "..id.." 80")
parse("setarmor "..id.." 150")
return "34,1,52,53";
end

if (button==5) then
parse ("setmaxhealth "..id.." 110")
parse("setarmor "..id.." 105")
return "32,5,87,53,56";
end
end
end

old Re: Classes script help

loldlold123
User Off Offline

Quote
FN_Linkin Park has written
It opens but when i choose a class nothing happens..


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
37
38
39
40
41
42
43
44
45
46
addhook("spawn","shoot")
function shoot(id)
menu(id,"Choose one, Grenadier|Famas,First Recon|Ump45,Overwatch|m249,Sniper|Scout,|Special ops|m4a1")
end

addhook("menu","mw2")
function mw2(id,menu,button)
if(menu=="Choose one") then
if(button==1) then
parse ("setmaxhealth "..id.." 105")
parse("setarmor "..id.." 110")
parse("equip "..id.." 39")
parse("equip "..id.." 2")
parse("equip "..id.." 51")
parse("equip "..id.." 52")
elseif(button==2) then
parse ("setmaxhealth "..id.." 110")
parse("setarmor "..id.." 120")
parse("equip "..id.." 24")
parse("equip "..id.." 6")
parse("equip "..id.." 51")
parse("equip "..id.." 52")
elseif(button==3) then
parse ("setmaxhealth "..id.." 107")
parse("setarmor "..id.." 115")
parse("equip "..id.." 40")
parse("equip "..id.." 3")
parse("equip "..id.." 51")
parse("equip "..id.." 53")
elseif(button==4) then
parse ("setmaxhealth "..id.." 80")
parse("setarmor "..id.." 150")
parse("equip "..id.." 34")
parse("equip "..id.." 1")
parse("equip "..id.." 52")
parse("equip "..id.." 53")
elseif (button==5) then
parse ("setmaxhealth "..id.." 110")
parse("setarmor "..id.." 105")
parse("equip "..id.." 32")
parse("equip "..id.." 5")
parse("equip "..id.." 87")
parse("equip "..id.." 56")
end
end
end


use it

old Re: Classes script help

J4x
User Off Offline

Quote
I try by using that firts but everytime i spawn it gives me the weapon of a class, example : if first i choose special ops it gives me specail ops weapon, then if i die and choose overwatch it give me special ops and overwatch wepons.
To the start Previous 1 Next To the start
Log in to reply Scripts overviewCS2D overviewForums overview