21.02.2015, 13:20
I want to display old cooldown time
Код:
CMD:setnuke(playerid, params[]) { if(PInfo[playerid][Level] < 5) return SendClientMessage(playerid,STEALTH_BLUE,"You need to be level 5 to set nuke cooldown."); new string[128]; new oldlimit; new newlimit; if(sscanf(params,"i",newlimit)) return SendClientMessage(playerid, COLOR_RED, "USAGE: /setnuke [Cooldown]"); OldNukeTimer = oldlimit; NukeTimer = newlimit; new pName[MAX_PLAYER_NAME]; CMDMessageToAdmins(playerid,"SETNUKE"); GetPlayerName(playerid, pName, sizeof(pName)); format(string,sizeof(string),"Administrator %s(%d) has changed the nuke cooldown from %i to %i seconds.",pName,playerid,oldlimit,newlimit); SendClientMessageToAll(COLOR_DARKORCHID, string); return 1; }