Last active
August 29, 2015 14:05
-
-
Save milutinke/71ee9fe7c2105bc6e742 to your computer and use it in GitHub Desktop.
[Gametracker.rs] Boost Lista
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <amxmodx> | |
#include <colorchat> | |
//Github: https://gist.github.com/milutinke/71ee9fe7c2105bc6e742 | |
new const Komande[][] = {"say /boosts","say_team /boosts", "say /boostlist","say_team /boostlist", "say /listabustova", "say_team /listabustova","say /boostlista","say_team /boostlista"} | |
new VremeReklame, Link[100], IpServera[32]; | |
public plugin_init() | |
{ | |
register_plugin("Gametracker.rs Boost List","1.3","Milutinke (ByM)") | |
register_cvar("gtrs_boost_lista","1.4",(FCVAR_SERVER|FCVAR_SPONLY)); | |
get_user_ip(0, IpServera, charsmax(IpServera)) | |
formatex(Link, charsmax(Link), "http://www.tron.mojkgb.com/gtrsboostlista/gtrsboostlist.php?ip=%s", IpServera) | |
for(new i;i < sizeof Komande;i++) | |
register_clcmd(Komande[i], "PrikaziMotd") | |
VremeReklame = register_cvar("gtrs_VremeReklame","60.0") | |
set_task(30.0, "Reklama") | |
} | |
public PrikaziMotd(id) | |
show_motd(id, Link, "Boost List") | |
public Reklama() ColorChat(0, GREEN, "[Gametracker.rs Boost List] To see boost list of this server, say /boosts"), set_task(get_pcvar_float(VremeReklame), "Reklama"); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment