User
Pass
2FA
 
 

Server Restarter [AMXMODX]

 
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 -> Trash
Author Message3157
SAMURAI

[Mentally Stable]



Status: Offline
(since 07-10-2009 17:11)
Joined: 08 Dec 2006
Posts: 16, Topics: 4
Location: Shinjukashi-ku,Tokyo,Japan

Reputation: 111.5
Votes: 5

Post Posted: 12-12-2006, 18:33:28 | Translate post to: ... (Click for more languages)

Server Restarter AMXMODX Plugin

Am sa va dau code-ul pluginului deoarece nu am avut un host serios unde sa vi-l pun
=>
Code:
/* Server Restarter AMX MOD X Plugin

* Author : SAMURAI
* Version : 0.1

* Detalii : Cu acest plugin activat la server, serverul se va restarta din 24 in 24 de ore
  Este foarte folositor in caz de aveti server cu Psychostats sau ceva care face loguri
  De asemenea este folositor si in cazul in care aveti un server la care jucatorii
au in top peste 5000 de fraguri pentru a nu face lag

* NFO : Va trebuie AMX MOD X 1.60 sau mai nou


*/

#include <amxmodx>
#include <amxmisc>

#define PLUGIN "Server Restarter"
#define VERSION "0.1"
#define AUTHOR "SAMURAI"


new p_Plugin
new p_time

public plugin_init() {
   register_plugin(PLUGIN, VERSION, AUTHOR)
   
   p_Plugin = register_cvar("amx_restarter","1")
   p_time = register_cvar("amx_restart_time","1")
}


public srvrestart()
{
   if(get_pcvar_num(p_Plugin))
   {
   
   set_task(86400.0, "willrestart",_,_,_,_,_)
          }
   return PLUGIN_HANDLED
   
}
   
   
public willrestart()
{
   
   if(get_pcvar_num(p_time))
   
   {
    server_cmd("restart")
   
   return
          }
}

0 0
  
Back to top
View user's profile Send private message
DarkSider

[Mentally Stable]



Status: Offline
(since 13-08-2010 16:58)
Joined: 01 Aug 2006
Posts: 347, Topics: 28
Location: Iasi

Reputation: 120.8
Votes: 4

 
Post Posted: 12-12-2006, 20:42:38 | Translate post to: ... (Click for more languages)

Hmmm ... Good - .
0 0
  
Back to top
View user's profile Send private message Yahoo! Messenger ID
mishu

[Mentally Stable]



Status: Offline
(since 06-07-2012 00:37)
Joined: 25 Mar 2007
Posts: 396, Topics: 34
Location: Pantelimon

Reputation: 331.7
Votes: 7

 
Post Posted: 07-04-2007, 01:44:05 | Translate post to: ... (Click for more languages)

- noob, explicati-mi si mie ce tre sa fac.. -
0 0
  
Back to top
View user's profile Send private message Yahoo! Messenger ID
Criminalul-X
[Banned user]


Banned


Status: Offline
(since 20-02-2008 18:22)
Joined: 22 Sep 2007
Posts: 371, Topics: 49
Location: fun.freakz.ro

Reputation: 135.2
Votes: 10

 
Post Posted: 30-10-2007, 09:15:01 | Translate post to: ... (Click for more languages)

faci un fisier amxx gen

nume.amxx si in acel fisier pui acel cod si il compilezi il pui in amxx mod plugins si pui linia gen nume.amxx in plugins.ini si gta !


-=>Premii !
-=>Unban/Banati !
-=>Regulament fun.freakz.ro !
-=>Preturi Admine/XP & Admini Serverului

Contact YM: x_criminalul !

0 0
  
Back to top
View user's profile Send private message Yahoo! Messenger ID
d4rkm4n
[Banned user]


Banned


Status: Offline
(since 09-09-2008 06:54)
Joined: 08 Sep 2007
Posts: 47, Topics: 11
Location: Romania

Reputation: 98.1
Votes: 4

 
Post Posted: 31-10-2007, 19:53:12 | Translate post to: ... (Click for more languages)

habar n-ai, nu asa se face.....creezi un fisier cu extensia .sma (deskizi cu notepad), dai copy-paste la codul ala, salvezi, il compilezi...te duci, iei fisierul in format .amxx din directorul compiled si il copiezi in directorul plugins, asta-i tot...intrebarea mea e alta...ce face practic pluginul asta? -
0 0
  
Back to top
View user's profile Send private message Yahoo! Messenger ID
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 -> Trash  


The time now is 10-05-2024, 21:24:36
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