Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- new RodymoDezute[MAX_PLAYERS];
- new Text:InformacijosDezute[MAX_PLAYERS];
- new Text:InfoBox[MAX_PLAYERS];
- public OnGameModeInit() // cia dek po situo callbacku
- {
- for(new playerid=0; playerid<MAX_PLAYERS; playerid++)
- {
- InformacijosDezute[playerid] = TextDrawCreate( 13, 150, " " );
- TextDrawUseBox(InformacijosDezute[playerid],1);
- TextDrawBoxColor(InformacijosDezute[playerid],0x00000066);
- TextDrawTextSize(InformacijosDezute[playerid],159, 81);
- TextDrawAlignment(InformacijosDezute[playerid],0);
- TextDrawBackgroundColor(InformacijosDezute[playerid],0x000000ff);
- TextDrawFont(InformacijosDezute[playerid],2);
- TextDrawLetterSize(InformacijosDezute[playerid],0.199999,1.200005);
- TextDrawColor(InformacijosDezute[playerid],0xffffffff );
- TextDrawSetOutline(InformacijosDezute[playerid],1);
- TextDrawSetProportional(InformacijosDezute[playerid],1);
- TextDrawSetShadow(InformacijosDezute[playerid],1);
- InfoBox[playerid] = TextDrawCreate( 13, 150, " " );
- TextDrawUseBox(InfoBox[playerid],1);
- TextDrawBoxColor(InfoBox[playerid],0x00000066);
- TextDrawTextSize(InfoBox[playerid],159, 81);
- TextDrawAlignment(InfoBox[playerid],0);
- TextDrawBackgroundColor(InfoBox[playerid],0x000000ff);
- TextDrawFont(InfoBox[playerid],2);
- TextDrawLetterSize(InfoBox[playerid],0.199999,1.200005);
- TextDrawColor(InfoBox[playerid],0xffffffff );
- TextDrawSetOutline(InfoBox[playerid],1);
- TextDrawSetProportional(InfoBox[playerid],1);
- TextDrawSetShadow(InfoBox[playerid],1);
- }
- }
- forward IstrintiInformacija(playerid)
- public IstrintiInformacija(playerid)
- {
- printf("HideBoxForPlayer(%d);", playerid);
- TextDrawHideForPlayer(playerid, InfoBox[playerid]);
- }
- stock InfoBoxForPlayer(playerid, text[])
- {
- TextDrawHideForPlayer(playerid, InfoBox[playerid]);
- new string[512];
- RodymoDezute[playerid] = 1;
- format(string, sizeof(string), "%s~y~___________", text);
- TextDrawSetString(InfoBox[playerid], string);
- TextDrawShowForPlayer(playerid, InfoBox[playerid]);
- PlayerPlaySound(playerid, 1085, 0.0, 0.0, 0.0 );
- SetTimerEx("IstrintiInformacija", 6900, 0, "d", playerid);
- return 1;
- }
- Naudojimas:
- if(kaskas)
- {
- InfoBoxForPlayer("tavo tekstas")
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement