Player dosent get muted - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Player dosent get muted (
/showthread.php?tid=493832)
Player dosent get muted -
DarkLored - 10.02.2014
Hello when i mute a player it says that he cant talk but he can still type it and you can see it in chat how do i fix it?
here is my code
pawn Код:
public OnPlayerText(playerid, text[])
{
if(Muted[playerid]==1)
{
SendClientMessage(playerid,0xFF0000FF,"An Admin has Muted you,you are unable to Talk Now!");
return 1;
}
return 1;
}
Re: Player dosent get muted -
cessil - 10.02.2014
you're returning 1, so the message will still be displayed to everyone, returning 0 will not send the message to others
Re: Player dosent get muted -
xo - 10.02.2014
try
pawn Код:
public OnPlayerText(playerid, text[])
{
if(Muted[playerid]==1)
{
SendClientMessage(playerid,0xFF0000FF,"An Admin has Muted you,you are unable to Talk Now!");
return 0;
}
return 1;
}
Re: Player dosent get muted -
DarkLored - 10.02.2014
Thank you for your help both +reped