• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[Pawn] Help with safe box system
#1
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;
} 
  Reply


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