|
发表于 2020-4-1 14:40:59
|
显示全部楼层
来自 中国–四川–成都
format 只是格式化字符串的
- set_hudmessage(255, 0, 0, 0.48, 0.64, 0, 6.0, 0.0, 0.1, 0.2, 2);
- show_hudmessage(id,message);
复制代码
Syntax
native set_hudmessage(red = 200, green = 100, blue = 0, Float:x = -1.0, Float:y = 0.35, effects = 0, Float:fxtime = 6.0, Float:holdtime = 12.0, Float:fadeintime = 0.1, Float:fadeouttime = 0.2, channel = -1);
Usage
red
Red component of hudmessage color
green
Green component of hudmessage color
blue
Blue component of hudmessage color
x
Location of the message on the x axis in percent
y
Location of the message on the y axis in percent
effects
Display effect
fxtime
Duration of the effect
holdtime
Time the message stays on screen
fadeintime
Time it takes the message to fully appear (fade-in)
fadeouttime
Time it takes the message to fully disappear (fade-out)
channel
Channel to use on the client |
|