mirror of
https://github.com/FAUSheppy/skillbird-sourcemod
synced 2025-12-10 08:58:34 +01:00
refactor
This commit is contained in:
26
scripting/EventHandlers.sp
Normal file
26
scripting/EventHandlers.sp
Normal file
@@ -0,0 +1,26 @@
|
||||
#include "Interfaces.sp"
|
||||
|
||||
public Action:Event_RoundStart(Handle:event, const String:name[], bool:dontBroadcast){
|
||||
|
||||
SubmittEventActiveClients();
|
||||
SubmittEventMapInformation()
|
||||
return Plugin_Continue;
|
||||
}
|
||||
|
||||
public Action:Event_RoundEnd(Handle:event, const String:name[], bool:dontBroadcast){
|
||||
SubmittEventActiveClients();
|
||||
new team_id = GetEventInt(event, "winner");
|
||||
SubmittEventWinnerTeam(team_id);
|
||||
SubmittEventRoundEnd();
|
||||
return Plugin_Continue;
|
||||
}
|
||||
|
||||
public Action:Event_PlayerDisconnect(Handle:event, const String:name[], bool:dontBroadcast){
|
||||
SubmittEventActiveClients();
|
||||
return Plugin_Continue;
|
||||
}
|
||||
|
||||
public Action:Event_PlayerChangedTeam(Handle:event, const String:name[], bool:dontBroadcast){
|
||||
SubmittEventActiveClients();
|
||||
return Plugin_Continue;
|
||||
}
|
||||
Reference in New Issue
Block a user