SA-MP Forums Archive
[FilterScript] ROB BANK - 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: Filterscripts (https://sampforum.blast.hk/forumdisplay.php?fid=17)
+--- Thread: [FilterScript] ROB BANK (/showthread.php?tid=428543)



ROB BANK - macparas - 06.04.2013

Can someone give me a link of the FS of rob bank please ...


Re: ROB BANK - BodyBoardVEVO - 06.04.2013

Wrong Section!

Rob Bank -> http://forum.sa-mp.com/showthread.ph...hlight=RobBank


Re: ROB BANK - macparas - 06.04.2013

Thanks Bodyboardvevo


Re: ROB BANK - macparas - 06.04.2013

Quote:

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;
}

When I compile this 2 error showed

Sorry for the english


Re: ROB BANK - BodyBoardVEVO - 06.04.2013

Quote:
Originally Posted by macparas
Посмотреть сообщение
When I compile this 2 error showed

Sorry for the english
You need put at SCRIPT start

pawn Код:
new robbing[MAX_PLAYERS];
new alreadyrobbed[MAX_PLAYERS];