04.10.2015, 16:16
Hi guys! Can you help me with adding a timer at this command? (to use the command in 5 to 5 minutes ) (5 minutes=300000) ...im trying for 2 hours and nothing..
Thank you, and have a nice day!
Код:
#include <a_samp> #include <sscanf2> #include <zcmd> #define COLOR_WHITE 0xFFFFFFAA #define COLOR_LIGHTGREEN 0x90EE90FF #define COLOR_GALEBENF 0xFFCC66AA #define COLOR_AG_SYNTAX 0x0090ba9b #define COLOR_GREEN 0x33AA33AA #define COLOR_GREY 0xAFAFAFAA #define COLOR_RED 0xAA3333AA #define COLOR_YELLOW 0xFFFF00AA #define COLOR_WHITE 0xFFFFFFAA #define COLOR_BLUE 0x0000BBAA #define suggestPATH "Suggestions/suggestionlog.txt" #if defined FILTERSCRIPT #else #endif COMMAND:suggest(playerid, params[]) { new string[128],suggestion[128],pName[MAX_PLAYER_NAME]; new File:Log = fopen(suggestPATH, io_append); new logData[128]; if(sscanf(params,"s[128]",suggestion)) return SendClientMessage(playerid, COLOR_AG_SYNTAX,"USAGE: /suggest [sugestie]"); GetPlayerName(playerid,pName,MAX_PLAYER_NAME); SendClientMessage(playerid, COLOR_GALEBENF, "» Sugestia ta a fost trimisa catre admini!"); format(logData, sizeof logData, "%s a trimis o sugestie: %s \r\n",pName,suggestion); fwrite(Log, logData); fclose(Log); return 1; }