Jump to content
  • 0

pomoc Mute problém


Kvostyc

Dotaz

Zdravím,

 

Mám taký problém, že keď je hráč umlčaný a niečo napíše, tak sa to vypíše do chatu, ale aj mu pošle SCM, že je umlčaný.

 

 

public OnPlayerText(playerid, text[])
{
    new string[128], name[24];
    GetPlayerName(playerid,name,24);
format(string,128, "{FF8200}%s{FFFFFF}(%d): %s",name,playerid,text);
SendClientMessageToAll(-1, string);
if(IsMuted[playerid] == 1)
{
   SendClientMessage(playerid,cervena,"[ ! ]{f0f0f0}Si umlčaný");
   return 0;
}
return 0;
}
 
Link to comment
Share on other sites

6 odpovědí na tuto otázku

Recommended Posts

  • 0
  • Globální moderátor

Dej tam jenom podminku if mute a tam napis ze jsi umlceny a retrun 0 a to bude vse co tam bude return 1 co je tam defaultne tam zustane

Link to comment
Share on other sites

  • 0

Pawn vykonáva funkcie zhora smerom dole, preto ti to robilo.

public OnPlayerText(playerid, text[])
{
    if(IsMuted[playerid] == 1)
    {
       SendClientMessage(playerid,cervena,"[ ! ]{f0f0f0}Si umlčaný");
       return 0;
    }
   new string[128], name[24];
   GetPlayerName(playerid,name,24);
   format(string,128, "{FF8200}%s{FFFFFF}(%d): %s",name,playerid,text);
   SendClientMessageToAll(-1, string);
   return 0;
}
Link to comment
Share on other sites

  • 0
  • Globální moderátor

Uz vidim byl jsem trikrat slepej a trikrat jsem si toho nevsiml ikdyz jsem se na to zameril a koukal :d tak to pal jo

Link to comment
Share on other sites

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