Forum
Scripts
Auto give wrench
Auto give wrench
38 replies
kerker has writtenAnd?You need to learn Lua.Your script is not work. 

I didn't say that I don't need to learn lua more exactly. I can forget somethings sometimes as like everybody.
@
Yates: You mad bro?
kerker has writtenHow to make when player spawn he was given a wrench? (lua) 

Look at the bold in quote.
He wants that wrench is given (not default melee weapon). In construction mode, the knife is stripped isn't it?
Baloon: You're honestly trying to prove a point by quoting poor English that can mean a many amount of things based on emphasis? 
I give up - I'm out
Baloon has writtenIn construction mode, the knife is stripped isn't it?
It isn't.
Masea: lol forget it, because this game ban.And please, someone close this thread?
Admin/mod comment
Staff doesn't close a thread just because a problem is solved, we leave it open in case that someone steps with the same problem. /Starkkz
Baloon has writtenAnd please, someone close this thread?
Nah? Well, the problem is not solved.
GeoB99 has written1
2
3
4
5
2
3
4
5
function WrenchItemSpawn()
return '74'
end
addhook('spawn', 'WrenchItemSpawn')
Didn't it work?
Masea has written
GeoB99 has written1
2
3
4
5
2
3
4
5
function WrenchItemSpawn()
return '74'
end
addhook('spawn', 'WrenchItemSpawn')
Didn't it work?
Wait, let me try it.
UPD: It's finally working. Drag this topic to the landfill or close.

Here we clearly see an image where if we analyze it carefully and in depth can see that you can from different points of disagreement and comparison
reach the central idea that departs from the main argument, from which we conclude that this comment does not make any sense.
Thanks for your attention.
we love you
This comment is not edited
Admin/mod comment
§2.1 - No needless and/or doubled posts (spam)
RedizGaming: Does it not seem to you rude, but all`s done, I'm happy.
RedizGaming has writtenbut , if you see the image , the code works 100%
Thanks for you too!
1
2
3
4
5
6
7
2
3
4
5
6
7
function pepsi(id)
return;74; - if not then parse("equip "..id.." 74")
end
end
end
end
Note: not tested
Admin/mod comment
Do not post needless posts like this, the OP was already helped. Thanks. /
GeoB99
little bite: Every bit of your code is wrong, why did you put all of these unnecessary ends? And the semicolon between the return and the number 74 is wrongly placed. Just use @
GeoB99's code, it works the best. 1
2
3
4
5
2
3
4
5
function nilSpawn()
return '74'
end
addhook('spawn', 'nilSpawn')
100 % works perfectly -.-
QuakeR: the problem is solved, this thread has been answered long time ago. Please someone lock this thread?
Baloon: You have right bro
Yes can anyone close the thread ?
It's best if you don't revive old threads if they're already answered and you don't have a more efficient solution.
That's exactly what you did here unfortunately - provide the same solution and revived the thread. That's also the reason why
Baloon pointed it out which lead to needless posts by both of you.TL;DR just dont revive old threads. Moderators will close threads if they decide they have to be closed. Asking won't change anything.



Offline