User
Pass
2FA
 
 

ajutor

 
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Freakz Forum Index -> Trash Bin -> CS 2006-2019 (Archived) -> Resources
Author Message705
blana

[Mentally Stable]



Status: Offline
(since 13-03-2012 07:21)
Joined: 31 Jan 2009
Posts: 14, Topics: 4
Location: Romania

Reputation: 233.2
Votes: 4

Post Posted: 16-09-2010, 20:40:34 | Translate post to: ... (Click for more languages)

Code:
#include < amxmodx >

#define PLUGIN "New auto round restart"
#define VERSION "1.0"
#define AUTHOR "P.Of.Pw"

#define HUD_MESSAGES
#define MAX_COUNT 1

new g_Count

public plugin_init()
{
   register_plugin( PLUGIN, VERSION, AUTHOR )
   register_event( "TextMsg", "event_gamecomencing", "a", "2&#Game_C" )
   
   register_event( "HLTV", "event_newround", "a", "1=0","2=0" )
   state START_FUNCTION
}

public event_gamecomencing() g_Count = 0

public event_newround() < BLOCK_FUNCTION > { }
public event_newround() < START_FUNCTION >
{
   if( g_Count++ == MAX_COUNT )
   {
      server_cmd( "sv_restart 1" )
      #if defined HUD_MESSAGES
      set_task( 3.0, "show_messages" )
      #endif
      state BLOCK_FUNCTION
   }
}

public show_messages()
{
client_print(0, print_chat, "[..........................] Auto Restart Round !!! [.....................]")
}


as dori ca in loc de comanda sv_restart 1 sa foloseasca comanda hell_live 1

Se poate modifica?

0 0
  
Back to top
View user's profile Send private message
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Freakz Forum Index -> Trash Bin -> CS 2006-2019 (Archived) -> Resources  


The time now is 29-01-2025, 23:34:07
Copyright info

Based on phpBB ro/com
B

 
 
 







I forgot my password


This message appears only once, so
like us now until it's too late ! :D
x