Forum

> > CS2D > Scripts > Please make this lua
Forums overviewCS2D overview Scripts overviewLog in to reply

English Please make this lua

5 replies
To the start Previous 1 Next To the start

moved Please make this lua

commanderdean
User Off Offline

Quote
Who has the lua can make
1.Can press e in the near sellers of goods in
NPC form
Eg: 1.Car seller
if pressing e in the near NPC car salesman
will appear the types of cars
and also the price
2.Can make-ranking lua
Eg: 1.Every second gets 1 exp
like exp level 1 is 0/300exp
5 seconds later to 5/300
and if one level up
when he spoke: NHC-Lieutenant ~ DDean [Lv.1]
If you can make it
1.You SMART PEOPLE
2.You LOVE HELPING PEOPLE
3.Get a gift
√

old Re: Please make this lua

Infinite Rain
Reviewer Off Offline

Quote
Tell me the variable of player's exp.
Also, give me the function that spawns the cars.
edited 2×, last 17.01.13 03:52:29 pm

old Re: Please make this lua

Jynxxx
User Off Offline

Quote
@user commanderdean: For your experience per second you can use the second hook and make a table for the players current experience like so..

1
2
3
4
5
6
7
8
9
10
11
12
13
ExpTable= {}

addhook("join","Expjoin")
function Expjoin(id)
	ExpTable[id] = {exp = 0}
end

addhook("second","expsecond")
function expsecond()
	for _,id in ipairs(player(0,"tableliving")) do
		ExpTable[id].exp=ExpTable[id].exp+1
	end
end

Should work, didn't test it though.

old important Re: Please make this lua

DC
Admin Off Offline

Quote
Attention: I removed all the off-topic crap. Please stay on topic or expect bans!
To the start Previous 1 Next To the start
Log in to reply Scripts overviewCS2D overviewForums overview