Advertisement
iProgeny

Untitled

Jul 15th, 2017
245
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.99 KB | None | 0 0
  1. #define bigDevFont "fonts/bigDevFont"
  2.  
  3. void(*SV_GameSendServerCommand)(int client, int type, const char *text) = (void(*)(int, int, const char*))0x82254940;
  4. bool(*Dvar_GetBool)(const char* Dvar) = (bool(*)(const char*))0x8229EF58;
  5. void*(*R_RegisterFont)(const char *name, int imageTrack) = (void*(*)(const char *, int))0x8234DC90;
  6. 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;
  7.  
  8. char Buffer[0x100];
  9.  
  10. void iPrintlnBold(int client, const char* text)
  11. {
  12. sprintf(Buffer, "c \"%s", text);
  13. SV_GameSendServerCommand(client, 0, Buffer);
  14. }
  15.  
  16. float white[4] = { 1.0f, 1.0f, 1.0f, 1.0f };
  17.  
  18. void DrawText(const char * text, float x, float y, float fontSize)
  19. {
  20. R_AddCmdDrawText(text, 0x7FFFFFFF, R_RegisterFont(bigDevFont, 1), x, y, fontSize, fontSize, 1.0, white, 0);
  21. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement