Page 2 of 2

Re: reklama

Posted: 2011 Mar 20 17:59
by aaarnas
Rodyk pilną kodą. Žiūrėsim.

Re: reklama

Posted: 2011 Mar 20 21:20
by Keistas

Code: Select all

#include <amxmodx>#include <engine>  new hud_sync  public plugin_init() {             new Ent = create_entity("info_target")             hud_sync = CreateHudSyncObj()         entity_set_string(Ent, EV_SZ_classname, "think")         entity_set_float(Ent, EV_FL_nextthink, get_gametime() + 5.0)             register_think("think", "Nori vip? Rasyk /noriuvip")}    public Reklama(Ent) {     static id, players[32], num, i     get_players(players, num, "ch")             for(i = 0; i < num; i++) {         id = players[i]                 set_hudmessage(255, 0, 0, 0.12, 0.02, 2, 2.0, 6.0, 0.05, 0.2, 2)         ShowSyncHudMsg(id, hud_sync, "Nori vip? Rasyk /noriuvip")     }     entity_set_float(Ent, EV_FL_nextthink, get_gametime() + 1.0)}

Re: reklama

Posted: 2011 Mar 20 21:29
by aaarnas
Pamėgink:

Code: Select all

#include <amxmodx>#include <engine> new hud_sync public plugin_init() {            new Ent = create_entity("info_target")            hud_sync = CreateHudSyncObj()        entity_set_string(Ent, EV_SZ_classname, "think")        entity_set_float(Ent, EV_FL_nextthink, get_gametime() + 5.0)            register_think("think", "Reklama")}  public Reklama(Ent) {    static id, players[32], num, i    get_players(players, num, "ch")        for(i = 0; i < num; i++) {        id = players[i]                set_hudmessage(255, 0, 0, 0.05, 0.13, 2, 2.0, 6.0, 0.05, 0.2, 2)        ShowSyncHudMsg(id, hud_sync, "Nori vip? Rasyk /noriuvip")    }    entity_set_float(Ent, EV_FL_nextthink, get_gametime() + 1.0)}
Beje entity nebūtina naudoti. Galima ir taip:

Code: Select all

#include <amxmodx>#include <engine> new hud_sync public plugin_init() {            hud_sync = CreateHudSyncObj()    set_task(1.0, "Reklama", 0, _, _, "b")}  public Reklama() {    static id, players[32], num, i    get_players(players, num, "ch")        for(i = 0; i < num; i++) {        id = players[i]                set_hudmessage(255, 0, 0, 0.05, 0.13, 2, 2.0, 6.0, 0.05, 0.2, 2)        ShowSyncHudMsg(id, hud_sync, "Nori vip? Rasyk /noriuvip")    }}

Re: reklama

Posted: 2011 Mar 20 22:51
by Keistas
Dėkui, arnai padėjai. Beabėjo +karma.