Forum

> > CS2D > Scripts > Please make this lua
ForenübersichtCS2D-Übersicht Scripts-ÜbersichtEinloggen, um zu antworten

Englisch Please make this lua

5 Antworten
Zum Anfang Vorherige 1 Nächste Zum Anfang

verschoben Please make this lua

commanderdean
User Off Offline

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

alt Re: Please make this lua

Infinite Rain
Reviewer Off Offline

Zitieren
Tell me the variable of player's exp.
Also, give me the function that spawns the cars.
2× editiert, zuletzt 17.01.13 15:52:29

alt Re: Please make this lua

Jynxxx
User Off Offline

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

alt wichtig Re: Please make this lua

DC
Admin Off Offline

Zitieren
Attention: I removed all the off-topic crap. Please stay on topic or expect bans!
Zum Anfang Vorherige 1 Nächste Zum Anfang
Einloggen, um zu antworten Scripts-ÜbersichtCS2D-ÜbersichtForenübersicht