I dont remember what I changed... sorry

This commit is contained in:
2018-10-02 00:38:25 +02:00
parent 3d1aa21bab
commit 3bdd78b61c
5 changed files with 50 additions and 20 deletions

View File

@@ -11,9 +11,6 @@ def handle(client, data):
return b"\x19\x00"
if client.state == 2:
client.state = 3
return b"\xe3\x00\x00"
if client.state == 3:
client.state = 4
return b"\xe3\x00\x00", b"\x00\x00\x42\x98\x0c\x11\x33\x45\x30\x42\x33\x33\x35\x32\x37\x34\x46\x39\x31\x43\x39\x39\x00"
return b"WUT?"

View File

@@ -99,12 +99,12 @@ def get_online_players(): #TODO: Get data from server's client objects
]
def get_rules(): #TODO
return {b"Rule name sample": b"Rule value"}
return {b"Rule name sample": b"Rule value", b"weburl": b"https://git.osufx.com/Sunpy/sampy"}
def get_players_scores(): #TODO
return {b"Sunpy": 64, b"username": 123}
RESPONSE = { #TODO: c, d & p (https://wiki.sa-mp.com/wiki/Query_Mechanism)
RESPONSE = { #TODO?: p (https://wiki.sa-mp.com/wiki/Query_Mechanism) (We dont really need to do the last handler as it happens somewhat automatically)
b"i": query_i,
b"r": query_r,
b"c": query_c,