Forum
CS2D Scripts Lua Scripts/Questions/Helphow i translate it?
use web?
use dictionary?
find ppl who can translate it?
omg.. my english bad too
something like
1
2
3
4
5
6
2
3
4
5
6
addhook("hit","explosion") addhook("function","bomb") function explosion(id) function bomb(id,action) if weapon id == 30 then if action == 1 then --- i dont know what else...
edited 3×, last 27.12.10 10:02:15 pm
1. How to add level that saves when logged in usgn?
When you buy an handgun (USP for esample) instead of charging the pistol holding pose it make chareges the zombie pose, but only for one handgun not for all.
Can I do this?
edited 2×, last 28.12.10 11:02:14 am
I want to set the maximum gate fields that can be built using lua, so it would look like this:
parse("mp_building_limit "Gate Field" 777777")
but then it gives error that can't set gate field limit. Please help, where am I wrong?
1
parse('mp_building_limit "Gate Field" "777777"')
-F1r3Z has written
I have a question at lua
1. How to add level that saves when logged in usgn?
1. How to add level that saves when logged in usgn?
Need the rest of the script to tell you...
Else I can't do more than confuse you...
Like: The normal shoot sound & some song.
But the song isn't everywhere. Just on a X place near the guy who shoots
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
2
3
4
5
6
7
8
9
10
11
12
13
14
15
function sv_sound3(x,y,sound) 	for i,id in pairs(player(0,"table")) do 		if math.sqrt((x - player(id,"x"))^2 + (y- player(id,"y"))^2) < 300 then 			parse([[sv_sound2 ]]..id..[[ ]]..sound) 		end 	end end addhook([[attack]],[[attacker]]) function attacker(id) 	local wpn = player(id,"weapontype") 	if wpn == 1 then --USP? 		sv_sound3(player(id,"x"),player(id,"y"),"sfx/thesound.ogg") 	end end
for "sfx/thesound.ogg" insert the path of your sound file
CoolioG has written
So, you just don't want any original ideas for your RP server and instead want to use the same old mechanics that have been used for decades.
Good show, Chap. Good show.
weed_muffin has written
ohey guys
i have a RP server and it needs multiple things.
1st: i need help with arresting people. like, if you hit someone with a claw, it spawns them to jail? it'd be cool to have a f3 menu with instaequip, actions whitch includes teleport and set arrest point
2nd: i need admin gun mods, like sg552 giving you a shop license, claw arresting and so on.
please help me out?
i have a RP server and it needs multiple things.
1st: i need help with arresting people. like, if you hit someone with a claw, it spawns them to jail? it'd be cool to have a f3 menu with instaequip, actions whitch includes teleport and set arrest point
2nd: i need admin gun mods, like sg552 giving you a shop license, claw arresting and so on.
please help me out?
So, you just don't want any original ideas for your RP server and instead want to use the same old mechanics that have been used for decades.
Good show, Chap. Good show.
thanks, mate.
how about you help me with the imprisonment script, let's say a jailing pistol.
cause i'm working on my map, and some people might even WANT to go to prison.
Quote
How i make an explosion when i hit a player?
something like
something like
1
2
3
4
5
6
2
3
4
5
6
addhook("hit","explosion") addhook("function","bomb") function explosion(id) function bomb(id,action) if weapon id == 30 then if action == 1 then --- i dont know what else...
answer plz..
1
2
3
4
5
6
2
3
4
5
6
addhook([[hit]],[[hitteer]]) function hitteer(id,src,wpn,hpd,apd) 	if wpn == 30 then 		parse([[explosion ]]..player(id,"x")..[[ ]]..palyer(id,"y")..[[ 1 1000 ]]..src) 	end end
1. why u add []
And in Notepad++ the strings with [[]] are red xD.