Burgershot
  • Home
  • Members
  • Team
  • Help
  • Search
  • Register
  • Login
  • Home
  • Members
  • Help
  • Search
Burgershot SA-MP Pawn Scripting [Pawn] Help with safe box system

 
  • 0 Vote(s) - 0 Average
Pawn Help with safe box system
JR_Junior
Offline

Burgershot Member
Posts: 20
Threads: 7
Joined: Oct 2020
Reputation: 0
Location: Brasil
#1
2021-06-16, 09:49 PM (This post was last modified: 2021-06-17, 08:26 PM by JR_Junior.)
I'm trying to create a closed and open door safe box system.

I would like to be able to create a safe box anywhere and automatically have the door positioned correctly.

Does anyone know the correct calculation for this?


PHP Code:
new safe = CreateDynamicObject(19618, 414.47070, 2537.35913, 9.45900,  0.00000, 0.00000, 90.00000);
new 
door = CreateDynamicObject(19619, 414.70401, 2536.93848, 9.45800,  0.00000, 0.00000, 90.00000); 

The function I intend to use:
PHP Code:
stock CreateSafeBox(Float:px,Float:py,Float:pz,Float:rz)
{
CreateDynamicObject(px, py, pz  0.0, 0.0, rz);//Safe
CreateDynamicObject(px, py, pz  0.0, 0.0, rz);//Door
return 1;
} 
« Next Oldest | Next Newest »



Messages In This Thread
Help with safe box system - by JR_Junior - 2021-06-16, 09:49 PM
RE: Help with safe box system - by Awide - 2021-06-17, 07:52 PM
RE: Help with safe box system - by JR_Junior - 2021-06-17, 08:21 PM
RE: Help with safe box system - by Kwarde - 2021-06-17, 09:48 PM
RE: Help with safe box system - by Radical - 2021-06-18, 01:11 AM
RE: Help with safe box system - by JR_Junior - 2021-06-18, 03:22 PM
RE: Help with safe box system - by PutuSuhartawan - 2021-06-19, 01:08 AM
RE: Help with safe box system - by JR_Junior - 2021-06-19, 11:52 PM
RE: Help with safe box system - by Kwarde - 2021-06-20, 08:57 PM

  • View a Printable Version
  • Subscribe to this thread
Forum Jump:

© Burgershot - Powered by our Community and MyBB Original Theme by Emerald

Linear Mode
Threaded Mode