SA-MP Forums Archive
LSPD Ramp slow open help - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: LSPD Ramp slow open help (/showthread.php?tid=528805)



LSPD Ramp slow open help - osman2571 - 29.07.2014

Hello i use Raven's gamemode and my LSPD ramps is created in simple way with destroy object.
I don't wanna that ramps with destroy object i want the ramp open slowly..
I trying to make custom system to opening ramp but doesnt work..

Any idea or code ?

Something to write:I need make also rotation moving but don't work
i use MoveDynamicObject


Re: LSPD Ramp slow open help - sammp - 29.07.2014

c0d3 pl5


Re: LSPD Ramp slow open help - osman2571 - 29.07.2014

Simple:

Quote:

pdgate2 = CreateDynamicObject(968,1544.700317,-1630.735717,13.096980,-1.000000,-91.000000,269.972869); Ramp close

Quote:

public GateClose5()
{
DestroyDynamicObject( pdgate3 );
pdgate2 = CreateDynamicObject(968,1544.700317,-1630.735717,13.096980,-1.000000,-91.000000,269.972869);
lspdg2 = 0;
return 1;
}

Quote:

else if(IsPlayerInRangeOfPoint(playerid, 15,1544.700317,-1630.735717,13.096980))
{
if(lspdg2 == 1) { SCM(playerid, COLOR_GREY, "** Rampa je vec otvorena"); return 1; }
DestroyDynamicObject( pdgate2 );
pdgate3 = CreateDynamicObject(968,1544.700317,-1630.735717,12.924660,0.000000,0.000000,270.972869 );
SetTimer("GateClose5", 6000, 0);
SCM(playerid, COLOR_BLUE,"Rampa je otvorena i bice zatvorena za 6 sekundi.");
GetPlayerName(playerid, sendername, sizeof(sendername));
format(string, sizeof(string), "* %s uzima svoj daljinski i otvara rampu.", sendername);
ProxDetector(30.0, playerid, string, COLOR_CHAT1,COLOR_CHAT2,COLOR_CHAT3,COLOR_CHAT4,CO LOR_CHAT5);
lspdg2 = 1;
}




Re: LSPD Ramp slow open help - sammp - 29.07.2014

pawn Код:
MoveDynamicObject(args)



Re: LSPD Ramp slow open help - osman2571 - 29.07.2014

what you mean this args


Re: LSPD Ramp slow open help - sammp - 29.07.2014

The arguments you need to pass like positions etc


Re: LSPD Ramp slow open help - osman2571 - 29.07.2014

aha, i use this way
MoveDynamicObject(pdgate1,1599.053344,-1638.123168,14.122960, 0.1-speed);


Re: LSPD Ramp slow open help - sammp - 29.07.2014

yeah