Forum

> > CS2D > Scripts > Weapon dmg [ resolved ]
Forums overviewCS2D overview Scripts overviewLog in to reply

English Weapon dmg [ resolved ]

10 replies
To the start Previous 1 Next To the start

old Re: Weapon dmg [ resolved ]

Alistaire
User Off Offline

Quote
You should use a hit hook for that and replace hpdamage with the damage you want the thing to do. Only works without armor tho..

old Re: Weapon dmg [ resolved ]

GooDCaT
User Off Offline

Quote
user Alistaire has written
You should use a hit hook for that and replace hpdamage with the damage you want the thing to do. Only works without armor tho..


I'm noob in scripting , help me

old Re: Weapon dmg [ resolved ]

Lag Seeing
User Off Offline

Quote
Is this replacing the weapon damage?... If it is , simply add this line to your server.lua
1
parse('mp_wpndmg <weaponname> <damage>')
There!

old Re: Weapon dmg [ resolved ]

GooDCaT
User Off Offline

Quote
user Lag Seeing has written
Is this replacing the weapon damage?... If it is , simply add this line to your server.lua
1
parse('mp_wpndmg <weaponname> <damage>')
There!


But it is only the administrator to damage the player that are not admin, and damage to normal

old Re: Weapon dmg [ resolved ]

Big Bang Mafia
User Off Offline

Quote
do you want a code with a weapon who make bigdamage - but when people want pick up it they die (only admins can pick up)?

EDIT:

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
function Array(size,value) 
	local array = {}
	for i = 1, size do
		array[i]=value
	end
	return array
end

some_admin = Array (32,false)

Admin_USGN = {xxxx}  -- admin usgn

parse('mp_wpndmg name 99999') -- where is 'name' put name of the weapon

addhook("collect","admincollect")  -- Anti Some Weapon Lua
function admincollect(id,iid,type,ain,a,mode)
if type == here goes the  id of weapon then  --- eg; if type == 83 then
if some_admin[id] == false then
parse("killplayer "..id.." ")
end
end
end

old Re: Weapon dmg [ resolved ]

MikuAuahDark
User Off Offline

Quote
user Big Bang Mafia has written
1
parse("killplayer "..id.." ")

are you crazy? why you just not put return 1 and change the hook to walkover?

user GooDCaT has written
Is it possible?'
Administrator to have, the damage on your weapon?

it's possible. but i don't know much about customkill!
Code >

old Re: Weapon dmg [ resolved ]

EngiN33R
Moderator Off Offline

Quote
user MikuAuahDark has written
Code >


No no no no no,

Code >
To the start Previous 1 Next To the start
Log in to reply Scripts overviewCS2D overviewForums overview