mirror of
https://github.com/FAUSheppy/skillbird-sourcemod
synced 2025-12-06 07:01:38 +01:00
30 lines
907 B
SourcePawn
30 lines
907 B
SourcePawn
#include "Interfaces.sp"
|
|
|
|
public Action:Event_RoundStart(Handle:event, const String:name[], bool:dontBroadcast){
|
|
|
|
SubmittEventActiveClients();
|
|
SubmittEventMapInformation();
|
|
|
|
/* generate session id for this round */
|
|
SetConVarInt(FindConVar("session-id"), GetRandomInt(0, 200000));
|
|
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;
|
|
}
|