Quote:
Originally Posted by [D]ry[D]esert
here to to dissable chat
on the top of your script
pawn Код:
public OnPlayerCommandText(playerid, cmdtext[]) { if(!strcmp(cmdtext, "/chat", true)) { if(IsPlayerAdmin(playerid)) { if(Chat == 0) { Chat = 1; SendClientMessage(playerid, 0xFFFFFFFF, "chat enabled"); } if(Chat == 1) { Chat = 0; SendClientMessage(playerid, 0xFFFFFFFF, "chat disable"); } } } return 0; }
pawn Код:
public OnPlayerText(playerid, text[]) { if(Chat == 0) return 0; }
|
Dont mind but usefull commands are diffrent from usefull codes or TUT of doing something