Forum

> > CS2D > Scripts > Lua not/and/or
Forums overviewCS2D overview Scripts overviewLog in to reply

English Lua not/and/or

5 replies
To the start Previous 1 Next To the start

old Lua not/and/or

Syph
User Off Offline

Quote
Rly I need help with a thing :

1
if player(pl,"exists") and (player(pl,"team")==1 or player(pl,"team")==2) and not(isAdmin(pl) or isMod(id)) then

i just want to ask if the " not(isAdmin(pl) or isMod(id))"
is correct
or some 1 can correct it for me ?

Admin/mod comment

"Help!? Please ?" is a pointless title! choose a better one next time... fixed.

old Re: Lua not/and/or

Kirschkaffee
User Off Offline

Quote
i dont know about LUA, but i guess you have to include the whole if-condition into brackets.

if ((bla) and (bla(bla)) etc pp )

old Re: Lua not/and/or

Syph
User Off Offline

Quote
Kirschkaffee has written
i dont know about LUA, but i guess you have to include the whole if-condition into brackets.

if ((bla) and (bla(bla)) etc pp )

dude i know that im askin other thing --' ...

old Re: Lua not/and/or

Syph
User Off Offline

Quote
Robotic-Brain has written
this returns true if the player is a normal player and neither admin nor mod

i want to know if that
"and not(isAdmin(id) or isMod(id))"
is correct

old Re: Lua not/and/or

Robotic-Brain
User Off Offline

Quote
if you want this behavior
Robotic-Brain has written
this returns true if the player is a normal player and neither admin nor mod


yes
To the start Previous 1 Next To the start
Log in to reply Scripts overviewCS2D overviewForums overview