Rob bank system - 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: Rob bank system (
/showthread.php?tid=365857)
Rob bank system -
Scott Zulkifli - 04.08.2012
pawn Code:
new robbing[MAX_PLAYERS];
new alreadyrobbed[MAX_PLAYERS];
pawn Code:
CMD:robbank(playerid, params [])
{
if(IsPlayerConnected(playerid))
{
if(robbing[playerid] == 1)
{
SetPlayerWantedLevel(playerid, GetPlayerWantedLevel(playerid)+6);
SendClientMessage(playerid, COLOR_GREY, " You are already robbing the bank + 6 level wanted, please slow down");
return 1;
}
if(alreadyrobbed[playerid] == 1)
{
SendClientMessage(playerid, COLOR_WHITE, "You already robbed the bank! Wait 1 hour.");
return 1;
}
if(!IsPlayerInRangeOfPoint(playerid, 15.0, 2471.9858,2355.4229,-52.0817))//Change those X,Y,Z
{
SendClientMessage(playerid, COLOR_GREY, " You are not at the bank !");
return 1;
}
else
{
SendClientMessage(playerid, COLOR_WHITE, "You have Robbed Los Santos Local Bank And Stole 1 Million Dollar - Stay low From Cops for few");
robbing[playerid] = 1;
GivePlayerMoney(playerid, 1000000);
SendClientMessageToAll(COLOR_BLUE, "||----------------Latest News----------------||");
SendClientMessageToAll(COLOR_GREEN, " Los Santos Local Bank Trust has Been Broken.");
SendClientMessageToAll(COLOR_GREEN, " The Bank is Currentley getting Robbed. ");
SendClientMessageToAll(COLOR_GREEN, " We will report more once we get more information");
SendClientMessageToAll(COLOR_BLUE, "||----------------Latest News----------------||");
}
}
return 1;
}
how to make a picture like this when using /robbank?

and at /robbank it takes 3 minutes.
and if the person is dead, I would have read like this:
pawn Code:
SendClientMessageToAll(COLOR_GREEN, " Los santos robbed the bank has failed.");
I think it's a lot that does not work.
Re: Rob bank system -
Ballu Miaa - 04.08.2012
Why dont you do it yourself its not that hard. Use Progresbar.inc and FS to create a progress bar and use it in your command with a timer to increase the progressbar amount. Just ****** it bruh.
Just Try to learn yourself and then ask!
Re: Rob bank system -
Scott Zulkifli - 04.08.2012
I think I'm too lazy for that matter.
dont reply**
Re: Rob bank system -
Ranama - 04.08.2012
GL HF having a server if you are to lazy to fix that small thing...
Re: Rob bank system -
Ballu Miaa - 04.08.2012
Quote:
Originally Posted by Ranama
GL HF having a server if you are to lazy to fix that small thing...
|
+1 Well said partner!
(/me mumbles to himself 'If Kalcor and SAMP Team + ****** would have been lazy like him. He would not be typing this.')
@Scott - By the way whats your age bro?
Re: Rob bank system -
Scott Zulkifli - 04.08.2012
I was 13 years of age,
why?
hahaha too young to understand this,
Re: Rob bank system -
Adrick - 23.01.2013
Define your colors :O
No biggie though