Skip to content

Commit

Permalink
Merge pull request #26 from habecker/fix/25-special-characters
Browse files Browse the repository at this point in the history
Fix/25 special characters
  • Loading branch information
habecker authored Feb 22, 2019
2 parents a34ea2b + 24a89fa commit 4645670
Show file tree
Hide file tree
Showing 5 changed files with 1,557 additions and 57 deletions.
8 changes: 7 additions & 1 deletion gamemodes/empty/gamemode.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
from pysamp import *
from samp import *

def OnGameModeInit():
SetGameModeText('PySAMP')
return True

def OnGameModeExit():
Expand All @@ -25,9 +26,11 @@ def OnVehicleDeath(vehicleid, killerid):
return True

def OnPlayerText(playerid, text):
text = decode(text)
return True

def OnPlayerCommandText(playerid, cmdtext):
cmdtext = decode(cmdtext)
return False

def OnPlayerRequestClass(playerid, classid):
Expand Down Expand Up @@ -55,6 +58,7 @@ def OnPlayerLeaveRaceCheckpoint(playerid):
return True

def OnRconCommand(cmd):
cmd = decode(cmd)
return False

def OnPlayerRequestSpawn(playerid):
Expand Down Expand Up @@ -100,6 +104,7 @@ def OnPlayerKeyStateChange(playerid, newkeys, oldkeys):
return True

def OnRconLoginAttempt(ip, password, success):
password = decode(password)
return True

def OnPlayerUpdate(playerid):
Expand Down Expand Up @@ -145,6 +150,7 @@ def OnPlayerClickPlayerTextDraw(playerid, playertextid):
return False

def OnIncomingConnection(playerid, ip_address, port):
ip_address = decode(ip_address)
return False

def OnTrailerUpdate(playerid, vehicleid):
Expand Down
Loading

0 comments on commit 4645670

Please sign in to comment.