Syntax: Select all
# -*- coding: utf-8 -*-
from events import Event
from messages import SayText2
moderator = {'[U:1:81936084]':'МЕДОЕД', 'uniqueid':'test'}
def load():
SayText2('[admin] Plugin loaded successfully!').send()
def unload():
SayText2('[admin] Plugin unloaded successfully!').send()
@Event('player_connect')
def on_player_connect(game_event):
uniqueid = game_event['networkid']
if uniqueid in moderator:
SayText2('[Moderator] Подключился к игре').send()
@Event('player_disconnect')
def on_player_disconnect(game_event):
uniqueid = game_event['networkid']
if uniqueid in moderator:
SayText2('[Moderator] Покинул игру').send()