zdar, udelal jsem si includ infobox, abych mohl v modu zadavat jen funkci InfoBox(playerid, text); ale ten text se mi na serveru ukaze uplne v jinym stylu pisma a v jine velikosti, opravdu nechapu proc to blbne :/
//to co je v includu
#include
#if defined _p_infobox_included
#endinput
#endif
#define _p_infobox_included
new Text:InfoBoxText[MAX_PLAYERS];
new Text:InfoBox2;
forward InfoBoxHide(playerid);
forward InfoBox(playerid, string[]);
forward InfoBox_OnPlayerConnect(playerid);
forward InfoBox_OnGameModeInit();
public InfoBox_OnPlayerConnect(playerid)
{
InfoBoxText[playerid] = TextDrawCreate(48,154,"hahahahahahahah~n~hahahahahahahah~n~hahahahahahahah~n~hahahahahahahah~n~hahahahahahahah");
TextDrawLetterSize(InfoBoxText[playerid],0.399999,1.200000);
TextDrawAlignment(InfoBoxText[playerid],0);
TextDrawBackgroundColor(InfoBoxText[playerid],0x000000FF);
TextDrawFont(InfoBoxText[playerid],1);
TextDrawUseBox(InfoBoxText[playerid],0);
TextDrawSetOutline(InfoBoxText[playerid],0);
TextDrawSetProportional(InfoBoxText[playerid],1);
TextDrawSetShadow(InfoBoxText[playerid],1);
}
public InfoBox_OnGameModeInit()
{
InfoBox2 = TextDrawCreate(76,142,"InfoBox");
TextDrawLetterSize(InfoBox2,0.399999,1.200000);
TextDrawAlignment(InfoBox2,0);
TextDrawBackgroundColor(InfoBox2,0xFF0000FF);
TextDrawFont(InfoBox2,1);
TextDrawUseBox(InfoBox2,0);
TextDrawSetOutline(InfoBox2,0);
TextDrawSetProportional(InfoBox2,1);
TextDrawSetShadow(InfoBox2,1);
return 1;
}
public InfoBoxHide(playerid)
{
TextDrawHideForPlayer(playerid, InfoBoxText[playerid]);
TextDrawHideForPlayer(playerid, InfoBox2);
return 1;
}
public InfoBox(playerid, string[])
{
TextDrawShowForPlayer(playerid, InfoBox2);
TextDrawShowForPlayer(playerid, InfoBoxText[playerid]);
TextDrawSetString(InfoBoxText[playerid], string);
SetTimerEx("InfoBoxHide", 7000, 0, "i", playerid);
return 1;
}
Dotaz
Sweet 7
zdar, udelal jsem si includ infobox, abych mohl v modu zadavat jen funkci InfoBox(playerid, text); ale ten text se mi na serveru ukaze uplne v jinym stylu pisma a v jine velikosti, opravdu nechapu proc to blbne :/
diky za kazdou radu
Link to comment
Share on other sites
1 odpověd na tuto otázku
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now