Forum

> > CS2D > Scripts > if player do something counter=his id
Forums overviewCS2D overview Scripts overviewLog in to reply

English if player do something counter=his id

9 replies
To the start Previous 1 Next To the start

old Re: if player do something counter=his id

Dovahkin
User Off Offline

Quote
I think you need variable?

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
counter={}

function initArray(m)
	local array = {}
	for i = 1, m do
		array[i]=0
	end
	return array
end
counter=initArray(32)

counter={}

function initArray(m)
	local array = {}
	for i = 1, m do
		array[i]=0
	end
	return array
end
counter=initArray(32)

addhook("team","hhspawn")
function hhspawn(id)
if player(id,"team")==2 then
if player(id,'usgn') == usgn then
end
end
end

addhook("second","hhsecond")
function hhsecond()
for id=1,32 do
parse('hudtxt2 '..id..' 1 "©000255000Counter Usgn : '..player(id,"usgn")..' " 5 

280')
end
end
edited 1×, last 24.04.11 12:38:45 pm

old Re: if player do something counter=his id

loldlold123
User Off Offline

Quote
im making mod and i need it (my idea is...)

if you bought city cityownerid=his id

and this guy take some worker to his city

he must pay every (exemple) 1 min

money[cityownerid]-500
money[worker(exemple)]+500

i can do it if i can use player(id,"id") code (or somethings if you know)

(i made 917 line code and i cant stop i need really help :/)
edited 1×, last 24.04.11 12:58:23 pm
To the start Previous 1 Next To the start
Log in to reply Scripts overviewCS2D overviewForums overview