12.01.2012, 19:01
Well , Everyone knows the Gate bar object which it's ID = 968 that most of the people use For LSPD first gate , anyway...I Want to make it's moving speed, so i will have to make it with MoveDynamicObject , but MoveDynamicObject doesn't Support RX RY RZ , only X Y Z speed , so i did that :
when i added it with ONLY SetDynamicObjectRot without MoveDynamicObject - it worked , But the Object just go up in a second , like it get Tp'ed there.. lol , Anyway - is there a way to make it go up slowly ?
PHP код:
if(strcmp(cmdtext,"/ddogate", true) == 0)
{
//MoveDynamicObject(DDEPOT,1895.0921630859, -1879.7592773438, 13.479251861572,2); //object(phils_compnd_gate) (2)
SetDynamicObjectRot( DDEPOT, 0.0000, 0.0000, 0.0000);
SendClientMessage(playerid, COLOR_WHITE, "Drug Depot Gate has Been opened.");
return 1;
}
if(strcmp(cmdtext,"/ddcgate", true) == 0)
{
//MoveDynamicObject(DDEPOT,1895.0921630859, -1879.7592773438, 13.479251861572,2); //object(phils_compnd_gate) (2)
SetDynamicObjectRot( DDEPOT, 0.0000, 90.0000, 0.0000);
SendClientMessage(playerid, COLOR_WHITE, "Drug Depot Gate has Been Closed.");
return 1;
}