Russifer settings TextDraw window
#include <a_samp>
#include "russifier"
public OnPlayerCommandText(playerid, cmdtext[])
{
if (!strcmp(cmdtext, "/russifier", true, 10)) {
ShowPlayerRussifierSettings(playerid);
return 1;
}
return 0;
}
public OnPlayerRussifierSelect(playerid, bool:changed, RussifierType:type)
{
new string[144];
format(string, sizeof(string), "changed = %d | type = %d", _:changed, _:type);
SendClientMessage(playerid, -1, string);
return 1;
}
ShowPlayerRussifierSettings(playerid);
HidePlayerRussifierSettings(playerid);
Russifier_SetText(string[]);
forward OnPlayerRussifierSelect(playerid, bool:changed, RussifierType:type);
Directive | Default value | Can be redefined |
---|---|---|
RUSSIFIER_TEXT_BASE_X | 130.0 | yes |
RUSSIFIER_TEXT_BASE_Y | 200.0 | yes |
RUSSIFIER_TEXT_Y_STEP | 19.0 | yes |
RUSSIFIER_TEXT_SIZE_X | 505.0 | yes |
RUSSIFIER_TEXT_SIZE_Y | 15.0 | yes |
RUSSIFIER_SELECT_COLOR | 0xAA3333FF | yes |
RUSSIFIER_BACKGROUND_PADDING | 5.0 | yes |
RUSSIFIER_TEXT_LETTER_SIZE_X | 0.4 | yes |
RUSSIFIER_TEXT_LETTER_SIZE_Y | RUSSIFIER_TEXT_SIZE_Y / 10.0 | yes |
RUSSIFIER_TEXT_LENGTH | 60 | yes |
RUSSIFIER_DISABLE_HOOKS | not defined | yes |