Code:
public Message(id)
{
new sName[ 32 ], sSID[ 32 ]
get_user_name( id, sName, charsmax ( sName ) )
get_user_authid( id, sSID, charsmax ( sSID ) )
new sLang[ 3 ]
get_user_info( id, "lang", sLang, charsmax ( sLang ) )
if( equali ( sLang, "pl" ) )
{
ColorChat( id, GREY, "%L", id, "SMN_APPEARD", PlayerSex( id ) == 1 ? "pojawila" : "pojawil", sName, Enters[ id ] <= 1 ? "dopiero" : "juz", PlayerSex( id ) == 1 ? "jej" : "jego", Enters[ id ], PlayerSex( id ) == 1 ? "Jej" : "Jego", sSID )
}
else
{
ColorChat( id, GREY, "%L", id, "SMN_APPEARD", sName, PlayerSex( id ) == 1 ? "her" : "his", Enters[ id ], Enters[ id ] > 1 ? ( Enters[ id ] > 2 ? ( Enters[ id ] == 3 ? "rd" : "th" ) : "nd" ) : "st", PlayerSex( id ) == 1 ? "Her" : "His", sSID )
}
}
Got problem with this code, you see, there are 2 version of message, message in pl languange and in others. Problem is: when I have languange pl, and other player have languange en, I see two messages, about me, and about other player. But message about me is in pl, message about other player is in en. Help me fix that. Players with pl must see pl messages and other player must see only en messages. How do that?