Re: reklama
Posted: 2011 Mar 20 17:59
Rodyk pilną kodą. Žiūrėsim.
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)}
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)}
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") }}