onplayertext & mute
#6

scm will not return 0 lol here's what you actually need to do
PHP код:
public OnPlayerText(playeridtext[])
{
    if(
muted[playerid] == 1)
    {
        
SendClientMessage(playeridCOLOR_ORANGE"SERVER: You are muted");
        return 
0;//see this
        
}
    new 
string1[128], PName[MAX_PLAYER_NAME]; //Line 1423
    
GetPlayerName(playeridPNamesizeof(PName));
    
format(string1,sizeof(string1),"{40E0D0}{%06x}%s(%d): {FFFFFF}%s",GetPlayerColor(playerid) >>> 8PNameplayeridtext);
    
SendClientMessageToAll(-1string1);
    return 
0;

see how i used return 0 afterwards to stop the message from being sent?
Reply


Messages In This Thread
onplayertext & mute - by MyUndiesSmell - 18.01.2018, 21:18
Re: onplayertext & mute - by DeathCore - 18.01.2018, 21:47
Re: onplayertext & mute - by MyUndiesSmell - 18.01.2018, 22:32
Re: onplayertext & mute - by Fratello - 18.01.2018, 22:53
Re: onplayertext & mute - by MyUndiesSmell - 18.01.2018, 23:33
Re: onplayertext & mute - by RogueDrifter - 18.01.2018, 23:36
Re: onplayertext & mute - by 1fret - 18.01.2018, 23:43
Re: onplayertext & mute - by MyUndiesSmell - 18.01.2018, 23:44
Re: onplayertext & mute - by RogueDrifter - 18.01.2018, 23:52
Re: onplayertext & mute - by MyUndiesSmell - 19.01.2018, 00:03

Forum Jump:


Users browsing this thread: 4 Guest(s)