I made a forum for my server some days ago, so I made a little plugin which is supposed to write some info in the top right corner of the players screen.
And if they want to remove it they only have to say /remove...
But I need to know what origin to put it to make it show up in the top right corner.
Right now I just took the code from a xp plugin which shows it in the down left corner.
Heres my plugin:
Code:
#include <amxmodx>
#include <amxmisc>
new bool:g_adversite[33]
public plugin_init()
{
register_plugin("www.xuntric.tk adversite", "1.0", "XunTric")
register_clcmd("say /remove", "removeadd")
register_clcmd("say_team /remove", "removeadd")
}
public client_putinserver(id)
{
g_adversite[id] = true
set_task(15.0, "hud", id)
}
public hud(id)
{
new MSG_TEXT
new HUD[51]
format(HUD, 60, "----------------------------^nI only have 3 admins + me^nAnd I need more!!^nJoin xuntric.tk^nAnd be active on the server^nThen you might get admin!!^n----------------------------^nSay /remove to remove this message^n----------------------------")
// ----------------------------
// I only have admins + me
// And I need more!!
// Join xuntric.tk
// And be active on the server
// Then you might get admin!!
// ----------------------------
// Say /remove to remove this message
// ----------------------------
message_begin(MSG_ONE, MSG_TEXT, {0,0,0}, id)
write_byte(0)
write_string(HUD)
message_end()
if(g_adversite[id] == true) {
set_task(15.0, "hud", id)
}
return
}
public removeadd(id)
{
client_print(id, print_chat, "[Adversite Text Removed]")
g_adversite[id] = false
remove_task(id)
return PLUGIN_HANDLED
}
public client_disconnect(id)
{
g_adversite[id] = false
}