SA-MP Forums

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

Thread Tools Display Modes
Old 29/05/2014, 05:26 PM   #1
Big Clucker
Join Date: Apr 2012
Posts: 106
Reputation: 4
Default Set object 'money safe'

So i want the object "money safe" to be appeared while the player is robbing.

Only i don't know how to add the money safe object in stores/interiors. With what function. I though that it's SetObjectPos, but nothing worked.

Also when player finish his robbing, the money fase must disappear.

It's something similar like from CNR servers.
Ercha is offline   Reply With Quote
Old 29/05/2014, 11:45 PM   #2
Eth's Avatar
Join Date: Sep 2013
Location: Egypt,مصر
Posts: 792
Reputation: 72
Default Re: Set object 'money safe'

first of all money safe id :1829
and then you have to get the player pos:
using GetPlayerPos then create the object in the player x,y,z
and when the player finish robbing destroy the object.
Left SAMP, yes..For real
Born on : 2000, 04, 12
Eth is offline   Reply With Quote
Old 30/05/2014, 04:04 AM   #3
Huge Clucker
Join Date: Mar 2012
Posts: 446
Reputation: 12
Default Re: Set object 'money safe'

pawn Code:
new Float: x, Float: y, Float: z;
GetPlayerPos(playerid, x,y,z);
if(IsPlayerInRangeOfPoint(playerid, range, banklocation x,  banklocation y, banklocation z); return
CreateObject(1829, x,y,z,rotation x, rotation y, rotation z, object drawdistance);
else if(!IsPlayerInRangeOfPoint(playerid, range, banklocation x, banklocation y, banklocation z); return
return 1;

Don't forget to substitute the locations, I didn't put them in because i didn't know where your script location was based. You'll need to put the rotations etc in aswell. I'm not 100% sure it's right, but you could try it out
Josh_Main is offline   Reply With Quote

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
Attach object money bag on back? Kapone21 Scripting Help 9 31/07/2013 09:20 PM
[Include] Safe Money Cheat Detector [ anti money cheat ] Safe Includes 2 13/09/2012 11:18 AM
safe money sysem with MySQL ArmyOps Scripting Help 0 27/02/2012 07:29 PM
[FilterScript] yBank V2.0 - a.k.a 'Safe Money Fast' ylleron Filterscripts 7 13/02/2012 03:12 PM
[FilterScript] Anti-Money-Hack | 100% Safe! XCarBOn Filterscripts 4 01/12/2010 04:41 PM

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

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