Forum

> > CS2D > Scripts > Auto give wrench
ForenübersichtCS2D-Übersicht Scripts-ÜbersichtEinloggen, um zu antworten

Englisch Auto give wrench

38 Antworten
Seite
Zum Anfang Vorherige 1 2 Nächste Zum Anfang

alt Re: Auto give wrench

Masea
Super User Off Offline

Zitieren
user kerker hat geschrieben
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?

alt Re: Auto give wrench

Baloon
GAME BANNED Off Offline

Zitieren
user kerker hat geschrieben
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?

alt Re: Auto give wrench

Yates
Reviewer Off Offline

Zitieren
@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

alt Re: Auto give wrench

Baloon
GAME BANNED Off Offline

Zitieren
@user Masea: lol forget it, because this game ban.

And please, someone close this thread?

Admin/Mod Kommentar

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

alt Re: Auto give wrench

Masea
Super User Off Offline

Zitieren
user GeoB99 hat geschrieben
1
2
3
4
5
function WrenchItemSpawn()
  return '74'
end

addhook('spawn', 'WrenchItemSpawn')

Didn't it work?

alt Re: Auto give wrench

kerker
User Off Offline

Zitieren
user Masea hat geschrieben
user GeoB99 hat geschrieben
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.

alt Re: Auto give wrench

RedizGaming
GAME BANNED Off Offline

Zitieren
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

alt Re: Auto give wrench

little bite
BANNED Off Offline

Zitieren
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 Kommentar

Do not post needless posts like this, the OP was already helped. Thanks. /user GeoB99

alt Re: Auto give wrench

THEMUD
User Off Offline

Zitieren
@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.

alt Re: Auto give wrench

QuakeR
BANNED Off Offline

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

addhook('spawn', 'nilSpawn')

100 % works perfectly -.-

alt Re: Auto give wrench

Baloon
GAME BANNED Off Offline

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

alt Re: Auto give wrench

Rainoth
Moderator Off Offline

Zitieren
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.
Zum Anfang Vorherige 1 2 Nächste Zum Anfang
Einloggen, um zu antworten Scripts-ÜbersichtCS2D-ÜbersichtForenübersicht