|
Post by Java on Jun 5, 2014 19:17:43 GMT 5.5
Hello , i'm need help on this restart on round limited to DONE my lua i'm need it so it some khow how to make it show me!
|
|
|
Post by Java on Jun 6, 2014 10:32:20 GMT 5.5
The Code is here download it add see what wrong with it then fix it plzz help new.lua (1.54 KB)
|
|
|
Post by Crusader on Jun 7, 2014 10:33:42 GMT 5.5
Are this is really lua?
Its really not logical lua, are this part of a lua? -If yes show me the full part of it, I can do anything with piece of it
-If nope, srsly, this is wont work
PS #1 please dont make many thread w/o full detail, its look like spam even you arent meant to PS #2 I can help you maybe if you really tell me everythin you want to do PS #3 I cant read you script, its very messy
addhook("spawn","antiawper") -- Spawn hook function kill(killer,victim,weapon,x,y) -- Function of what on earth, obv. wont work because spawn hook are name antiawper and the function is for function kill that havent stated inb4
startkill(killer,victim,weapon) -- woot?
if weapon==35 then -- okay
if v_awpcount[player(killer, "ip")]~=nil then -- Woot? v_awpcount array? I hadn't found the init array in above, btw why used ip?
v_awpcount[player(killer, "ip")]=v_awpcount[player(killer, "ip")]+1
-- No end, so the above if is still going?
if v_awpcount[player(killer, "ip")]>=(v_awplimit-5) and v_awpcount[player(killer, "ip")]~=v_awplimit then -- New if :x
msg2(killer,"©255255000[Server] ©000255000You are reaching the ©255255255"..v_awpcount[player(killer, "ip")].."©000255255/©255255255"..v_awplimit..")
©000255000AWP kill limit.") -- Messed msg2, there is some leak on this if v_awpcount[player(killer, "ip")]==v_awplimit then --v_awplimit not stated above msg(©255000000[Server] ©000255255"..player(killer, "name").." ©000255000has reached the ©000255255"..v_awplimit.." AWP kill limit and has been striped.") -- Missing one " it must msg("©255000000...~")
parse("strip "..killer.." 35") -- Okay
v_awpcount[player(killer, "ip")]=-v_awplimit -- ???
end -- which if are end? there is much if
else -- whice else are this for .-.
v_awpcount[player(killer, "ip")]=1
end
else
if v_awpcount[player(killer, "ip")]~=nil then
if v_awpcount[player(killer, "ip")]>0 then
v_awpcount[player(killer, "ip")]=v_awpcount[player(killer, "ip")]-1
elseif v_awpcount[player(killer, "ip")]<0 then
v_awpcount[player(killer, "ip")]=v_awpcount[player(killer, "ip")]+1
if v_awpcount[player(killer, "ip")]==0 then
v_awpcount[player(killer, "ip")]=nil
msg2(killer,"©255255000[Server] ©255000000You may now buy/collect and use the AWP.")
end
else
msg2(killer,"©255255000[Server] ©255000000("..math.abs(v_awpcount[player(killer, "ip")]).."/"..v_awplimit..") AWP kill limit lowered.")
end
end
end
end
|
|
|
Post by Java on Jun 7, 2014 15:28:45 GMT 5.5
Sorry, i'm take it from my old lua on my USB but i'm forgot to save txt file so i'm forgot how the lua owrk
|
|
|
Post by Crusader on Jun 8, 2014 6:04:40 GMT 5.5
I cant help you, this is look like part of lua
|
|
|
Post by Java on Jun 8, 2014 7:29:04 GMT 5.5
okey thanks for you help Crusader
|
|