Proszę o edytacje tego pluga
#include <amxmodx>
#include <amxmisc>
#include <cstrike>
#include <csx>
#define PLUGIN "New Plug-In"
#define VERSION "1.0"
#define AUTHOR "Admin"
new SyncHudObj;
new runda;
public plugin_init()
{
register_plugin(PLUGIN, VERSION, AUTHOR)
register_event("TextMsg", "reset", "a", "2&#Game_will_restart_in" );
register_event("TextMsg", "reset", "a", "2&#Game_C")
register_logevent("Runda", 2, "1=Round_Start")
register_clcmd("say /test", "PokazHUD");
SyncHudObj = CreateHudSyncObj();
}
public Runda(){
runda++
if(runda == 2){
for(new i; i<get_maxplayers(); i++)
set_task(1.0, "PokazHUD", i+66666, .flags="b")
}
}
public reset(){
runda = 0
}
public PokazHUD(id)
{
id-=66666
if(!is_user_connected(id))
return PLUGIN_CONTINUE
new a = get_timeleft()
new staty[8], trafienia[8], name[32];
get_stats(0, staty, trafienia, name, 31);
set_hudmessage(255, 255, 255, -1.0, 0.01, 0, 1.0, 1.0)
ShowSyncHudMsg(id, SyncHudObj, "Timeleft: %d:%d | Fragi: %i | Forum: HS-Serwer.pl | Zgony: %i", (a / 60), (a % 60),staty[0],staty[1])
}
Chce aby był od początku gry a nie od 2 rundy. I na górze ma się wyświetlać Forum (sam sobie wpisze tylko ma być napisane gdzie
) | Timeleft | Czas aktualny np 16.12


Dodatki SourceMod




Temat jest zamknięty









