OnPlayerText - little help - 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: OnPlayerText - little help (
/showthread.php?tid=405550)
OnPlayerText - little help -
FL3GM4 - 07.01.2013
how to make if player Mute = 1 that he cant speak in IC chat but when i 0 then he can
Код:
public OnPlayerText(playerid, text[])
{
if(Mute[playerid] == 1) return 0;
{
SendClientMessage(playerid, COLOR_WHITE, ""#COL_BLACK"| "COL_RED"Odbijeno "#COL_BLACK"| "#COL_WHITE"Ne mozes pricati");
}
else
{
return 1;
}
}
EDIT: Sorry, but I just resolved this :
Re: OnPlayerText - little help -
Scott Zulkifli - 07.01.2013
pawn Код:
public OnPlayerText(playerid, text[])
{
if(Mute[playerid] == 1)
{
SendClientMessage(playerid, COLOR_WHITE, ""#COL_BLACK"| "COL_RED"Odbijeno "#COL_BLACK"| "#COL_WHITE"Ne mozes pricati");
return 0;
}
return 1;
}
Re: OnPlayerText - little help -
zSuYaNw - 07.01.2013
if this is FilterScript use:
pawn Код:
public OnPlayerText(playerid, text[])
{
if(Mute[playerid] == 1){
return SendClientMessage(playerid, COLOR_WHITE, ""#COL_BLACK"| "COL_RED"Odbijeno "#COL_BLACK"| "#COL_WHITE"Ne mozes pricati"),0;
}
return !false;
}
But, if is GameMode use:
pawn Код:
public OnPlayerText(playerid, text[])
{
if(Mute[playerid] == 1){
return SendClientMessage(playerid, COLOR_WHITE, ""#COL_BLACK"| "COL_RED"Odbijeno "#COL_BLACK"| "#COL_WHITE"Ne mozes pricati"),0;
}
return false;
}