so here is a plugin a friend made for me, it will force the clients to do a console command at map end(idk why it says roundend), anyways, can someone modify it so it also forces clients to do that command when they join a team
the idea is the sm_top menu is shown when they join the server, and also at map end(when server switches maps and the drops are given), right now it only display to clients at map end
PHP Code:
#include <sdktools>
#include <sourcemod>
public OnPluginStart()
{
HookEvent("round_end", RoundEnd);
}
public Action:RoundEnd(Handle:event, const String:name[], bool:dontBroadcast)
{
new timeleft;
GetMapTimeLeft(timeleft);
if (timeleft <= 0)
{
UseCMD();
}
}
UseCMD()
{
for(new i = 1; i <= MaxClients; i++)
if(IsClientInGame(i)) FakeClientCommand(i, "sm_top");
}
__________________