Forum

> > CS2D > Scripts > Auto give wrench
Forums overviewCS2D overview Scripts overviewLog in to reply

English Auto give wrench

38 replies
Page
To the start Previous 1 2 Next To the start

old Re: Auto give wrench

Masea
Super User Off Offline

Quote
user kerker has written
And?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.

@user Yates: You mad bro?

old Re: Auto give wrench

Baloon
GAME BANNED Off Offline

Quote
user kerker has written
How 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?

old Re: Auto give wrench

Yates
Reviewer Off Offline

Quote
@user 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

old Re: Auto give wrench

Baloon
GAME BANNED Off Offline

Quote
@user 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

old Re: Auto give wrench

Masea
Super User Off Offline

Quote
user GeoB99 has written
1
2
3
4
5
function WrenchItemSpawn()
  return '74'
end

addhook('spawn', 'WrenchItemSpawn')

Didn't it work?

old Re: Auto give wrench

kerker
User Off Offline

Quote
user Masea has written
user GeoB99 has written
1
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.

old Re: Auto give wrench

RedizGaming
GAME BANNED Off Offline

Quote
IMG:https://i.imgur.com/qcHyWTU.png


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

old Re: Auto give wrench

little bite
BANNED Off Offline

Quote
try this
1
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. /user GeoB99

old Re: Auto give wrench

THEMUD
User Off Offline

Quote
@user 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 @user GeoB99's code, it works the best.

old Re: Auto give wrench

QuakeR
BANNED Off Offline

Quote
why you can't make with your self ?.
1
2
3
4
5
function nilSpawn()
  return '74'
end

addhook('spawn', 'nilSpawn')

100 % works perfectly -.-

old Re: Auto give wrench

Baloon
GAME BANNED Off Offline

Quote
@user QuakeR: the problem is solved, this thread has been answered long time ago. Please someone lock this thread?

old Re: Auto give wrench

Rainoth
Moderator Off Offline

Quote
FYI threads aren't closed. They're always open unless they HAVE to be closed (for example because of spam/flame/useless topic/etc.)

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 user 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.
To the start Previous 1 2 Next To the start
Log in to reply Scripts overviewCS2D overviewForums overview