Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <sourcemod>
- #include <sdktools>
- bool: Restarted = false
- public Plugin:myinfo = {
- name = "Auto restart dupa warmup",
- author = "tre3fla",
- description = "Da restart dupa warmup",
- version = "1.0",
- url = "http://tre3fla"
- }
- public OnPluginStart( ) {
- HookEvent( "round_start", Event_RoundStart )
- }
- public OnMapStart( ) {
- Restarted = false
- }
- public Event_RoundStart( Handle:event, const String:name[], bool:dontBroadcast ) {
- if (GameRules_GetProp( "m_bWarmupPeriod") == 1 && !Restarted ) {
- DoRestart( )
- }
- }
- public DoRestart( ) {
- PrintToChatAll( "*\x04 Runda se restarteaza ..." )
- PrintToChatAll( "*\x04 Runda a fost restartata cu succes!" )
- PrintToChatAll( "*\x04 GL & HF" )
- ServerCommand( "mp_restartgame 1" )
- Restarted = true
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement