НЕ РЕШЕНО Как работает команда ddraw

Хостинг игровых серверов

AXESOUL

Прохожий
11 Фев 2018
154
12
24
Как отобразить текст коммандой ddraw.text, какие нужны параметры?
 

Aliluya

Прохожий
20 Окт 2018
259
79
[LibraryFunction("Line")]
public void Line(BasePlayer player, Vector3 from, Vector3 to, Color color, float duration) {
player.SendConsoleCommand("ddraw.line", duration, color, from, to);
}

[LibraryFunction("Arrow")]
public void Arrow(BasePlayer player, Vector3 from, Vector3 to, float headSize, Color color, float duration) {
player.SendConsoleCommand("ddraw.arrow", duration, color, from, to, headSize);
}

[LibraryFunction("Sphere")]
public void Sphere(BasePlayer player, Vector3 pos, float radius, Color color, float duration) {
player.SendConsoleCommand("ddraw.sphere", duration, color, pos, radius);
}

[LibraryFunction("Text")]
public void Text(BasePlayer player, Vector3 pos, string text, Color color, float duration) {
player.SendConsoleCommand("ddraw.text", duration, color, pos, text);
}

[LibraryFunction("Box")]
public void Box(BasePlayer player, Vector3 pos, float size, Color color, float duration) {
player.SendConsoleCommand("ddraw.box", duration, color, pos, size);
}
 

AXESOUL

Прохожий
11 Фев 2018
154
12
24
[LibraryFunction("Line")]
public void Line(BasePlayer player, Vector3 from, Vector3 to, Color color, float duration) {
player.SendConsoleCommand("ddraw.line", duration, color, from, to);
}


[LibraryFunction("Arrow")]
public void Arrow(BasePlayer player, Vector3 from, Vector3 to, float headSize, Color color, float duration) {
player.SendConsoleCommand("ddraw.arrow", duration, color, from, to, headSize);
}


[LibraryFunction("Sphere")]
public void Sphere(BasePlayer player, Vector3 pos, float radius, Color color, float duration) {
player.SendConsoleCommand("ddraw.sphere", duration, color, pos, radius);
}


[LibraryFunction("Text")]
public void Text(BasePlayer player, Vector3 pos, string text, Color color, float duration) {
player.SendConsoleCommand("ddraw.text", duration, color, pos, text);
}


[LibraryFunction("Box")]
public void Box(BasePlayer player, Vector3 pos, float size, Color color, float duration) {
player.SendConsoleCommand("ddraw.box", duration, color, pos, size);
}
Спасибо!