14.04.2012, 08:14
i just want to tell that i added those , -1000.0 because the gates rotate...
this is my actual script:
but the gates are rotating when i open them...
this is my actual script:
pawn Код:
if (strcmp("/dgate", cmdtext, true, 10) == 0)
{
if(pInfo[playerid][pDonator] == 0) return SendClientMessage(playerid, COLOR_RED, "You are not donator.");
if(dGateOpened == 0)
{
F_MoveObject(dgate, -2864.9616699219, 460.51702880859, 4.5343232154846, 2.0);
SendClientMessage(playerid, COLOR_GREEN, "Donator Gate: Opened.");
dGateOpened = 1;
}
else
{
F_MoveObject(dgate, -2864.921875, 468.37530517578, 4.5343232154846, 2.0);
SendClientMessage(playerid, COLOR_RED, "Donator Gate: Closed.");
dGateOpened = 0;
}
return 1;
}