SA-MP Forums Archive
robbank - 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: robbank (/showthread.php?tid=356897)



robbank - srcka< - 05.07.2012

hello
I want to do /robbank but not when 10 members of the PD, the FBI and others. For those who want to /robbank to come:

"You can not be hacked this bank! There 10 members of the PD, the FBI. Non FP is not hacked"


Re: robbank - TheLazySloth - 05.07.2012

Not all scripts are the same, which script are you using?


Re: robbank - srcka< - 05.07.2012

Код:
if(strcmp(cmd, "/robbank", true) == 0)
	{
	    new success = random(2);
/    if(BankRobbedRecently == 1)
		{
		    SendClientMessage(playerid, COLOR_GREY, "* This bank has been robbed, try later");
		    return 1;
		}
		if(PlayerInfo[playerid][pRobTime] >= 1)
		{
		    SendClientMessage(playerid, COLOR_GREY, "*Already tried to rob bank, 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, "* Rob bank, stay on CP 95 seconds!");
	                    RobbingTime[playerid] = 95;
						RobBankTimer = SetTimerEx("RobBank",1000,true,"i",playerid);
			            WantedPoints[playerid] = 5;
			            SetPlayerCriminal(playerid,255, "Robbank");
			            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, "* Failed to rob bank");
					    WantedPoints[playerid] = 2;
			            SetPlayerCriminal(playerid,255, "Robbing banks");
						PlayerInfo[playerid][pRobTime] = 500;
					}
				}
				else
				{
				    SendClientMessage(playerid, COLOR_GREY, "* You must have a duty !!");
				    return 1;
				}
			}
			else
			{
			    SendClientMessage(playerid, COLOR_GREY, "* You need a weapon that can kill the criminals! ! ");
			    return 1;
			}
		}
		else
		{



Re: robbank - TheLazySloth - 05.07.2012

-.- Someone will help you eventually, I have no time otherwise I would.


Re: robbank - aaronwelsh - 05.07.2012

Quote:
Originally Posted by srcka<
Посмотреть сообщение
"You can not be hacked this bank! There 10 members of the PD, the FBI. Non FP is not hacked"
Off topic but if you're going to make something, have better grammar and make more sense.
"You can not be hacked this bank" Don't you mean "You can not rob this bank"? also, it wouldn't be there, it would be they're (Well by the way it looks like you're saying that stuff)

I'm not being mean or that, I'm helping you out. I'd never play on a server if the grammar was that bad.


Re: robbank - srcka< - 05.07.2012

my cmd is on Macedonian but i have bad english and i translate that do yo want to help me ?


Re: robbank - Snipa - 05.07.2012

Use [.pawn][/.pawn] tags


Re: robbank - srcka< - 05.07.2012

here is the cmd in