21.02.2015, 13:49
Quote:
eh,that is my question
how can i store value into oldnuketimer.. |
pawn Код:
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 OldNukeTimer = NukeTimer;
new newlimit;
if(sscanf(params,"i",newlimit))
return SendClientMessage(playerid, COLOR_RED, "USAGE: /setnuke [Cooldown]");
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,OldNukeTimer,newlimit);
SendClientMessageToAll(COLOR_DARKORCHID, string);
return 1;
}