Jump to content
  • 0

pomoc [HLADAM] FilteScript


XXXKiller

Dotaz

3 odpovědí na tuto otázku

Recommended Posts

  • 0

Tady jsem něco našel, ale v .pwn. Netestoval jsem to. Musíš zkusit.

 

 

#include 

new Text:chat5;
new Text:chat4;
new Text:chat3;
new Text:chat2;
new Text:chat1;
new Chamar = 0;

public OnFilterScriptInit()
{
   chat5 = TextDrawCreate(16.000000, 120.000000, "Chat 5");
   TextDrawBackgroundColor(chat5, 255);
   TextDrawFont(chat5, 1);
   TextDrawLetterSize(chat5, 0.779998, 1.900000);
   TextDrawColor(chat5, -1);
   TextDrawSetOutline(chat5, 0);
   TextDrawSetProportional(chat5, 1);
   TextDrawSetShadow(chat5, 1);

   chat4 = TextDrawCreate(16.000000, 130.000000, "Chat 4");
   TextDrawBackgroundColor(chat4, 255);
   TextDrawFont(chat4, 1);
   TextDrawLetterSize(chat4, 0.779998, 1.900000);
   TextDrawColor(chat4, -1);
   TextDrawSetOutline(chat4, 0);
   TextDrawSetProportional(chat4, 1);
   TextDrawSetShadow(chat4, 1);

   chat3 = TextDrawCreate(16.000000, 140.000000, "Chat 3");
   TextDrawBackgroundColor(chat3, 255);
   TextDrawFont(chat3, 1);
   TextDrawLetterSize(chat3, 0.779998, 1.900000);
   TextDrawColor(chat3, -1);
   TextDrawSetOutline(chat3, 0);
   TextDrawSetProportional(chat3, 1);
   TextDrawSetShadow(chat3, 1);

   chat2 = TextDrawCreate(16.000000, 150.000000, "Chat 2");
   TextDrawBackgroundColor(chat2, 255);
   TextDrawFont(chat2, 1);
   TextDrawLetterSize(chat2, 0.779998, 1.900000);
   TextDrawColor(chat2, -1);
   TextDrawSetOutline(chat2, 0);
   TextDrawSetProportional(chat2, 1);
   TextDrawSetShadow(chat2, 1);

   chat1 = TextDrawCreate(16.000000, 160.000000, "Chat 1");
   TextDrawBackgroundColor(chat1, 255);
   TextDrawFont(chat1, 1);
   TextDrawLetterSize(chat1, 0.779998, 1.900000);
   TextDrawColor(chat1, -1);
   TextDrawSetOutline(chat1, 0);
   TextDrawSetProportional(chat1, 1);
   TextDrawSetShadow(chat1, 1);
   return 1;
}

public OnFilterScriptExit()
{
   TextDrawHideForAll(chat5);
   TextDrawDestroy(chat5);
   TextDrawHideForAll(chat4);
   TextDrawDestroy(chat4);
   TextDrawHideForAll(chat3);
   TextDrawDestroy(chat3);
   TextDrawHideForAll(chat2);
   TextDrawDestroy(chat2);
   TextDrawHideForAll(chat1);
   TextDrawDestroy(chat1);
   return 1;
}

public OnPlayerConnect(playerid)
{
   TextDrawShowForPlayer(playerid, chat5);
   TextDrawShowForPlayer(playerid, chat4);
   TextDrawShowForPlayer(playerid, chat3);
   TextDrawShowForPlayer(playerid, chat2);
   TextDrawShowForPlayer(playerid, chat1);
   return 1;
}

public OnPlayerText(playerid, text[])
{
  new string[128];
  if(Chamar == 0)
              {
                format(string,sizeof string,"%s",text);
                TextDrawSetString(chat5,string);
                TextDrawShowForPlayer(playerid, chat5);
                //TextDrawShowForAll(chat5);
              }
  else if(Chamar == 1)
              {
                format(string,sizeof string,"%s",text);
                TextDrawSetString(chat4,string);
                TextDrawShowForPlayer(playerid, chat4);
              }
  else if(Chamar == 2)
              {
                format(string,sizeof string,"%s",text);
                TextDrawSetString(chat3,string);
                TextDrawShowForPlayer(playerid, chat3);
              }
  else if(Chamar == 3)
              {
                format(string,sizeof string,"%s",text);
                TextDrawSetString(chat2,string);
                TextDrawShowForPlayer(playerid, chat2);
              }
  else if(Chamar == 4)
              {
                format(string,sizeof string,"%s",text);
                TextDrawSetString(chat1,string);
                TextDrawShowForPlayer(playerid, chat1);
                Chamar = -1;
              }
  /*else if(Chamar > 5)
              {
                format(string,sizeof string,"%s",text);
                TextDrawSetString(chat1,string);
                TextDrawShowForPlayer(playerid, chat1);

                format(string,sizeof string,"%s",text);
                TextDrawSetString(chat1,string);
                TextDrawShowForPlayer(playerid, chat2);
                //Chamar = -1;
              }*/
  return Chamar++;
}

 

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...