Szerző Téma: [HELP]Mozgó textdraw  (Megtekintve 751 alkalommal)

Nem elérhető instant

  • 2778
  • ZzzzzZ
    • Profil megtekintése
[HELP]Mozgó textdraw
« Dátum: 2011. Június 17. - 09:01:56 »
0 Show voters
Cs all
Segitenétek abba hogy hogy kell csinálni mozgó textdrawot ? hogy bizonyos idõkõzõnként változzon ??

Nem elérhető Flash

  • 5726
  • (っ◕‿◕)っ
    • Profil megtekintése
[HELP]Mozgó textdraw
« Válasz #1 Dátum: 2011. Június 17. - 09:12:46 »
+1 Show voters
Ilyenre gondolsz?
 
#include a_samp
#define FILTERSCRIPT
#define red 0xF60000AA
forward Changecmds();
forward ChangeTextcmds (text[]);
new Text:Textcmds;
new TextcmdsCount = 0;
#define gamemodecount 11
#define ms 5000
#define websitecount 11
#define ms 5000
#define cmdscount 11
#define ms 5000
 
public OnFilterScriptInit()
{
   print(\"\\n--------------------------------------\");
   print(\"Váltakozó textdraw betöltve\");
   print(\"--------------------------------------\\n\");
   Textcmds = TextDrawCreate(511.000000, 101.000000, \"/help\");
   TextDrawBackgroundColor(Textcmds, 255);
   TextDrawFont(Textcmds, 3);
   TextDrawLetterSize(Textcmds, 0.439999, 2.000000);
   TextDrawColor(Textcmds, -1);
   TextDrawSetOutline(Textcmds, 2);
   TextDrawSetProportional(Textcmds, 1);
 
   SetTimer(\"Changecmds\",ms,5000);
   return 1;
}
public OnFilterScriptExit()
{
   TextDrawDestroy(Textcmds);
   return 1;
}
public OnPlayerConnect(playerid)
{
//   SendClientMessage(playerid, red,\"A parancsok a pénz alatt!\");
   return 1;
}
public OnPlayerDisconnect(playerid, reason)
{
   TextDrawHideForPlayer(playerid, Textcmds);
   return 1;
}
public ChangeTextcmds(text[])
{
   TextDrawHideForAll(Textcmds);
   TextDrawSetString(Textcmds,text);
   TextDrawShowForAll(Textcmds);
   return 1;
}
public Changecmds()
{
if(TextcmdsCount > cmdscount) TextcmdsCount = 0;
      switch(TextcmdsCount)
   {
       case 0:
       {
         ChangeTextcmds(\"~r~/help\");
       }
       case 1:
       {
         ChangeTextcmds(\"~g~/tele\");
        }
        case 2:
       {
         ChangeTextcmds(\"~y~/parancs\");
        }
        case 3:
       {
         ChangeTextcmds(\"~w~/parancs\");
        }
        case 4:
       {
         ChangeTextcmds(\"~b~/parancs\");
        }
        case 5:
       {
         ChangeTextcmds(\"~p~/parancs\");
        }
        case 6:
       {
         ChangeTextcmds(\"~w~/parancs\");
        }
        case 7:
       {
         ChangeTextcmds(\"~r~/parancs\");
        }
/*        case 8:
       {
         ChangeTextcmds(\"~r~/parancs\");
        }*/
         }
TextcmdsCount++;
}

Nem elérhető instant

  • 2778
  • ZzzzzZ
    • Profil megtekintése
[HELP]Mozgó textdraw
« Válasz #2 Dátum: 2011. Június 17. - 09:49:55 »
0 Show voters
aha kösze

Gang[St]e[R]

  • Vendég
[HELP]Mozgó textdraw
« Válasz #3 Dátum: 2011. Június 17. - 12:45:03 »
0 Show voters
Mindíg létrekell hoznod textdrawot és egy idõzítõ segítségével elpusztítani, majd még újat létrehozni és így tovább, de textdraw készítésbe tudom ajánlani a progress.inc fájlt, ezzel úgymond usebarokat hozhatsz létre, lásd az L4D Healing scriptem.

Nem elérhető instant

  • 2778
  • ZzzzzZ
    • Profil megtekintése
[HELP]Mozgó textdraw
« Válasz #4 Dátum: 2011. Június 17. - 15:36:58 »
0 Show voters
oksa köszi témát zárom

 

SimplePortal 2.3.7 © 2008-2024, SimplePortal