26.04.2018, 10:18
Код:
CMD:afk(playerid,params[]) { new wantedlevel = GetPlayerWantedLevel(playerid); if(playerid[wantedlevel] > 0) return SendClientMessage(playerid, COLOR_WHITE, "{FF0000}[ERROR]{FFFFFF} You cannot go AFK(Away From Keyboard) with wanted level."); if(afk[playerid] == 0) { ShowPlayerDialog(playerid, afkdialog, DIALOG_STYLE_INPUT, "{FF0000}Reason:", "{FFFF00}Please Type Reason of going AFK Below.", "Done", "Cancel"); } else { SendClientMessage(playerid, COLOR_WHITE, "{FF0000}[ERROR]{FFFFFF} You are already AFK(Away From Keyboard)."); } return 1; }