Raised This Month: $ Target: $400
 0% 

Screen origin...


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
XunTric
BANNED
Join Date: Jan 2005
Location: Norway/Norge
Old 08-27-2005 , 09:14   Screen origin...
Reply With Quote #1

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 }
XunTric is offline
 



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 14:24.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode