rob script
#1

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]
Reply
#2

Please SEARCH before asking.

http://forum.sa-mp.com/index.php?topic=81197.0
Reply
#3

Код:
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!
Reply
#4

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 :/
Reply
#5

the links r dead plz upload them again.
Reply
#6

OMFG DUDE IT WAS 2 YEARS AGO AND THE LINKS ARENT EVEN DOWN http://i42.tinypic.com/m745z4.jpg
Reply
#7

pawn Код:
switch(random(6)
{
      case 0..2:
      {
              //Sucesfull robbery
      }
      case 3..5:
      {
              //Unsucesfull robbery
       }
}
Reply
#8

Quote:
Originally Posted by Donya
Посмотреть сообщение
OMFG DUDE IT WAS 2 YEARS AGO AND THE LINKS ARENT EVEN DOWN http://i42.tinypic.com/m745z4.jpg
the forum link works but not the download links.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)