Compare commits

...

3 Commits

Author SHA1 Message Date
zaCade
25bd355215 Merge branch 'master' of https://git.unloze.com/UNLOZE/sm-plugins 2025-07-06 09:13:22 +02:00
zaCade
00a9047c0f [KnifeBan] Check if attacker is alive. 2025-07-06 09:13:12 +02:00
zaCade
207645e542 [KnifeBan] Change function return type to void. 2025-07-06 09:12:48 +02:00

View File

@ -177,6 +177,9 @@ public Action OnTakeDamage(int victim, int &attacker, int &inflictor, float &dam
if(!IsPlayerAlive(victim))
return Plugin_Continue;
if(!IsPlayerAlive(attacker))
return Plugin_Continue;
if(!g_bKnifeBan)
return Plugin_Continue;
@ -552,7 +555,7 @@ public void OpenKnifebanlistMenu(int client)
menu.Display(client, MENU_TIME_FOREVER);
}
public int MenuHandler_MainMenu(Menu menu, MenuAction action, int client, int selection)
public void MenuHandler_MainMenu(Menu menu, MenuAction action, int client, int selection)
{
switch(action)
{
@ -644,7 +647,7 @@ public void OpenKnifebanlistOfTheClient(int client, char sBuffer[32])
menuclient.Display(client, MENU_TIME_FOREVER);
}
public int MenuHandler_ClientMenu(Menu menuclient, MenuAction action, int client, int selection)
public void MenuHandler_ClientMenu(Menu menuclient, MenuAction action, int client, int selection)
{
switch(action)
{