Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <amxmodx>
- #include <colorchat>
- new auto_rround, rr_text;
- public plugin_init()
- {
- register_plugin("Restart automat", "1.0", "StefaN@CSX");
- register_logevent("auto_restart", 2, "1=Round_End");
- rr_text = register_cvar("amx_rr_text","WWW.FIORIGINAL.RO/FORUM");
- }
- public auto_restart(id)
- {
- auto_rround++;
- if(auto_rround == 2)
- {
- new hostname [62], text[62];
- get_pcvar_string(rr_text, text, charsmax(text));
- get_cvar_string("hostname", hostname, charsmax(hostname));
- server_cmd("sv_restart 1");
- ColorChat(0, RED, "-==%s==-", hostname);
- ColorChat(0, RED, "-==%s==-", text);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement