01.08.2018, 11:30
Hi. I want to move the object only by rotation. How can i do that?
PHP код:
CMD:sdgate(playerid, params[])
{
if(pInfo[playerid][pFaction] != 1) return SendClientMessage(playerid, COLOR_WHITE, "You are not from Sherrif Department");
if(IsPlayerInRangeOfPoint(playerid, 5.0, 125.4551,-130.3049,1.5781))
{
SendClientMessage(playerid, COLOR_LIGHTBLUE, "You have opened the gate. It will close after five seconds.!");
MoveObject(barierasd, 122.7600, -134.0119, 1.3161, 0.0000, 90.0000, 0.4000); //barrierturn
SetTimerEx("sdgate", 5000, false, "i", playerid);
}
else
{
SendClientMessage(playerid, -1, "{FFCC33}You are not near the gate!");
}
return 1;
}