08.07.2014, 14:04
Hello scripterzzzz..I got problem with move object i put new toll system with ramp and ramp not going up and down but i have moveobject function and i make lift for police department and he going up left full but i set him to go only up he go left and up :/ any to help me please ??
toll:
lift:
toll:
pawn Код:
MoveObject(lssfpatarinakonsf, 53.5000000,-1528.6459961,4.8239999+0.0001, 0.0001, 0.0000000,90.0000000,79.6999512);
SetTimer("konsf", 5000, 0);
GetPlayerName(playerid, sendername, sizeof(sendername));
SendClientMessage(playerid,COLOR_LIGHTBLUE,"{00C0FF}[INFO]{FFFFFF} Gi predadovte patnite ispravi, pocekajte...");
format(string, sizeof(string), "%s gi vadi patnite ispravi i gi predava na salter.", sendername);
ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
}
else if(PlayerToPoint(3, playerid,50.9224,-1538.2712,5.1425))
{
MoveObject(lssfpatarinakonls, 51.4059982,-1541.7299805,4.8239999+0.0001, 0.0001, 0.0000000,90.0000000,81.7000122);
SetTimer("konls", 5000, 0);
GetPlayerName(playerid, sendername, sizeof(sendername));
SendClientMessage(playerid,COLOR_LIGHTBLUE,"{00C0FF}[INFO]{FFFFFF} Gi predadovte patnite ispravi, pocekajte...");
format(string, sizeof(string), "%s gi vadi patnite ispravi i gi predava na salter.", sendername);
ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
}
pawn Код:
public konls()
{
MoveObject(lssfpatarinakonls, 51.4059982,-1541.7299805,4.8239999-0.0001, 0.0001, 0.0000000,90.0000000,79.6999512);
return 1;
}
public konsf()
{
MoveObject(lssfpatarinakonsf, 53.5000000,-1528.6459961,4.8239999-0.0001, 0.0001, 0.0000000,90.0000000,81.7000122);
return 1;
}
pawn Код:
lssfpatarinakonsf = CreateObject(968,53.5000000,-1528.6459961,4.8239999,0.0000000,90.0000000,79.6999512,50000.0); //object(barrierturn) (1)
lssfpatarinakonls = CreateObject(968,51.4059982,-1541.7299805,4.8239999,0.0000000,90.0000000,81.7000122,50000.0); //object(barrierturn) (2)
pawn Код:
pdlift = CreateObject(18755,1559.1820068,-1660.5279541,-25.0529995,0.0000000,0.0000000,0.0000000,50000.0); //object(vcelevator1) (1)
pawn Код:
if(strcmp(cmdtext, "/lift", true) == 0)
{
if(!OtvorenaPD[2])
{
if(PlayerToPoint(4,playerid,1556.1907,-1660.6644,-26.0031) || PlayerToPoint(4,playerid,1556.5242,-1660.6708,-22.4781))
{
MoveObject(pdlift, 1549.7810059,-1667.6629639,-23.4780006,2.0000000,0.0000000,0.0000000);
SendClientMessage(playerid, COLOR_WHITE, "{C3D900}Go povikavte liftot");
OtvorenaPD[2] = true;
}
}
else if(OtvorenaPD[2])
{
if(PlayerToPoint(4,playerid,1556.5242,-1660.6708,-22.4781) || PlayerToPoint(4,playerid,1556.1907,-1660.6644,-26.0031))
{
MoveObject(pdlift, 1559.1820068,-1660.5290527,-21.5529995,2.0000000,0.0000000,0.0000000);
SendClientMessage(playerid, COLOR_WHITE, "{C3D900}Go povikavte liftot");
OtvorenaPD[2] = false;
}
}
}