Szerző Téma: LuxAdminChat  (Megtekintve 834 alkalommal)

Nem elérhető CANNONN

  • 2139
    • Profil megtekintése
LuxAdminChat
« Dátum: 2011. Október 02. - 10:48:54 »
0 Show voters
Sziasztok!Miért tiltja le a luxadmin a chatet letiltóparancs nélkül?Elindítom a szervert, és csak admin tud írni a chatre  ???
Nemtom mitkéne vele csinálni, valaki hátha tudja!Köszi! ;)

Nem elérhető Csabesz

  • 7827
    • Profil megtekintése
LuxAdminChat
« Válasz #1 Dátum: 2011. Október 02. - 10:50:32 »
0 Show voters
OnPlayerText( ) -et bemásolnád?

Nem elérhető CANNONN

  • 2139
    • Profil megtekintése
LuxAdminChat
« Válasz #2 Dátum: 2011. Október 02. - 11:22:05 »
0 Show voters
Bocsi, koczkultam :D itt van:
[pawn]public OnPlayerText(playerid, text[])
{
//==============================================================================
// Vip Chat
//==============================================================================
if(text[0] == \'*\' && AccInfo[playerid][pVip] >= 1)
{
    new string[128]; GetPlayerName(playerid,string,sizeof(string));
   format(string,sizeof(string),\"|ChatVip| %s: %s\",string,text[1]);
   MessageToPlayerVIP(0xDC686BAA,string);
   SaveIn(\"ChatVipLog\",string);
    return 0;
}
//==============================================================================
// Adminisztrátor Chat
//==============================================================================
if(text[0] == \'#\' && AccInfo[playerid][Level] >= 1)
{
    new string[128]; GetPlayerName(playerid,string,sizeof(string));
   format(string,sizeof(string),\"Admin Chat: %s: %s\",string,text[1]);
   MessageToAdmins(green,string);
   #if ADM_CHAT_LOG == true
   SaveIn(\"AdmChatLog\",string);
   #endif
    return 0;
}
//==============================================================================
// Chat Letiltása
//==============================================================================
if(ServerInfo[DisableChat] == 1) // itt lehet a gond?ezt átraktam 0ra de akkor is letiltotta
{
   SendClientMessage(playerid,red,\"|- Chat Le Van Tiltva! -|\");
    return 0;
}[/pawn]
« Utoljára szerkesztve: 2011. Október 02. - 11:27:30 írta Cannonn »

LuxAdminChat
« Válasz #3 Dátum: 2011. Október 02. - 12:27:02 »
0 Show voters
Vip cheten evel lehet *szöveg   

Nem elérhető Csabesz

  • 7827
    • Profil megtekintése
LuxAdminChat
« Válasz #4 Dátum: 2011. Október 02. - 12:31:50 »
+1 Show voters
Próbáld meg kivenni  azt a részt.
Ha úgy se jó, akkor az egész eljárást tedd /*  */ közzé.
[pawn]public OnPlayerText(playerid, text[])
{
//==============================================================================
// Vip Chat
//==============================================================================
if(text[0] == \'*\' && AccInfo[playerid][pVip] >= 1)
{
    new string[128]; GetPlayerName(playerid,string,sizeof(string));
   format(string,sizeof(string),\"|ChatVip| %s: %s\",string,text[1]);
   MessageToPlayerVIP(0xDC686BAA,string);
   SaveIn(\"ChatVipLog\",string);
    return 0;
}
//==============================================================================
// Adminisztrátor Chat
//==============================================================================
if(text[0] == \'#\' && AccInfo[playerid][Level] >= 1)
{
    new string[128]; GetPlayerName(playerid,string,sizeof(string));
   format(string,sizeof(string),\"Admin Chat: %s: %s\",string,text[1]);
   MessageToAdmins(green,string);
   #if ADM_CHAT_LOG == true
   SaveIn(\"AdmChatLog\",string);
   #endif
    return 0;
}
//==============================================================================
// Chat Letiltása
//==============================================================================
/*if(ServerInfo[DisableChat] == 1) // itt lehet a gond?ezt átraktam 0ra de akkor is letiltotta
{
   SendClientMessage(playerid,red,\"|- Chat Le Van Tiltva! -|\");
    return 0;
}*/
[/pawn]

Koncz_Norbert

  • Vendég
LuxAdminChat
« Válasz #5 Dátum: 2011. Október 02. - 12:40:06 »
0 Show voters
Idézetet írta: Roni date=1317551510\" data-ipsquote-contentapp=\"forums\" data-ipsquote-contenttype=\"forums\" data-ipsquote-contentid=\"12143\" data-ipsquote-contentclass=\"forums_Topic
Próbáld meg kivenni  azt a részt.
Ha úgy se jó, akkor az egész eljárást tedd /*  */ közzé.
 

public OnPlayerText( playerid, text[ ] )
{
//==============================================================================
// Vip Chat
//==============================================================================
if ( text[ 0 ] == \'*\' && AccInfo[ playerid ][ pVip ] >= 1 )
{
    new string[ 128 ]; GetPlayerName( playerid, string, sizeof( string ) );
format( string, sizeof( string ), \"|ChatVip| %s: %s\", string, text[ 1 ] );
MessageToPlayerVIP( 0xDC686BAA, string );
SaveIn( \"ChatVipLog\", string );
    return 0;
}
//==============================================================================
// Adminisztrátor Chat
//==============================================================================
if ( text[ 0 ] == \'#\' && AccInfo[ playerid ][ Level ] >= 1 )
{
    new string[ 128 ]; GetPlayerName( playerid, string, sizeof( string ) );
format( string, sizeof( string ), \"Admin Chat: %s: %s\", string, text[ 1 ] );
MessageToAdmins( green, string );
#if ADM_CHAT_LOG == true
SaveIn( \"AdmChatLog\", string );
#endif
    return 0;
}
//==============================================================================
// Chat Letiltása
//==============================================================================
/*if ( ServerInfo[ DisableChat ] == 1 ) // itt lehet a gond?ezt átraktam 0ra de akkor is letiltotta
{
SendClientMessage( playerid, red, \"|- Chat Le Van Tiltva! -|\" );
    return 0;
}*/

 

Fixed

 

SimplePortal 2.3.7 © 2008-2024, SimplePortal