POMOC treba mi skripta za pljackanje bankomata i za pljadcku banke


Započeo Daki_Kensey, April 23, 2014, 01:58:24 PRE PODNE

prethodna tema - sledeća tema

0 članova i 1 gost pregledaju ovu temu.

AKO zna neko link gde mogu da skinem da ubacm za pljacku bankomata i banke,konkretan da ne trazim ja posto sam dugo trazio i ne mogu da nadjem... :D

Dakle sve ti pise unutra samo tako uradi

new RobBankTimer; //Na vrh medju new stavi to

PlayerInfo[playerid][pRobTime] = 0; //Ovo medju PlayerInfo stavi

//Ovo ispod stavi negde medju komande
if(strcmp(cmd, "/robbank", true) == 0)
	{
	    new success = random(2);
	    if(BankRobbedRecently == 1)
		{
		    SendClientMessage(playerid, COLOR_GREY, "* This location was robbed recently, try again later");
		    return 1;
		}
		if(PlayerInfo[playerid][pRobTime] >= 1)
		{
		    SendClientMessage(playerid, COLOR_GREY, "* You already attempted or robbed a place recently, please wait.");
		    return 1;
		}
	    if(IsPlayerInRangeOfPoint(playerid, 2, 2309.6060,-4.0211,26.7422))
	    {
	        if(GetPlayerWeapon(playerid) >= 24 && GetPlayerWeapon(playerid) <= 40)
			{
		        if(PlayerInfo[playerid][pDuty] == 0)
				{
			        if(success == 1)
					{
				        SendClientMessage(playerid, COLOR_ORANGE, "* You are now Robbing the city Hall, please remain in the checkpoint for 95 Seconds!");
	                            RobbingTime[playerid] = 95;
				    RobBankTimer = SetTimerEx("RobBank",1000,true,"i",playerid);
			            WantedPoints[playerid] = 5;
			            SetPlayerCriminal(playerid,255, "Robbing the Bank");
			            PlayerInfo[playerid][pRobTime] = 900;
			            CityHallRobbedRecently = 1;
						SetTimer("UnsetBankRob",1500000,false);
						OnePlayAnim(playerid, "SHOP", "ROB_Shifty", 4.0, 0, 0, 0, 0, 0); // Rob Lookout
					}
					else
					{
					    SendClientMessage(playerid, COLOR_ORANGE, "* Nisi uspeo da opljackas banku!");
					    WantedPoints[playerid] = 2;
			            SetPlayerCriminal(playerid,255, "Attempting to rob the Bank");
						PlayerInfo[playerid][pRobTime] = 500;
					}
				}
				else
				{
				    SendClientMessage(playerid, COLOR_GREY, "* Iskljucite duznost prvo!");
				    return 1;
				}
			}
			else
			{
			    SendClientMessage(playerid, COLOR_GREY, "* Treba vam neko dobro oruzije za pljacku!");
			    return 1;
			}
		}
		else
		{
		    SendClientMessage(playerid, COLOR_GREY, "* Niste na mestu pljacke!");
		    return 1;
		}
		return 1;
	}

//Ovo dole stavi medju Public negde to je na kraj skripte :D
public RobBank(playerid)
{
	new string[128];
	if(IsPlayerInRangeOfPoint(playerid, 2, 2309.6060,-4.0211,26.7422))
	{
		if(RobbingTime[playerid] > 0)
		{
		    RobbingTime[playerid] --;
		    GameTextForPlayer(playerid, "~w~Pricekajte za otvaranje kase ~r~Za novac ~w~do kraja vremena!", 1000,4);
		}
		else
		{
		    RobbingTime[playerid] = 0;
		    KillTimer(RobBankTimer);
			new money = random(2500);
		    SafeGivePlayerMoney(playerid, money);
			format(string, sizeof(string),"~w~Opljackali ste ~g~$%d ~w~Iz ~y~Banke!", money);
			GameTextForPlayer(playerid, string, 6000, 4);
			format(string, sizeof(string),"* Opljackali ste $%d Iz Banke!",money);
			SendClientMessage(playerid, COLOR_GREY, string);
			WantedPoints[playerid] = 10;
			SetPlayerCriminal(playerid,255, "Opljackana Banka");
		}
	}
	else
	{
        GameTextForPlayer(playerid, "~w~Napustio si Checkpoint!", 1000,4);
        RobbingTime[playerid] = 0;
 		KillTimer(RobBankTimer);
	}
}


Evo ti samo si stavi dobar int za banku jer neznam koji koristis ako je isti onda je sve uredu ali ako je pogresan moras promijenit kordinate Checkpointa .
Poslednja Izmena: April 23, 2014, 13:26:00 POSLE PODNE od CkusaColeCM

Kraden avatar bloomeru :*