Skip to content

Commit 520c9e3

Browse files
committed
added ProcessTick callback
1 parent b2cd796 commit 520c9e3

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

gamemodes/empty/gamemode.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -168,3 +168,5 @@ def OnPlayerSelectObject(playerid, type, objectid, modelid, fX, fY, fZ):
168168
def OnPlayerWeaponShot(playerid, weaponid, hittype, hitid, fX, fY, fZ):
169169
return False
170170

171+
def OnProcessTick():
172+
return None

src/main.cpp

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,5 +31,6 @@ PLUGIN_EXPORT void PLUGIN_CALL Unload()
3131

3232
PLUGIN_EXPORT void PLUGIN_CALL ProcessTick()
3333
{
34-
sampgdk::ProcessTick();
35-
}
34+
sampgdk::ProcessTick();
35+
PySAMP::callback("OnProcessTick", NULL);
36+
}

0 commit comments

Comments
 (0)