[FilterScript] xRobbery - Safe Robbery System // by XpDeviL
#1

Hi everyone,

It's a safe robbery system. You can create safes and make players rob them. You can simply rob safes by typing /rob.

Commands

/rob : You can rob safes by using this command. First you will try to crack the safe then you'll rob the safe.

/createsafe : You can easily create safes with this command. Just type it and set the safes position.

/editsafe [safe id] : Edits selected safe.

/deletesafe [safe id] : Deletes seleted safe.


Images






Video

https://*********/FnYU5s2RdtU


Download

GitHub
Mediafire


Requirements

Zcmd - (Topic)
y_Iterate (YSI Github)
BlueG's MySQL (Topic)
Reply
#2

Fantastic work, truly unique,
5 starts and +REP
Reply
#3

Nice and usefull
Reply
#4

Why are you using pVars?

PHP Code:
GetPVarInt(playerid"pSafeID");
GetPVarInt(playerid"robbedMoney");
GetPVarInt(playerid"safeMode");
GetPVarInt(playerid"tmp_safe"); 
What is this? Why waste 128 cells (Pretty much everywhere in the script)? Also, consider updating your MySQL plugin.
PHP Code:
new str[128];
format(strsizeof(str), "DELETE FROM `xrob_safes` WHERE `ID`=%d"sid);
mysql_query(mysqlBstr); 
Also, using stock keyword isn't even needed, just leave the functions your FS will use.
Reply
#5

Quote:
Originally Posted by Jelly23
View Post
Why are you using pVars?

PHP Code:
GetPVarInt(playerid"pSafeID");
GetPVarInt(playerid"robbedMoney");
GetPVarInt(playerid"safeMode");
GetPVarInt(playerid"tmp_safe"); 
What is this? Why waste 128 cells (Pretty much everywhere in the script)? Also, consider updating your MySQL plugin.
PHP Code:
new str[128];
format(strsizeof(str), "DELETE FROM `xrob_safes` WHERE `ID`=%d"sid);
mysql_query(mysqlBstr); 
Also, using stock keyword isn't even needed, just leave the functions your FS will use.
I used PVars for temporary needed variables. Used and deleted when it's done.
Yeah cell lenghts are too much you're right. I copied and pasted MySQL queries for gain time. I forgot to change cell lengths.
Thank you.
Reply
#6

As Jelly said, update your MYSQL plugin and update pastebin please !
Reply
#7

Quote:
Originally Posted by Bolex_
View Post
As Jelly said, update your MYSQL plugin and update pastebin please !
I used MySQL R41-2?
Reply
#8

Looks good from textdraws too.
Reply
#9

Excelent Job!
Reply
#10

Burayı dьzeltin isterseniz:

Code:
else print("[xRobbery MySql] The connection has failed!\n\n[!!! xVehicle v2 couldn't init !!!]\n\n");
Reply
#11

link please its expire
Reply
#12

update the link
Reply
#13

I couldn't see any problem with the links 🤔 However, I've added a new GitHub link, just in case.
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)