Forum

> > CS2D > Scripts > If blabla then...else nothing
Forums overviewCS2D overview Scripts overviewLog in to reply

English If blabla then...else nothing

4 replies
To the start Previous 1 Next To the start

old If blabla then...else nothing

Mora
User Off Offline

Quote
I'm not master with writting titles
Hi us
Here is 2 quests:
1) how to make thing that will do nothing if? ex
1
2
3
4
5
if tilex == 33 and tiley== 32 then
 if shit[id]==1 then
nothing
 elseif shit[id]==0 then
msg2(p,"Baby, gtfo, you haven't right to visit kid club!")

and 2)
No way to return attack?
1
2
3
4
hook please...
function ...
 msg2(p,"baby, you can't attack, no cry, just left")
 return 1 (can't attack)

Thank you a lot

old Re: If blabla then...else nothing

Admir
User Off Offline

Quote
1
2
3
4
5
6
7
if tilex == 33 and tiley== 32 then
	if shit[id]==1 then
		-- do nothing shit
	else
		msg2(p,"Baby, gtfo, you haven't right to visit kid club!")
	end
end

I've made script something like this, and I just put empty line there.
To the start Previous 1 Next To the start
Log in to reply Scripts overviewCS2D overviewForums overview