01.05.2011, 20:04 
	
	
	
		I have a problem I want to do command which give for admins weapons,armour and health But admin can use this command every 10mins how I can do this? I think there need to be SetTimer 
My code under OnPlayerCommandText:
Plesae correct my code... I need this.
	
	
	
	

My code under OnPlayerCommandText:
Код:
    if (strcmp("/adminammunition, cmdtext, true, 10) == 0)
   {
   if(isPlayerAnAdmin(playerid,2))
   {
      SetPlayerHealth(playerid,100);
      SetPlayerArmour(playerid,100);
      GivePlayerWeapon(playerid,31,100);
      GivePlayerWeapon(playerid,41,500);
      SendClientMessage(playerid,0xFF66FFAA," You get admin ammunition.");
      return 1;
   }
   else
   {
      SendClientMessage(playerid,0x4B00B0AA,"You are not an admin...");
      return 1;
   }
  }
}

