View Single Post
claudiuhks
Yam Inside®™℠
Join Date: Jan 2010
Location: Living Randomly
Old 11-25-2010 , 07:46   Re: Map Announcer v1.0
Reply With Quote #4

Code:
public map_announcer(id) {
    new map[32]
    get_mapname(map,31)
    
    client_printc(id, "^4[AMXX] ^1You are playing in map: ^4%s",map)
    return;
}
=>>>>

Code:
new roundnumber;

public map_announcer() {
    roundnumber++;
    new map[64];
    new players;
    new maxplayers;
    new timeleft;
    get_mapname(map, 63);
    players = get_playersnum(1);
    maxplayers = get_maxplayers();
    timeleft = (get_timeleft() / 60);
    for (new id = 1; id <= get_maxplayers(); id++) {
        if (!is_user_connected(id)) {
            continue;
        }
        client_printc(id, "^4[AMXX] ^1You are playing on map: ^4%s", map);
        client_printc(id, "^4[AMXX] ^1Number of players: ^4%i/%i", players, maxplayers);
        client_printc(id, "^4[AMXX] ^1Round number: ^4%i", roundnumber);
        client_printc(id, "^4[AMXX] ^1Timeleft: ^4%i", timeleft);
    }
}
--Edited!
--Edited again!
__________________

Last edited by claudiuhks; 11-27-2010 at 09:33.
claudiuhks is offline
Send a message via MSN to claudiuhks Send a message via Yahoo to claudiuhks Send a message via Skype™ to claudiuhks