SA-MP Forums

Go Back   SA-MP Forums > SA-MP Scripting and Plugins > Filterscripts

Reply
 
Thread Tools Display Modes
Old 09/04/2017, 08:09 PM   #1
XpDeviL
Big Clucker
 
XpDeviL's Avatar
 
Join Date: Sep 2009
Posts: 70
Reputation: 8
Default xRobbery - Safe Robbery System // by XpDeviL

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://youtu.be/FnYU5s2RdtU


Download

GitHub
Mediafire


Requirements

Zcmd - (Topic)
y_Iterate (YSI Github)
BlueG's MySQL (Topic)
__________________

Last edited by XpDeviL; 03/12/2018 at 10:42 PM.
XpDeviL is offline   Reply With Quote
Old 09/04/2017, 08:44 PM   #2
Eoussama
High-roller
 
Eoussama's Avatar
 
Join Date: Jul 2016
Location: Kingdom of Morocco // Tangier
Posts: 1,286
Reputation: 266
Default Re: xRobbery - Safe Robbery System // by XpDeviL

Fantastic work, truly unique,
5 starts and +REP
__________________

|===[Web taxi]===|
List of my work
Github
Pastebin

|===[Interesting topics]===|
Semantic Versioning
Eoussama is offline   Reply With Quote
Old 09/04/2017, 09:02 PM   #3
khRamin78
Huge Clucker
 
khRamin78's Avatar
 
Join Date: Jun 2015
Posts: 259
Reputation: 23
Default Re: xRobbery - Safe Robbery System // by XpDeviL

Nice and usefull
__________________
My Work's :
khRamin78 is offline   Reply With Quote
Old 09/04/2017, 09:06 PM   #4
Jelly23
Guest
 
Posts: n/a
Default Re: xRobbery - Safe Robbery System // by XpDeviL

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 With Quote
Old 09/04/2017, 10:09 PM   #5
XpDeviL
Big Clucker
 
XpDeviL's Avatar
 
Join Date: Sep 2009
Posts: 70
Reputation: 8
Default Re: xRobbery - Safe Robbery System // by XpDeviL

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.
__________________
XpDeviL is offline   Reply With Quote
Old 10/04/2017, 01:01 PM   #6
Bolex_
Gangsta
 
Bolex_'s Avatar
 
Join Date: Aug 2015
Location: Republic Of Croatia
Posts: 594
Reputation: 116
Default Re: xRobbery - Safe Robbery System // by XpDeviL

As Jelly said, update your MYSQL plugin and update pastebin please !
Bolex_ is offline   Reply With Quote
Old 10/04/2017, 02:30 PM   #7
XpDeviL
Big Clucker
 
XpDeviL's Avatar
 
Join Date: Sep 2009
Posts: 70
Reputation: 8
Default Re: xRobbery - Safe Robbery System // by XpDeviL

Quote:
Originally Posted by Bolex_ View Post
As Jelly said, update your MYSQL plugin and update pastebin please !
I used MySQL R41-2?
__________________
XpDeviL is offline   Reply With Quote
Old 10/04/2017, 08:05 PM   #8
Astralis
Guest
 
Posts: n/a
Default Re: xRobbery - Safe Robbery System // by XpDeviL

Looks good from textdraws too.
  Reply With Quote
Old 10/04/2017, 11:21 PM   #9
Gles
Big Clucker
 
Gles's Avatar
 
Join Date: Aug 2016
Location: Cargando...
Posts: 166
Reputation: 13
Default Respuesta: xRobbery - Safe Robbery System // by XpDeviL

Excelent Job!
__________________
"- Nadie es mejor que nadie, todos somos iguales aunque uno sepa mas que otro."
Gles is offline   Reply With Quote
Old 12/04/2017, 04:23 PM   #10
nieXpro
Little Clucker
 
Join Date: Apr 2017
Location: Turkey
Posts: 13
Reputation: 0
Default Re: xRobbery - Safe Robbery System // by XpDeviL

Burayı düzeltin isterseniz:

Code:
else print("[xRobbery MySql] The connection has failed!\n\n[!!! xVehicle v2 couldn't init !!!]\n\n");
nieXpro is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
[FilterScript] xVehicle v2 // Vehicle Ownership System // by XpDeviL XpDeviL Filterscripts 13 06/06/2017 11:38 AM
[Tool/Web/Other] xConverter - MTA > SAMP Multi-Converter // by XpDeviL XpDeviL Tools and Files 2 29/01/2017 12:59 PM
[FilterScript] Safe Zone System[SAVE/LOAD] VinPure Filterscripts 14 28/12/2014 08:46 PM
Robbery system help ponagandlamanoj Scripting Help 6 25/02/2014 07:15 PM


All times are GMT. The time now is 12:13 AM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2018, Jelsoft Enterprises Ltd.