27.11.2009, 21:37
Код:
public OnPlayerCommandText(playerid, cmdtext[]) { if (strcmp("/help", cmdtext, true, 10) == 0) { SendClientMessage(playerid, COLOR_ORANGE, "/commands"); return 1; } if (strcmp("/commands", cmdtext, true, 10) == 0) { SendClientMessage(playerid, COLOR_ORANGE, "here are the commands"); return 1; } if(strcmp(cmdtext,"/cd",true)==0) { cd_sec = 5; cd_timer = SetTimer("countdown", 999, 1); return 1; } return 1; }