Jump to content
  • 0

pomoc Nezobrazuje se TextDraw pod mapou


TooM824

Dotaz

Zdravím,
Zrovna jsem pawnil TextDraw pod mapou a nějak se mi nezobrazuje pod mapou. :/ Neporadili by jste ?

 

 

#include <a_samp>

#define tabsize 0

new Text:Textdraw;

public OnFilterScriptInit(){
Textdraw = TextDrawCreate(5.0, 400.0, "~y~Super ~g~CZ/SK ~g~Server");
TextDrawUseBox(Textdraw, 0);
TextDrawFont(Textdraw, 3);
TextDrawSetShadow(Textdraw, 0);
TextDrawSetOutline(Textdraw, 1);
TextDrawBackgroundColor(Textdraw, 0x000000FF);
TextDrawColor(Textdraw, 0xFFFFFFFF);
return 1;
}

public OnFilterScriptExit()
{
return 1;
}

public OnPlayerConnect(playerid)
{
TextDrawShowForPlayer(playerid, Textdraw);
return 1;
}

public OnPlayerDisconnect(playerid, reason)
{
TextDrawHideForPlayer(playerid, Textdraw);
return 1;
}

 

 

Edited by UareBugged
Doplnený spoiler a code tag
Link to comment
Share on other sites

7 odpovědí na tuto otázku

Recommended Posts

  • 0

 

 

#include
new Text:SServer;


public OnFilterScriptInit()
{
SServer = TextDrawCreate(5.0,400.0,"Super server");
TextDrawUseBox(SServer,0);
TextDrawFont(SServer,3);
TextDrawSetShadow(SServer,0);
TextDrawSetOutline(SServer,1);
TextDrawBackgroundColor(SServer,0x000000FF);
TextDrawColor(SServer,0xFFFFFFFF);
TextDrawShowForAll(SServer);
return 1;
}


public OnFilterScriptExit()
{
TextDrawDestroy(SServer);
return 1;
}

 

 

 

--------------------------------

 

#include <a_samp>
new Text:SServer;


public OnFilterScriptInit()
{
  SServer = TextDrawCreate(5.0,400.0,"Super server");
  TextDrawUseBox(SServer,0);
  TextDrawFont(SServer,3);
  TextDrawSetShadow(SServer,0);
  TextDrawSetOutline(SServer,1);
  TextDrawBackgroundColor(SServer,0x000000FF);
  TextDrawColor(SServer,0xFFFFFFFF);
  return 1;
}


public OnFilterScriptExit()
{
  TextDrawDestroy(SServer);
  return 1;
}


public OnPlayerConnect(playerid)
{
  TextDrawShowForPlayer(playerid,SServer);
  return 1;
}


public OnPlayerDisconnect(playerid,reason)
{
  TextDrawHideForPlayer(playerid,SServer);
  return 1;
}

 

 

Edited by b_KEY
Link to comment
Share on other sites

  • 0

Kamo o akom configu tu ty meles?

 

 

pisu, ze textdraw byva vetsinou zapsany uprostred configu... pokud neni tak to muze byt takova chyba, myslim, ze pred pul rokem jsem delal textdraw, bohuzel jsem ho zapsal jako posledni, a jeste jsem ho zapsal jako prvni, furt to neslo, ale kdyz jsem to zapsal nekde v uprostred configu, kdyz tam mas treba 2 fs, tak to das jako druhy, kdyz je toho vic, tak se snazis aby to bylo uprostred configu, jinak ti to nepujde.

 

;)

Edited by LukYs
Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...