Forum

> > CS2D > Scripts > Equip on spawn script not working.
Forums overviewCS2D overview Scripts overviewLog in to reply

English Equip on spawn script not working.

5 replies
To the start Previous 1 Next To the start

old Equip on spawn script not working.

deadlox995
User Off Offline

Quote
1
2
3
4
5
6
7
8
9
10
11
12
============Spawn Equip Lua============
==========USGN: Deadlox & 121114============

addhook("spawn","eq")
function eq(id) 
    for id 1, 32 do       
         parse("equip "..id.." 74")
         parse("equip "..id.." 91") 
         parse("equip "..id.." 79")  
         parse("equip "..id.." 73")
         parse("equip "..id.." 77") 
end

taht is code plz chekc it qut what wrong iwth it plz!!!

old Re: Equip on spawn script not working.

Devil-Thanh
GAME BANNED Off Offline

Quote
you miss 1 "end"
but I prefer this one:
1
2
3
4
5
6
7
8
addhook("spawn","eq")
function eq(id) 
         parse("equip "..id.." 74")
         parse("equip "..id.." 91") 
         parse("equip "..id.." 79")  
         parse("equip "..id.." 73")
         parse("equip "..id.." 77") 
end

old Re: Equip on spawn script not working.

Avo
User Off Offline

Quote
You, people, can't invent better titles for threads.

---

1
2
3
4
addhook("spawn","eq")
function eq(id) 
    return "74,91,79,73,77"
end

old Re: Equip on spawn script not working.

Avo
User Off Offline

Quote
@user Rainoth: It's annoying when I see some threads with almost the same title/ title which doesn't exactly say what thread is about.

"Search for a scripter", "Looking for a scripter", "Lua error", "Something wrong" and many more.

It doesn't matter know, because like you said, I understood the point.
To the start Previous 1 Next To the start
Log in to reply Scripts overviewCS2D overviewForums overview