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

/chatcolor parancs
« 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 #1 Dátum: 2012. Május 13. - 18:22:13 »
+1 Show voters
Van ilyen?  :D

Nem elérhető Flash

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

/chatcolor parancs
« Válasz #3 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 #4 Dátum: 2012. Május 13. - 18:28:14 »
+1 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 #5 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 #6 Dátum: 2012. Május 13. - 18:37:10 »
+1 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 #7 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 #8 Dátum: 2012. Május 13. - 18:46:31 »
+1 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 #9 Dátum: 2012. Május 13. - 18:48:04 »
+1 Show voters
Mod elejére #define 5000 dialog neve..

Nem elérhető Flash

  • 5726
  • (っ◕‿◕)っ
    • Profil megtekintése
/chatcolor parancs
« Válasz #10 Dátum: 2012. Május 13. - 18:48:32 »
+1 Show voters
Idézetet írta: ZyZu date=1336927684\" data-ipsquote-contentapp=\"forums\" data-ipsquote-contenttype=\"forums\" data-ipsquote-contentid=\"21424\" data-ipsquote-contentclass=\"forums_Topic
Mod elejére #define 5000 dialog neve..
 
Az nem kell..

/chatcolor parancs
« Válasz #11 Dátum: 2012. Május 13. - 18:53:03 »
+1 Show voters
nah itt az onplayetext ez nem jo te helyezd be plz!
 
public OnPlayerText(playerid, text[])
{
    new TickCount = GetTickCount( );
   
    SetPlayerChatBubble(playerid, text, 0x99FF00AA, 100.0, 10000);
if( gPlayerSpamTick[ playerid ] > ( TickCount - ( SPAM_TIME * 800 ) ) )
{
    SendClientMessage( playerid, 0xEB000FFF, \"Ne spamolj várj {FB0000}2 {FF0000}másodpercet!\" );
gPlayerSpamTick[ playerid ] = GetTickCount( );
return 0;
}
 new iNums;
     for( new x = 0; x < strlen( text ); ++x ) {
        if( text[ x ] < \'0\' || text[ x ] > \'9\' ) continue;
        ++iNums;
    }
    if( iNums > 9 ) {
        SendClientMessage( playerid, COLOR_RED, \"Ne hirdess te fogyatékos buzi gyerek!\" );
        return 0;
    }
 
gPlayerSpamTick[ playerid ] = GetTickCount( );
#pragma unused text
   new e[200];
   format( e, 200, \"{FFFFFF}(%i)%s\", playerid, text );
   SendPlayerMessageToAll(playerid, e);
   return 0;
   }

 
itt még nincs benne

Nem elérhető Gabor..

  • 1883
  • Gabor..
    • Profil megtekintése
/chatcolor parancs
« Válasz #12 Dátum: 2012. Május 13. - 18:56:28 »
+1 Show voters
Idézetet írta: FastFurious date=1336927983\" data-ipsquote-contentapp=\"forums\" data-ipsquote-contenttype=\"forums\" data-ipsquote-contentid=\"21424\" data-ipsquote-contentclass=\"forums_Topic
       
SendClientMessage( playerid, COLOR_RED, \"Ne hirdess te fogyatékos buzi gyerek!\" );
   

 
itt még nincs benne
 
  Ez befigyel. :D
« Utoljára szerkesztve: 2012. Május 13. - 18:57:05 írta Gabor.. »

Nem elérhető Flash

  • 5726
  • (っ◕‿◕)っ
    • Profil megtekintése
/chatcolor parancs
« Válasz #13 Dátum: 2012. Május 13. - 18:56:51 »
+1 Show voters
Ott van neked, hogy:
 
   new e[200];
   format( e, 200, \"{FFFFFF}(%i)%s\", playerid, text );
   SendPlayerMessageToAll(playerid, e);

 
Helyett ezt:
 
   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);

 
vagyis:
 
Idézetet írta: FastFurious date=1336927983\" data-ipsquote-contentapp=\"forums\" data-ipsquote-contenttype=\"forums\" data-ipsquote-contentid=\"21424\" data-ipsquote-contentclass=\"forums_Topic
nah itt az onplayetext ez nem jo te helyezd be plz!
 
public OnPlayerText(playerid, text[])
{
    new TickCount = GetTickCount( );
   
    SetPlayerChatBubble(playerid, text, 0x99FF00AA, 100.0, 10000);
if( gPlayerSpamTick[ playerid ] > ( TickCount - ( SPAM_TIME * 800 ) ) )
{
    SendClientMessage( playerid, 0xEB000FFF, \"Ne spamolj várj {FB0000}2 {FF0000}másodpercet!\" );
gPlayerSpamTick[ playerid ] = GetTickCount( );
return 0;
}
 new iNums;
     for( new x = 0; x < strlen( text ); ++x ) {
        if( text[ x ] < \'0\' || text[ x ] > \'9\' ) continue;
        ++iNums;
    }
    if( iNums > 9 ) {
        SendClientMessage( playerid, COLOR_RED, \"Ne hirdess te fogyatékos buzi gyerek!\" );
        return 0;
    }
 
gPlayerSpamTick[ playerid ] = GetTickCount( );
#pragma unused 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);

 
itt még nincs benne
 

/chatcolor parancs
« Válasz #14 Dátum: 2012. Május 13. - 19:01:43 »
0 Show voters
nemjo mert ha belépek a szeroba és csak irok magára hogy csá
nem ir ki semmit
csak ha beirom /chatcolor ---> kék
és akkor kiirja

 

SimplePortal 2.3.7 © 2008-2024, SimplePortal