(Pomoc) Abusanje komande


Započeo Bobo, Avgust 02, 2012, 17:00:50 POSLE PODNE

prethodna tema - sledeća tema

0 članova i 1 gost pregledaju ovu temu.

Skripta koju koristim: Moj mod
Detaljan opis problema: Problem je da moze 500 puta upisati komandu i 500 puta uzeti metke iz fbi kada hoce i koliko hoce...
Ja bi zelio da im ogranicim uzimanje metaka ili barem da mogu uzeti 300 metaka u sat vremena isvaki sat da mogu uzet 300 to je sve...
Dio skripte:
else if(strcmp(x_job,"buygun",true) == 0)
		{
			tmp = strtok(cmdtext, idx);
			if(!strlen(tmp))
			{
				SendClientMessage(playerid, COLOR_WHITE, "KORISTENJE: /accept buygun [playerid/DioImena]");
				return 1;
			}
			new playa;
			playa = ReturnUser(tmp);
			if (PlayerInfo[playerid][pLeader] == 1 || PlayerInfo[playerid][pLeader] == 2 || PlayerInfo[playerid][pMember] == 1 && PlayerInfo[playerid][pRank] >= 9 || PlayerInfo[playerid][pMember] == 2 && PlayerInfo[playerid][pRank] >= 5)
			{
	    		if(IsPlayerConnected(playa))
	    		{
	        		if(playa != INVALID_PLAYER_ID)
	        		{
		        		GetPlayerName(playa, giveplayer, sizeof(giveplayer));
						GetPlayerName(playerid, sendername, sizeof(sendername));
						format(string, sizeof(string), "* Dopustili ste %s da moze koristit /buygun komandu.", giveplayer);
						SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
						format(string, sizeof(string), "* Lider %s vam je dopustio da mozete koristit /buygun komandu.", sendername);
						SendClientMessage(playa, COLOR_LIGHTBLUE, string);
                		SetPVarInt(playa, "AcceptBuygun", 3);
                		SendClientMessage(playa, COLOR_LIGHTBLUE, "Imate pravo na 3 oruzja iz armorya!");
					}
				}
			}
			else
				SendClientMessage(playerid, COLOR_RED, "   Niste ovlasteni za koristenje ove komande!");
		}

Neke slike/video za lakse dobivanje pomoci(neobavezno):

Trebaš pokrenut neki timer na koliko hoćeš i onda kad se završi taj timer da tek onda može ponovno koristit komandu.

Last nick: Paradox