rob script - 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)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: rob script (
/showthread.php?tid=64739)
rob script -
StrickenKid - 07.02.2009
im amaking a cops and robbers server and i was wondering if anyone knew a robbing script.
JUst something that robs a random number of money between like 60K and 500K or somehting like that
ALSO PLZ CAN ANYONE TELL ME THE OBJECT ID FOR THIS ATM!!
[img width=1024 height=640]http://i42.tinypic.com/m745z4.jpg[/img]
Re: rob script -
Mikep - 07.02.2009
Please SEARCH before asking.
http://forum.sa-mp.com/index.php?topic=81197.0
Re: rob script -
BSMan - 07.02.2009
Код:
new try=random(5);
if (try == 0)
{
new ammount = random(440001);
ammount+=60000;
new money;
GetPlayerMoney(playerid, money);
SetPlayerMoney(playerid, money+ammount);
new string[128];
format (string, 128, "you have successfully robbed %d from the ATM", ammount);
SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
}
else
{
SendClientMessage(playerid, COLOR_RED, "rob failed");
}
if u want a better chance of succes set the number 5 (in the first row) to a smaller number.
i wrote it down only now, so it doesnt 10% works. check it and return t me with your problems.
as for the ATM: im not sure. u can use MTA map editor to check.
hope i helped!
Re: rob script -
StrickenKid - 07.02.2009
i cant get that map editor to work :/ i got vista and when i open the program it just closes itself so if anyone would be nice enough plz find the object id of that atm :/
Re: rob script -
jot16 - 28.03.2011
the links r dead plz upload them again.
Re: rob script -
Donya - 28.03.2011
OMFG DUDE IT WAS 2 YEARS AGO AND THE LINKS ARENT EVEN DOWN
http://i42.tinypic.com/m745z4.jpg
Re: rob script -
Marricio - 29.03.2011
pawn Код:
switch(random(6)
{
case 0..2:
{
//Sucesfull robbery
}
case 3..5:
{
//Unsucesfull robbery
}
}
Re: rob script -
jot16 - 29.03.2011
Quote:
Originally Posted by Donya
|
the forum link works but not the download links.