/accent
#18

It's pretty simple, don't understand all the complications in this post. And also, GetPVarString returns the length of the string, not the string value. You can't plug it into strmid.

PHP код:
CMD:accentplayeridcmdtext[] )
{
    if(
strlencmdtext ) < )
    {
        
SendClientMessageplayerid0xFFFFFFFF"USAGE: /accent [text]" );
        return 
1;
    }
    new 
        
szString120 ];
    
SetPVarStringplayerid"Accent"cmdtext );
    
formatszStringsizeofszString ), "You have set your accent to %s."cmdtext );
    
SendClientMessageplayerid0x33CCFFAAszString );
    return 
1;
}
public 
OnPlayerTextplayeridtext[] )
{
    new 
szText128 ];
    if( 
realchat )
    {
        new 
szAccent60 ];
        
GetPVarStringplayerid"Accent"szAccentsizeofszAccent ) );
        if( !
isnullszAccent ) ) {
            
formatszTextsizeofszText ), "[%s] %s says: %s"szAccentGetNameplayerid ), text );
        } else {
            
formatszTextsizeofszText ), "%s says: %s"GetNameplayerid ), text );
        }
        
ProxDetector30.0playeridszText ,COLOR_CORRECTION,COLOR_CORRECTION,COLOR_CORRECTION,COLOR_CORRECTION,COLOR_CORRECTION );
        
formatszTextsizeofszText ), "says: %s"text );
        
SetPlayerChatBubbleplayeridszTextCOLOR_YELLOW5.05000 );
        
ApplyAnimation(playerid,"PED","IDLE_CHAT",2.0,1,0,0,1,1); 
        return 
0
    }
    
IdleTimeplayerid ] = 0;
    return 
1;

Haven't compiled it, should work though.
Reply


Messages In This Thread
/accent - by Jaua10 - 15.07.2018, 19:40
Re: /accent - by Florin48 - 15.07.2018, 19:51
Re: /accent - by ItsRobinson - 15.07.2018, 19:51
Re: /accent - by Jaua10 - 15.07.2018, 20:06
Re: /accent - by Iguman - 15.07.2018, 20:14
Re: /accent - by DerickClark - 15.07.2018, 20:17
Re: /accent - by Dayrion - 15.07.2018, 20:21
Re: /accent - by CodeStyle175 - 15.07.2018, 20:37
Re: /accent - by Jaua10 - 15.07.2018, 20:52
Re: /accent - by Iguman - 15.07.2018, 20:55
Re: /accent - by Jaua10 - 15.07.2018, 21:00
Re: /accent - by Iguman - 15.07.2018, 21:10
Re: /accent - by Jaua10 - 15.07.2018, 21:12
Re: /accent - by DerickClark - 15.07.2018, 21:16
Re: /accent - by Iguman - 15.07.2018, 21:17
Re: /accent - by Jaua10 - 15.07.2018, 21:24
Re: /accent - by DerickClark - 15.07.2018, 21:30
Re: /accent - by Kane - 15.07.2018, 22:12

Forum Jump:


Users browsing this thread: 2 Guest(s)