> Описание
С этим инклудом: Вы можете сделать текст как в condition zero.
> Источник
Вы должны зарегистрироваться, чтобы видеть ссылки.
> Команды
- Код: Выделить всё
enum
{
RED = 1,
BLUE,
YELLOW,
GREEN
}
/**
* Create a tutor
*
* @param id Player index.
* @param text Text to display in tutor.
* @param color Color of text.
* @param sound Sound to play when display tutor.
* @param Time Time to the tutor still alive.
* @return 1 on success, 0 otherwise.
*/
native czerotutor_create(id, text[] = "", color = YELLOW, sound[] = "", Float:Time = 0.0)
/**
* Check if a tutor is displaying to this player.
*
* @param id Player index.
* @return 1 if exists, 0 otherwise.
*/
native czerotutor_exists(id)
/**
* Remove player tutor.
*
* @param id Player index.
* @return 1 on success, 0 otherwise.
*/
native czerotutor_remove(id)
> Пример
При спавне для ид игрока:
- Код: Выделить всё
#include <amxmodx>
#include <hamsandwich>
#include <czerotutor>
new szSound[] = { "sound/misc/tutor.wav" }
public plugin_precache()
{
// Renember you have to precache the sound
precache_sound(szSound)
}
public plugin_init()
{
register_plugin("[INC] CzeroTutor Test", "1.0", "MMYTH")
RegisterHam(Ham_Spawn, "player", "ham_playerspawn", 1)
}
public ham_playerspawn(id)
{
// Индекс, Текст, Цвет, Звук, Время
czerotutor_create(id, "[INC] CzeroTutor Test^nSome good and usuless message to display in this tutor.", BLUE, szSound, 5.0)
}
P.S.
Shidla писал(а):Следует отметить, что для работы требуется наличие на сервере плагина "native_czerotutor.amxx"