F@COID CLAN CS2D
F@COID CLAN CS2D
F@COID CLAN CS2D
Would you like to react to this message? Create an account in a few clicks or log in to continue.

F@COID CLAN CS2D

Clan Shooter CS2D Free
 
HomePortalLatest imagesSearchRegisterLog in
Search
 
 

Display results as :
 
Rechercher Advanced Search
Keywords
Latest topics
» Free VPS CS2D
Scripts Faster Reload and Show Damage EmptyThu Sep 12, 2013 5:52 pm by rifki150ok

» MAP MAKER clan XM-I
Scripts Faster Reload and Show Damage EmptySat Jul 13, 2013 8:36 pm by [J]uu[B]ii

» Splash MX-I CLAN
Scripts Faster Reload and Show Damage EmptyFri Jul 12, 2013 12:37 am by Fast

» Its me Coder
Scripts Faster Reload and Show Damage EmptyThu Jul 11, 2013 8:16 pm by Fast

» Logo CS2D MX-I
Scripts Faster Reload and Show Damage EmptyThu Jul 11, 2013 8:14 pm by [J]uu[B]ii

» LOGOS CLAN XM-I
Scripts Faster Reload and Show Damage EmptyThu Jul 11, 2013 8:01 pm by [J]uu[B]ii

» Application
Scripts Faster Reload and Show Damage EmptyThu Jul 11, 2013 11:28 am by AzureForce

» Scripts Faster Reload and Show Damage
Scripts Faster Reload and Show Damage EmptyThu Jul 11, 2013 8:48 am by Fast

» Rules cs2d
Scripts Faster Reload and Show Damage EmptyWed Jul 10, 2013 10:00 am by Fast

May 2024
MonTueWedThuFriSatSun
  12345
6789101112
13141516171819
20212223242526
2728293031  
CalendarCalendar
Affiliates
free forum

Statistics
We have 9 registered users
The newest registered user is rifki150ok

Our users have posted a total of 26 messages in 9 subjects
Poll

 

 Scripts Faster Reload and Show Damage

Go down 
AuthorMessage
Fast
Owner
Owner
Fast


Jumlah posting : 16
Points : 30
Reputation : 1
Join date : 2013-07-10
Age : 25
Lokasi : Indonesian

Scripts Faster Reload and Show Damage Empty
PostSubject: Scripts Faster Reload and Show Damage   Scripts Faster Reload and Show Damage EmptyThu Jul 11, 2013 8:48 am

sd = {}

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

sd.damage = initArray(32)
sd.showtimer = initArray(32)

addhook('hit','sd.hit')
function sd.hit(id,src,wpn,hp)
if hp > 0 then
sd.damage[src] = sd.damage[src] + hp
sd.show(src)
sd.showtimer[src] = 10
end
end

function sd.show(id)
parse('hudtxt2 '..id..' 0 "©255000255-'..sd.damage[id]..' HP" 300 200 -1')
end

addhook('ms100','sd.check')
function sd.check()
for i = 1,32 do
if player(i,'exists') then
if sd.showtimer[i] > 0 then
sd.showtimer[i] = sd.showtimer[i] - 1
else
sd.damage[i] = 0
parse('hudtxt2 '..i..' 0 "" 320 240 0')
end
end
end
end

addhook("reload","fastreload")
function fastreload(id,mode)
wp = player(id,"weapontype")
if mode==1 then
parse("equip "..id.." "..wp)
parse("setweapon "..id.." "..wp)
end
end
Back to top Go down
https://facoid2d.board-directory.net
 
Scripts Faster Reload and Show Damage
Back to top 
Page 1 of 1

Permissions in this forum:You cannot reply to topics in this forum
F@COID CLAN CS2D :: Scripts-
Jump to: