13.06.2014, 21:14
Today I learned :
- It's was possible to create a files.txt where all textdraw will be saved and It's will load all textdraws like an include to avoid spamming my gamemode with textdraw line.
pawn Code:
public OnGameModeInit()
{
// pawn_code
#include <dm2fou\interface_textdraw.txt>
return 1;
}
Code:
in interface_textdraw.txt Interface1 = TextDrawCreate(595.599975, 412.166687, "usebox"); TextDrawLetterSize(Interface1, 0.000000, 0.761847); TextDrawTextSize(Interface1, 464.399993, 0.000000); TextDrawAlignment(Interface1, 1); TextDrawColor(Interface1, 0); TextDrawUseBox(Interface1, true); TextDrawBoxColor(Interface1, 102); TextDrawSetShadow(Interface1, 0); TextDrawSetOutline(Interface1, 0); TextDrawFont(Interface1, 0);