Forum

> > CS2D > Scripts > Weapon dmg [ resolved ]
ForenübersichtCS2D-Übersicht Scripts-ÜbersichtEinloggen, um zu antworten

Englisch Weapon dmg [ resolved ]

10 Antworten
Zum Anfang Vorherige 1 Nächste Zum Anfang

alt Re: Weapon dmg [ resolved ]

Alistaire
User Off Offline

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

alt Re: Weapon dmg [ resolved ]

GooDCaT
User Off Offline

Zitieren
user Alistaire hat geschrieben
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

alt Re: Weapon dmg [ resolved ]

Lag Seeing
User Off Offline

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

alt Re: Weapon dmg [ resolved ]

GooDCaT
User Off Offline

Zitieren
user Lag Seeing hat geschrieben
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

alt Re: Weapon dmg [ resolved ]

Big Bang Mafia
User Off Offline

Zitieren
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

alt Re: Weapon dmg [ resolved ]

MikuAuahDark
User Off Offline

Zitieren
user Big Bang Mafia hat geschrieben
1
parse("killplayer "..id.." ")

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

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

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

alt Re: Weapon dmg [ resolved ]

EngiN33R
Moderator Off Offline

Zitieren
user MikuAuahDark hat geschrieben
Code >


No no no no no,

Code >
Zum Anfang Vorherige 1 Nächste Zum Anfang
Einloggen, um zu antworten Scripts-ÜbersichtCS2D-ÜbersichtForenübersicht