SA-MP Forums Archive
command spam problem - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: command spam problem (/showthread.php?tid=508352)



command spam problem - Slicebook - 21.04.2014

When you type this: /banyasz melyfur | I can write you again..

pl: I am writing to you twenty times as many enter , therefore give you money, but it will give you twenty times.

Код:
new MunkaFolyamatban[MAX_PLAYERS];
Код:
        else if(egyezik(param[1],"mйlyfъr") || egyezik(param[1], "melyfur") || egyezik(param[1], "melyfuras")) 
        {
			if(IsPlayerInRangeOfPoint(playerid, 100.0, -2057.8843,-1591.1442,61.7993))
			{
				if(!AMT(playerid, MUNKA_TARGONCA)) 
				{
					SendClientMessage(playerid, -1, "(( Nem vagy bбnyбsz! ))");
				}
				else
				{
					if(PihenFuras[playerid] == 1) return SendClientMessage(playerid, COLOR_LIGHTRED, "(( Mйg nem telt le a pihenő! ))");
					else
					{
						if(MunkaFolyamatban[playerid] == 1) return Msg(playerid,"in progress!"); <<<dont work
						else
						{
							SetTimerEx("FurasTimer", 10000, false, "i", playerid);
							GameTextForPlayer(playerid, "Fъrбs....", 10000, 3);
							TogglePlayerControllable(playerid,0);
							ApplyAnimation(playerid,"GANGS","prtial_gngtlkH",4.1,1,0,0,10000,1);
						}
					}
				}
			}
			else
			{	
				SendClientMessage(playerid, -1, "(( Nem vagy bбnyбban! ))");
			}
			return 1;
		}