AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   [deleted] (https://forums.alliedmods.net/showthread.php?t=27815)

Sneakpeek 04-30-2006 09:07

[deleted]
 
[deleted]

Sneakpeek 04-30-2006 10:39

I fixed it.
PM helped me on AIM, thanks. :grrr:

v3x 04-30-2006 18:07

Use -1 for the channel if you're using AMXX 1.61+.

MaximusBrood 04-30-2006 19:13

This should work:

You forgot the [] since the argument is a string :wink:

Code:
public myfunction(id) {     ShowHudmessage(id, "my hudmessage") } public ShowHudmessage(id, hudmessage[]) {     set_hudmessage(225, 0, 0, -1.0, 0.3, 0, 0.25, 3.0, 0.0, 0.0, -1)     show_hudmessage(id, hudmessage) }

Note that this is Amxmodx version 1.61 and higher only!

v3x 04-30-2006 19:20

Forgot about my stock that I had originally made for WoW mod :P

Code:
enum {     MSG_CENTER_TOP = 0,     MSG_CENTER_MIDDLE,     MSG_CENTER_BOTTOM,         MSG_LEFT_TOP,     MSG_LEFT_MIDDLE,     MSG_LEFT_BOTTOM,         MSG_RIGHT_TOP,     MSG_RIGHT_MIDDLE,     MSG_RIGHT_BOTTOM } stock show_message(id , color[3] , pos , Float:time , message[]) {     new Float:x , Float:y;     switch(pos)     {         case MSG_CENTER_TOP:    x = -1.0 , y = 0.2;         case MSG_CENTER_MIDDLE: x = -1.0 , y = -1.0;         case MSG_CENTER_BOTTOM: x = -1.0 , y = 0.75;                 case MSG_LEFT_TOP:  x = 0.5 , y = 0.17;         case MSG_LEFT_MIDDLE:   x = 0.5 , y = 0.40;         case MSG_LEFT_BOTTOM:   x = 0.5 , y = 0.65;                 case MSG_RIGHT_TOP: x = 0.5 , y = 0.2;         case MSG_RIGHT_MIDDLE:  x = 0.45 , y = 0.42;         case MSG_RIGHT_BOTTOM:  x = 0.45 , y = 0.65;                 default: x = -1.0 , y = -1.0;     }         set_hudmessage(color[0] , color[1] , color[2] , x , y , _ , _ , time , _ , _ , -1);     show_hudmessage(id , message);     return 1; } // aww, my indenting got messed up
Example usage:
Code:
show_message(id , {255,255,255} , MSG_CENTER_MIDDLE , 2.0 , "gaben");
Note: The coordinates are probably off so you might want to check them!


All times are GMT -4. The time now is 05:13.

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