Jump to content
  • 0

Numarul de caractere in chat-uri


Question

3 answers to this question

Recommended Posts

Posted

Adik asta ?:)

[pawn]public OnPlayerText(playerid, text [ ] )

{

new giver[MAX_PLAYER_NAME];

new sendername[MAX_PLAYER_NAME];

new giveplayer[MAX_PLAYER_NAME];

new tmp[128];

new string[256];

new giveplayerid;

new y,m,d;

new h,mi,s;

getdate(y,m,d);

gettime(h,mi,s);

if(PlayerInfo[playerid][pMuted] == 1)

{

SendClientMessage(playerid, TEAM_CYAN_COLOR, "You cannot speak, you have been silenced");

return 0;[/pawn]

Iar tu editezi linia

[pawn]new string[256];[/pawn]

Y!M : [email protected] !! Cam aTaT !!

Posted

public OnPlayerText ( playerid , text [ ] )

{

    new

            textmsg [  128  ] ; // 128 caractere.

    format ( textmsg , sizeof ( textmsg ) , "%s (ID:{0062FF}%d{FFFFFF}): %s", pName ( playerid ) , playerid , text ) ;

    NiexDetector ( playerid , 30.0 , textmsg , 0xFFFFFFFF )  ;

    return ( 0 ) ;

}

stock NiexDetector ( playerid , Float:position , string [ ] , color )

{

#defined SCM SendClientMessage

    new

  Float:X , Float:Y , Float:Z ;

    GetPlayerPos ( playerid , X , Y , Z  ;

   

    foreach ( Player, i )

    {

        if ( IsPlayerInRangeOfPoint ( i , position , X , Y , Z ) )

       

        {

            SCM ( i , color , string ) ;

        }

    }

}

Guest
This topic is now closed to further replies.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more details you can also review our Terms of Use and Privacy Policy.