Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #define bigDevFont "fonts/bigDevFont"
- void(*SV_GameSendServerCommand)(int client, int type, const char *text) = (void(*)(int, int, const char*))0x82254940;
- bool(*Dvar_GetBool)(const char* Dvar) = (bool(*)(const char*))0x8229EF58;
- void*(*R_RegisterFont)(const char *name, int imageTrack) = (void*(*)(const char *, int))0x8234DC90;
- void(*R_AddCmdDrawText)(const char *text, int maxChars, void * font, float x, float y, float xScale, float yScale, float rotation, const float * color, int style) = (void(*)(const char *, int, void *, float, float, float, float, float, const float *, int))0x82350258;
- char Buffer[0x100];
- void iPrintlnBold(int client, const char* text)
- {
- sprintf(Buffer, "c \"%s", text);
- SV_GameSendServerCommand(client, 0, Buffer);
- }
- float white[4] = { 1.0f, 1.0f, 1.0f, 1.0f };
- void DrawText(const char * text, float x, float y, float fontSize)
- {
- R_AddCmdDrawText(text, 0x7FFFFFFF, R_RegisterFont(bigDevFont, 1), x, y, fontSize, fontSize, 1.0, white, 0);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement