Szerző Téma: /chatcolor parancs  (Megtekintve 2423 alkalommal)

Nem elérhető BoSS

  • 816
    • Profil megtekintése
/chatcolor parancs
« Válasz #15 Dátum: 2012. Május 13. - 19:03:45 »
+1 Show voters
Idézetet írta: Flash date=1336927030\" data-ipsquote-contentapp=\"forums\" data-ipsquote-contenttype=\"forums\" data-ipsquote-contentid=\"21424\" data-ipsquote-contentclass=\"forums_Topic
Két színben gyorsan összedobtam, de nem teszteltem!
 
#include <a_samp>
#include <zcmd>
CMD:chatcolor(playerid)
{
ShowPlayerDialog(playerid, 5000, DIALOG_STYLE_LIST, \"ChatColor change\", \"Kék\\nPiros\", \"Change!\", \"Mégse\");
return 1;
}
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
if(dialogid == 5000)
{
if(response)
{
   if(listitem==0)
   {
      SetPVarInt(playerid, \"Kek\", 1);
      SetPVarInt(playerid, \"Piros\", 0);
      SendClientMessage(playerid, -1, \"Kék szövegszín kiválasztva!\");
   }
   if(listitem==1)
   {
      SetPVarInt(playerid, \"Kek\", 0);
      SetPVarInt(playerid, \"Piros\", 1);
      SendClientMessage(playerid, -1, \"Piros szövegszín kiválasztva!\");
   }
}
}
return 1;
}
public OnPlayerText(playerid, text[])
{
      new string[512], Name[MAX_PLAYER_NAME];
GetPlayerName(playerid, Name, MAX_PLAYER_NAME);
if(GetPVarInt(playerid, \"Kek\") == 1)
{
format(string, sizeof(string), \"%s {375FFF}%s\", Name, text);
}
if(GetPVarInt(playerid, \"Piros\") == 1)
{
format(string, sizeof(string), \"%s {E60000}%s\", Name, text);
}
SendClientMessageToAll(GetPlayerColor(playerid), string);
return 0;
}

 

Ha ezt berakja akkor aki nem írja be a /chatcolor parancsot annak nem fogja mutatni az írását nem?
Csak akkor ha választ szint is....Vagy nem? :D

Nem elérhető Flash

  • 5726
  • (っ◕‿◕)っ
    • Profil megtekintése
/chatcolor parancs
« Válasz #16 Dátum: 2012. Május 13. - 19:04:54 »
+1 Show voters
így nem megy?
 
    #include <a_samp>
    #include <zcmd>
     
    CMD:chatcolor(playerid)
    {
            ShowPlayerDialog(playerid, 5000, DIALOG_STYLE_LIST, \"ChatColor change\", \"Kék\\nPiros\", \"Change!\", \"Mégse\");
            return 1;
    }
     
    public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
    {
            if(dialogid == 5000)
            {
                    if(response)
                    {
                            if(listitem==0)
                            {
                                    SetPVarInt(playerid, \"Kek\", 1);
                                    SetPVarInt(playerid, \"Piros\", 0);
                                    SendClientMessage(playerid, -1, \"Kék szövegszín kiválasztva!\");
                            }
                            if(listitem==1)
                            {
                                    SetPVarInt(playerid, \"Kek\", 0);
                                    SetPVarInt(playerid, \"Piros\", 1);
                                    SendClientMessage(playerid, -1, \"Piros szövegszín kiválasztva!\");
                            }
                    }
            }
            return 1;
    }
     
    public OnPlayerText(playerid, text[])
    {
            new e[200];
            if(GetPVarInt(playerid, \"Kek\") == 1)
            {
            format( e, 200, \"{FFFFFF}(%i){375FFF}%s\", playerid, text );
            }
            if(GetPVarInt(playerid, \"Piros\") == 1)
            {
            format( e, 200, \"{FFFFFF}(%i){E60000}%s\", playerid, text );
            }
            SendPlayerMessageToAll(playerid, e);
            return 0;
    }

/chatcolor parancs
« Válasz #17 Dátum: 2012. Május 13. - 19:14:11 »
0 Show voters
nem :(
Ugy kellene megcsinalni hogy ha még nem irom be hoogy /chatcolor akkor fehér szinûvel irjon az ember
vagyis belépek és fehér szinnel irjon
és ha beirom /chatcolor --> piros akkor pirossal irjon!

Nem elérhető Flash

  • 5726
  • (っ◕‿◕)っ
    • Profil megtekintése
/chatcolor parancs
« Válasz #18 Dátum: 2012. Május 13. - 21:50:37 »
+1 Show voters
#include <a_samp>
#include <zcmd>
public OnPlayerConnect(playerid)
{
SetPVarInt(playerid, \"Alap\", 1);
return 1;
}
CMD:chatcolor(playerid)
{
ShowPlayerDialog(playerid, 5000, DIALOG_STYLE_LIST, \"ChatColor change\", \"Kék\\nPiros\\nAlap\", \"Change!\", \"Mégse\");
return 1;
}
public OnPlayerText(playerid, text[])
{
new e[200];
if(GetPVarInt(playerid, \"Kek\") == 1)
{
   format( e, 200, \"{FFFFFF}(%i){375FFF}%s\", playerid, text );
}
if(GetPVarInt(playerid, \"Piros\") == 1)
{
   format( e, 200, \"{FFFFFF}(%i){E60000}%s\", playerid, text );
}
if(GetPVarInt(playerid, \"Alap\") == 1)
{
   format( e, 200, \"{FFFFFF}(%i){FFFFFF}%s\", playerid, text );
}
SendPlayerMessageToAll(playerid, e);
return 0;
}
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
    if(dialogid == 5000)
    {
       if(response)
        {
            if(listitem==0)
           {
               SetPVarInt(playerid, \"Kek\", 1);
                SetPVarInt(playerid, \"Piros\", 0);
                SetPVarInt(playerid, \"Alap\", 0);
      SendClientMessage(playerid, -1, \"Kék szövegszín kiválasztva!\");
          }
          if(listitem==1)
            {
                SetPVarInt(playerid, \"Kek\", 0);
                SetPVarInt(playerid, \"Piros\", 1);
                SetPVarInt(playerid, \"Alap\", 0);
             SendClientMessage(playerid, -1, \"Piros szövegszín kiválasztva!\");
            }
           if(listitem==2)
            {
                SetPVarInt(playerid, \"Kek\", 0);
        SetPVarInt(playerid, \"Piros\", 0);
             SetPVarInt(playerid, \"Alap\", 1);
                SendClientMessage(playerid, -1, \"Alap szövegszín (fehér) kiválasztva!\");
             }
          }
    }
return 1;
}

 
Teszteltem: MÛKÖDIK!

/chatcolor parancs
« Válasz #19 Dátum: 2012. Május 14. - 05:41:38 »
0 Show voters
Nagyon szépen köszi a segitséget mindenkitõl (fõleg Flash-tól)
ment a ++

/chatcolor parancs
« Válasz #20 Dátum: 2012. Május 13. - 18:20:21 »
0 Show voters
Hi all!
Valaki megscripteli azt hogy ha beirom /chatcolor elõ jön egy dialog és ott vannak szinek és ha a pirosra kattintok akkor piros szinû lessz az irás!

SyncMaster

  • Vendég
/chatcolor parancs
« Válasz #21 Dátum: 2012. Május 13. - 18:22:13 »
0 Show voters
Van ilyen?  :D

Nem elérhető Flash

  • 5726
  • (っ◕‿◕)っ
    • Profil megtekintése
/chatcolor parancs
« Válasz #22 Dátum: 2012. Május 13. - 18:24:10 »
0 Show voters
Nem copy-zz..
De ésszel meg lehet írni..

/chatcolor parancs
« Válasz #23 Dátum: 2012. Május 13. - 18:24:50 »
0 Show voters
jah láttam más szerverbe!
(de nem azért kell mert más szerójáról akarok másolni) :mistrust:

Nem elérhető Flash

  • 5726
  • (っ◕‿◕)っ
    • Profil megtekintése
/chatcolor parancs
« Válasz #24 Dátum: 2012. Május 13. - 18:28:14 »
0 Show voters
public OnPlayerText(playerid, text[])
{
new string[512];
if(GetPVarInt(playerid, \"Kek\") == 1)
{
format(string, sizeof(string), \"%s: {375FFF}%s\", Nome(playerid), text);
}
SendClientMessageToAll(GetPlayerColor(playerid), string);
return 0;
}

 
S így...

/chatcolor parancs
« Válasz #25 Dátum: 2012. Május 13. - 18:29:42 »
0 Show voters
Kösz de ilyen scriptet adtak vagy 10 en is
nekem olyan kell hogy /chatcolor és ugy tudok szint váltani!

Nem elérhető Flash

  • 5726
  • (っ◕‿◕)っ
    • Profil megtekintése
/chatcolor parancs
« Válasz #26 Dátum: 2012. Május 13. - 18:37:10 »
0 Show voters
Két színben gyorsan összedobtam, de nem teszteltem!
 
#include <a_samp>
#include <zcmd>
CMD:chatcolor(playerid)
{
ShowPlayerDialog(playerid, 5000, DIALOG_STYLE_LIST, \"ChatColor change\", \"Kék\\nPiros\", \"Change!\", \"Mégse\");
return 1;
}
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
if(dialogid == 5000)
{
if(response)
{
   if(listitem==0)
   {
      SetPVarInt(playerid, \"Kek\", 1);
      SetPVarInt(playerid, \"Piros\", 0);
      SendClientMessage(playerid, -1, \"Kék szövegszín kiválasztva!\");
   }
   if(listitem==1)
   {
      SetPVarInt(playerid, \"Kek\", 0);
      SetPVarInt(playerid, \"Piros\", 1);
      SendClientMessage(playerid, -1, \"Piros szövegszín kiválasztva!\");
   }
}
}
return 1;
}
public OnPlayerText(playerid, text[])
{
      new string[512], Name[MAX_PLAYER_NAME];
GetPlayerName(playerid, Name, MAX_PLAYER_NAME);
if(GetPVarInt(playerid, \"Kek\") == 1)
{
format(string, sizeof(string), \"%s {375FFF}%s\", Name, text);
}
if(GetPVarInt(playerid, \"Piros\") == 1)
{
format(string, sizeof(string), \"%s {E60000}%s\", Name, text);
}
SendClientMessageToAll(GetPlayerColor(playerid), string);
return 0;
}

/chatcolor parancs
« Válasz #27 Dátum: 2012. Május 13. - 18:45:05 »
0 Show voters
kösz de ha modba teszem akkor a pawno lefagy ha scriptbe akkor jol elmenti :P

Nem elérhető Flash

  • 5726
  • (っ◕‿◕)っ
    • Profil megtekintése
/chatcolor parancs
« Válasz #28 Dátum: 2012. Május 13. - 18:46:31 »
0 Show voters
h-h lefagy? Lehet szarul tetted be. :O

Nem elérhető ZyZu.

  • Globális moderátor
  • 8939
  • my turbo diesel forum
  • Discord: ZyZu.
    • Profil megtekintése
/chatcolor parancs
« Válasz #29 Dátum: 2012. Május 13. - 18:48:04 »
0 Show voters
Mod elejére #define 5000 dialog neve..

 

SimplePortal 2.3.7 © 2008-2024, SimplePortal