flood or work?
#1

hey guys i have this cmd

Код HTML:
CMD:bid(playerid, params[])
{
	if(gPlayerLogged[playerid] == 0) return SendClientMessage(playerid, COLOR_LIGHTRED, "You need to login first.");
	{
	    if(aucutionstart != 1) return SCM(playerid, -1, "{FF3333}Nu se desfasoara nici o licitatie.");
	    if(startbid1 != 1) return SCM(playerid, -1, "{FF3333}Asteapta ca un admin sa porneasca licitatia.");
	    if(nonparticip[playerid] != 1) return SCM(playerid, -1, "{FF3333}Nu faci parte din licitatie.");
	    if(PlayerInfo[playerid][pPhousekey] != 0) return SCM(playerid, -1,"Nu poti licita. Deti deja o casa!");
	    new money,string[100],sender[75];
	    GetPlayerName(playerid, sender, 75);
		if(sscanf(params, "i", money))
		{
			SendClientMessage(playerid, 0xFFFFFFFF,"{5024FF}Syntax:{FFFFFF}/bid <Amount of Money>");
			format(string, sizeof(string), "{FFFF00}You have $%s in your account.", FormatNumber(PlayerInfo[playerid][pAccount]));
			SendClientMessage(playerid, COLOR_WHITE, string);
			return 1;
		}
		if(money < 10000) return SCM(playerid, -1, "{FF0000}Cota este de minim 10.000$.");
		if(money > PlayerInfo[playerid][pAccount]) return SCM(playerid, -1, "{FF0000}Nu poti licita daca nu ai suficienti bani in banca.");
		if(money <= lastmoney) return SCM(playerid, -1, "{FF0000}Nu poti licita mai putin decat ultima suma.");
		foreach(Player,i)
		{
  			bagabid[i] = -1;
		}
		lastmoney = money;
		moneyaucutionplayer[playerid] = money;
		bagabid[playerid] = playerid;
		format(string,100,"%s a licitat $%s.",sender,FormatNumber(money));
		aucutionChat(COLOR_YELLOW,string);
	}
	return 1;
}
and it will be spammed for more than 100+ people in chat i want to know if i put a timer like

Код HTML:
SetTimerEx("ENDOFTHATCMDAFTERATIME",60000, false, "i", playerid);
it will flood my server? or crash or something? cause the callback from that timer it will be activated every single sec cause players will use that cmd and that why i want to know
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)