Forum

> > CS2D > Scripts > Lua not/and/or
ForenübersichtCS2D-Übersicht Scripts-ÜbersichtEinloggen, um zu antworten

Englisch Lua not/and/or

5 Antworten
Zum Anfang Vorherige 1 Nächste Zum Anfang

alt Lua not/and/or

Syph
User Off Offline

Zitieren
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 Kommentar

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

alt Re: Lua not/and/or

Kirschkaffee
User Off Offline

Zitieren
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 )

alt Re: Lua not/and/or

Syph
User Off Offline

Zitieren
Kirschkaffee hat geschrieben
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 --' ...

alt Re: Lua not/and/or

Syph
User Off Offline

Zitieren
Robotic-Brain hat geschrieben
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

alt Re: Lua not/and/or

Robotic-Brain
User Off Offline

Zitieren
if you want this behavior
Robotic-Brain hat geschrieben
this returns true if the player is a normal player and neither admin nor mod


yes
Zum Anfang Vorherige 1 Nächste Zum Anfang
Einloggen, um zu antworten Scripts-ÜbersichtCS2D-ÜbersichtForenübersicht