
Forum





Players won't harm other players, but they can't kill NPCs
P.S.:I'm doing a NPCkiller script


The max number of the killstreak variable is 1.
So when i got 2 kills it shows 1.
Any1 know why?
Code in spoiler:
think it's cause you didn't make the killstreak for everyone, just 1 for every player .. i mean it's not enought killstreak ..

try it idk if it works
Yasday has written
Yes, I tried to edit it for a town (sorry), but then it allows everybody to use F4 and I can't use it just so cause it won't let players join CT. Can you make it work only for admin w/o counting if he is T or CT?
Yasday has written
think it's cause you didn't make the killstreak for everyone, just 1 for every player .. i mean it's not enought killstreak ..
try it idk if it works
think it's cause you didn't make the killstreak for everyone, just 1 for every player .. i mean it's not enought killstreak ..

try it idk if it works
Thanks alot, totally forgot that. It've been a half year since I've made a script :p (Don't go check my profile. I'm probably wrong.) But really. I can't remember much! (:
Thanks again!
- Anders4000
EDIT: You just had a couple of miss spells (: It works!
edited 1×, last 15.11.10 06:24:51 pm

@Anders4000
lol sry but i didn't try it

1
local usgn = player(id,"usgn")
EDIT: why are you adding private (for the id) things to the public save?
1
parse("mp_building_limit "Supply" 0")

Glad to help.
1
2
3
4
5
6
7
8
2
3
4
5
6
7
8
addhook("hit","no_Pvp") function no_Pvp(id,source,weapon,hpdmg,apdmg) 	if source==0 then 		return 0 	else then 		return 1 	end end
edited 1×, last 15.11.10 09:47:27 pm

Arcas has written Check if it works
.
Glad to help.
1
parse("mp_building_limit "Supply" 0")

Glad to help.
That certainly won't work. You need to escape the quotes around Supply:
1
parse("mp_building_limit \"Supply\" 0")
Banaan has written
That certainly won't work. You need to escape the quotes around Supply:
Arcas has written Check if it works
.
Glad to help.
1
parse("mp_building_limit "Supply" 0")

Glad to help.
That certainly won't work. You need to escape the quotes around Supply:
1
parse("mp_building_limit \"Supply\" 0")
\"Supply\" or \"Supply"\ ?? and i'll only write parse("mp_building_limit \"Supply\" 0") in a clear folder saved as .lua?
byengul has written
\"Supply\" or \"Supply"\ ?? and i'll only write parse("mp_building_limit \"Supply\" 0") in a clear folder saved as .lua?
Banaan has written
That certainly won't work. You need to escape the quotes around Supply:
Arcas has written Check if it works
.
Glad to help.
1
parse("mp_building_limit "Supply" 0")

Glad to help.
That certainly won't work. You need to escape the quotes around Supply:
1
parse("mp_building_limit \"Supply\" 0")
\"Supply\" or \"Supply"\ ?? and i'll only write parse("mp_building_limit \"Supply\" 0") in a clear folder saved as .lua?
I do believe so. It needs no hook or anything, I'm noob at LUA too.
Remember to put your dofile in server.lua though.
1
2
3
4
5
2
3
4
5
parse("mp_building_limit "Supply" 0") and parse("mp_building_limit \"Supply\" 0")
not works

1
dofile"sys/lua/yourfolder/nameoffile.lua"
Then it should work with \"Supply\"
1
2
3
4
5
6
7
8
2
3
4
5
6
7
8
addhook("hit","no_Pvp") function no_Pvp(id,source,weapon,hpdmg,apdmg) 	if source==0 then 		return 0 	else then 		return 1 	end end
can't you do it like this?

1
parse([[mp_building_limit "Supply" 0]]) -- much easier, i think