Forum

> > CS2D > Scripts > .lua request
Forums overviewCS2D overview Scripts overviewLog in to reply

English .lua request

8 replies
To the start Previous 1 Next To the start

old .lua request

VenomGod
User Off Offline

Quote
Hi, I'd like to make a map with a lua script but I'm total newbie. :C

I'd like to have 2 pages of classes (add 1 random class in every page pls), no knife at spawn, no drop and no collect.

If anybody would do that I will be very thankful.

old Re: .lua request

Rainoth
Moderator Off Offline

Quote
Edit a sample in "cs2d/sys/lua/samples/"
It has most of the stuff you're requesting.

old Re: .lua request

Avo
User Off Offline

Quote
If you want easy classes script with pages, use one of my favourites: file cs2d Yet another simple class . Some copypasta from samples and you will get nice playable script, just like you're requesting.

old Re: .lua request

VenomGod
User Off Offline

Quote
Ok, thanks. I got an easy class mod (with naruto characters).

It looks like that:
Spoiler >


But last class doesn't show so if u guys would be able to edit it into 2 pages (2nd page with Bounty Hunter and Maniac) that would be great and I would be very thankful.

old Re: .lua request

VADemon
User Off Offline

Quote
@user VenomGod: Don't use cs2d cmd equip in cs2d lua hook spawn

UPD: Example:
1
2
3
4
function spawn(id)
-- blah blah class: Player
return "4,8,25" -- spawn the player with these items
end
edited 1×, last 01.03.14 09:18:24 pm
To the start Previous 1 Next To the start
Log in to reply Scripts overviewCS2D overviewForums overview