Jump to content
  • 0

o intrebare banala


GiGiMuScHi

Question

As dori sa sa adug un textdrawn in gm  sa apara cati playeri sant online si sub mini-mapa sa apara numele playerului respectiv.

Eu am liniile luate dupa in gm dar nu stiu care si cum sa le iau.

public OnGameModeInit()

{

    SetTimer("ChangeHostname",1000,1);

    ReactionTimer = SetTimer("ReactionTest",REACTION_TIME*1000*60,true);

SetTimer("anticheat", 3000, 1);

SetTimer("ChangeHostname",6000,1); // BaDB0y

SetTimer("msg1",300000/*60000*/,false);

new string[MAX_PLAYER_NAME];

    new string1[MAX_PLAYER_NAME];

for(new c=0;c<CAR_AMOUNT;c++)

{

Gas[c] = GasMax;

}

PlayersOnline = 0;

for(new i = 0; i < GetMaxPlayers(); i++)

  {

  if(IsPlayerConnected(i))

    {

          PlayersOnline+=1;

      }

  }

Textdraw0 = TextDrawCreate(523.000000,434.000000,"ßlodZ");

TextDrawAlignment(Textdraw0,1);

TextDrawBackgroundColor(Textdraw0,0x000000ff);

TextDrawFont(Textdraw0,3);

TextDrawLetterSize(Textdraw0,0.388888,1.100000);

TextDrawColor(Textdraw0,0xFFFF00AA);

TextDrawSetOutline(Textdraw0,1);

TextDrawSetProportional(Textdraw0,1);

TextDrawSetShadow(Textdraw0,1);

TimeTimer = SetTimer("TimeUpdate",1000,1);

HClock = TextDrawCreate(547.000000,28.000000, "--");

    TextDrawLetterSize(HClock, 0.5, 1.5);

TextDrawBackgroundColor(HClock,0x000000ff);

    TextDrawFont(HClock, 3);

TextDrawColor(HClock,0xffffffff);

    TextDrawSetShadow(HClock, 1);

    TextDrawSetOutline(HClock,1);

TextDrawSetProportional(HClock,1);

TextDrawAlignment(HClock,1);

    HClock2 = TextDrawCreate(567.000000, 28.000000, "--");

    TextDrawLetterSize(HClock2, 0.5, 1.5);

TextDrawBackgroundColor(HClock2,0x000000ff);

    TextDrawFont(HClock2, 3);

TextDrawColor(HClock2,0xffffffff);

    TextDrawSetShadow(HClock2, 1);

    TextDrawSetOutline(HClock2,1);

TextDrawSetProportional(HClock2,1);

TextDrawAlignment(HClock2,1);

    HClock4 = TextDrawCreate(597.000000, 28.000000, "--");

    TextDrawLetterSize(HClock4, 0.5, 1.5);

TextDrawBackgroundColor(HClock4,0x000000ff);

    TextDrawFont(HClock4, 3);

TextDrawColor(HClock4,0xffffffff);

    TextDrawSetShadow(HClock4, 1);

    TextDrawSetOutline(HClock4,1);

TextDrawSetProportional(HClock4,1);

TextDrawAlignment(HClock4,1);

    HClock3 = TextDrawCreate(543.000000,11.000000, "--/--/----");

    TextDrawLetterSize(HClock3,0.5, 1.5);

TextDrawBackgroundColor(HClock2,0x000000ff);

    TextDrawFont(HClock3, 3);

    TextDrawColor(HClock3,0xffffffff);

    TextDrawSetShadow(HClock3, 1);

    TextDrawSetOutline(HClock3,1);

TextDrawSetProportional(HClock3,1);

TextDrawAlignment(HClock3,1);

   

    HClock5 = TextDrawCreate(503, 103, "Version 2.4");

TextDrawLetterSize(HClock5, 0, 0);

TextDrawFont(HClock5, 1);

TextDrawLetterSize(HClock5, 0.500000, 1.000000);

TextDrawColor(HClock5, 0xFF0000FF);

TextDrawSetOutline(HClock5, 0);

TextDrawSetProportional(HClock5, 1);

TextDrawSetShadow(HClock5, 1);

TextDrawBackgroundColor(HClock5,0x0000D9FF);

format(string,sizeof(string),"Players Online: %d", PlayersOnline);

Textdraw3 = TextDrawCreate(16.000000,321.000000,"-");

TextDrawAlignment(Textdraw3,0);

TextDrawBackgroundColor(Textdraw3,0x000000ff);

TextDrawFont(Textdraw3,3);

TextDrawLetterSize(Textdraw3,0.499999,1.500000);

TextDrawColor(Textdraw3,0xffff00ff);

TextDrawSetOutline(Textdraw3,1);

TextDrawSetProportional(Textdraw3,1);

TextDrawSetShadow(Textdraw3,1);

for(new playerid = 0; playerid < MAX_PLAYERS; playerid++)

{

Textdraw1[playerid] = TextDrawCreate(442.000000,311.000000,"-");

TextDrawAlignment(Textdraw1[playerid],0);

TextDrawBackgroundColor(Textdraw1[playerid],0x000000ff);

TextDrawFont(Textdraw1[playerid],3);

TextDrawLetterSize(Textdraw1[playerid],1.000000,1.300000);

TextDrawSetOutline(Textdraw1[playerid],1);

TextDrawSetProportional(Textdraw1[playerid],1);

TextDrawSetShadow(Textdraw1[playerid],10);

}

Vreau sa apara ca si aici in poza:

samp028xa.png

Respecta Si Vei Fi Respectat !!!

Link to comment
Share on other sites

5 answers to this question

Recommended Posts

Guest
This topic is now closed to further replies.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more details you can also review our Terms of Use and Privacy Policy.