GTA Közösség - A magyar GTA fórum

San Andreas Multiplayer (SA-MP) => SA-MP: Szerverfejlesztés => Segítségkérés => A témát indította: CANNONN - 2011. október 02. - 10:48:54

Cím: LuxAdminChat
Írta: CANNONN - 2011. október 02. - 10:48:54
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! ;)
Cím: LuxAdminChat
Írta: Csabesz - 2011. október 02. - 10:50:32
OnPlayerText( ) -et bemásolnád?
Cím: LuxAdminChat
Írta: CANNONN - 2011. október 02. - 11:22:05
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]
Cím: LuxAdminChat
Írta: ~BlackStyler~ - 2011. október 02. - 12:27:02
Vip cheten evel lehet *szöveg   
Cím: LuxAdminChat
Írta: Csabesz - 2011. október 02. - 12:31:50
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]
Cím: LuxAdminChat
Írta: Koncz_Norbert - 2011. október 02. - 12:40:06
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