Skip to content

Open-GTO/russifier

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

russifier

Russifer settings TextDraw window

Dependencies

Screenshot

russifier

Usage

#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;
}

Functions

ShowPlayerRussifierSettings(playerid);
HidePlayerRussifierSettings(playerid);
Russifier_SetText(string[]);

Callbacks

forward OnPlayerRussifierSelect(playerid, bool:changed, RussifierType:type);

Directives

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

About

Russifer settings TextDraw window

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages