Guild icon
Teeworlds
discord.gg/teeworlds / development
For discussions around the development of the official Teeworlds
Between 2020-10-23 00:00:00Z and 2020-10-24 00:00:00Z
Avatar
how to check if player is admin or mod?
Avatar
kick em
Avatar
isAdmin does not exist
Avatar
CClient has a m_Authed member
Avatar
GameServer()->Server()->IsAuthed() thats returns a boolean
05:06
and how do i know if it is mod or admin?
Avatar
you can just change IsAuthed
05:06
looks like you can safely change the bool to int, since m_Authed is already a int
05:07
if you want IsAdmin, you can add it yourself.
05:07
which should return m_aClients[ClientID].m_Authed == AUTHED_ADMIN
05:09
thanks
Avatar
AUTHED enum is defined in server.h if you want to see for yourself
Avatar
thank you so much, i'm new and i was kind of confused
05:10
srry for bad english
Avatar
no worries
Avatar
Can someone help me? I'm trying to do chat commands
Avatar
missing include i guess
Avatar
I'm using utown as a reference
06:43
@fokkonaut if i add #include "city/cmds.h" in player.h i get this:
Avatar
sorry, no idea
Avatar
The compiler should be telling you where the previous definition is
Avatar
would be cool to allow server to send an angle again without the client just ignoring it
Avatar
The current tile system and collision.cpp code is not easy to expand without re-writing the whole collision code. Can we maybe have an easy to extend tile system like DDNet has for example? Would also be nice before the water update, because that would bring alot of new functions to collision.cpp that could be avoided with a good and extensible system.
Avatar
I love how you take the water update for granted in this issue :d @fokkonaut
Avatar
@Stiopa the anticipation is real ❤️
❤️ 1
👀 1
17:37
Well, I really like the water progress and if this is not gonna get merged for 0.8 i dont know xD
17:37
Its really tee-ish and also feels good
17:38
There should absolutely be no reason against this
17:38
1 new server feature in 10 years is okay I guess
17:39
@heinrich5991 you think you can conjure something regarding the tile system? :D
Avatar
water would be epic to have in vannila
Avatar
How to change emote delay?
Avatar
cant in vanilla
Avatar
@fokkonaut wasnt sv_emoticon_delay a thing?
21:19
in vanilla
Avatar
most messages have a 3 second spam protection
21:26
to make dos attacks harder
Exported 42 message(s)