Kvostyc 4 Odesláno: 1. Duben, 2015 Share Odesláno: 1. Duben, 2015 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 More sharing options...
0 Globální moderátor Hip 191 Odesláno: 1. Duben, 2015 Globální moderátor Share Odesláno: 1. Duben, 2015 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 More sharing options...
0 eXot 18 Odesláno: 1. Duben, 2015 Share Odesláno: 1. Duben, 2015 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 More sharing options...
0 Globální moderátor Hip 191 Odesláno: 1. Duben, 2015 Globální moderátor Share Odesláno: 1. Duben, 2015 Mas pravdu ale ty 4 radky jsou zbytecne kdyz to samp umi vypsat sam... Link to comment Share on other sites More sharing options...
0 eXot 18 Odesláno: 1. Duben, 2015 Share Odesláno: 1. Duben, 2015 Áno dokáže, ale samp nevypisuje ID hráča, on ho vo formáte mal takže súdim že ho tam asi chce. Link to comment Share on other sites More sharing options...
0 Globální moderátor Hip 191 Odesláno: 1. Duben, 2015 Globální moderátor Share Odesláno: 1. Duben, 2015 Uz vidim byl jsem trikrat slepej a trikrat jsem si toho nevsiml ikdyz jsem se na to zameril a koukal tak to pal jo Link to comment Share on other sites More sharing options...
0 Kvostyc 4 Odesláno: 1. Duben, 2015 Author Share Odesláno: 1. Duben, 2015 dakujem veľmi pekne Link to comment Share on other sites More sharing options...
Dotaz
Kvostyc 4
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ý.
Link to comment
Share on other sites
6 odpovědí na tuto otázku
Recommended Posts