05.06.2012, 05:28
Hello there.
I am try to move an object, I done everything right but the rotation of it is just bad.
I dont know why, in the MTA everything is has i done.
Everything I am try to move it right - nothing.
I got the same problem as this guy : [ame]http://www.youtube.com/watch?v=lOakUxee1H0&feature=related[/ame]
Hope for some help!
Thanks.
I am try to move an object, I done everything right but the rotation of it is just bad.
I dont know why, in the MTA everything is has i done.
Everything I am try to move it right - nothing.
Quote:
if(strcmp(cmd, "/opendoor", true) == 0 || strcmp(cmd, "/od", true) == 0) { if(IsPlayerConnected(playerid)) { if(IsACop(playerid) || IsASheriff(playerid)) { if(PlayerToPoint(5, playerid,239.60000610352, 121, 1006.5) && IsACop(playerid)) { MoveObjectEx(pdd1, 239.60000610352, 121, 1006.5, 5); } else if(PlayerToPoint(2, playerid,253.191696,109.082427,1003.22570 ![]() { MoveObject(pdd2, 253.199696,107.082427,1003.225708,1); } else if(PlayerToPoint(2, playerid,253.207733,125.242126,1003.218750)) { MoveObject(pdd3, 253.207733,123.242126,1003.218750,1); //V } else if(PlayerToPoint(2, playerid,232.931304,109.093315,1010.208679) && IsACop(playerid))//d.chief { if(PlayerInfo[playerid][pRank] >= ![]() { MoveObject(pdddc, 233.031304,107.093315,1010.208679,1); } else { SendClientMessage(playerid, COLOR_DARKRED, "Access Deny!"); return 1; } } else if(PlayerToPoint(2, playerid,231.135330,119.553451,1010.218750) && IsACop(playerid))//chief { if(PlayerInfo[playerid][pRank] >= ![]() { MoveObject(pddc, 229.135330,119.653451,1010.218750,1); } else { SendClientMessage(playerid, COLOR_DARKRED, "Access Deny!"); return 1; } } else if(PlayerToPoint(2, playerid,275.642517,117.420158,1004.617187) && IsACop(playerid)) { MoveObject(pdd4, 275.542517,119.420158,1004.617187,1); } else if(PlayerToPoint(2, playerid,265.835815,112.502014,1004.617187) && IsACop(playerid)) { MoveObject(pdd5, 263.835815,112.302014,1004.617187,1); } else if(PlayerToPoint(2, playerid,265.989532,115.889060,1004.617187) && IsACop(playerid)) { MoveObject(pdd6, 267.989532,115.999060,1004.617187,1); } else if(PlayerToPoint(2, playerid,239.628219,125.069351,1003.218750) && IsACop(playerid)) { MoveObject(pdd7, 239.543219,127.069351,1003.218750,1); } else { SendClientMessage(playerid, COLOR_GREY, "you are not near any door!"); return 1; } format(string, sizeof(string), "* %s types the access code **** while covering with his free hand.", sendername); ProxDetector(15.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPL E,COLOR_PURPLE); } else {SendClientMessage(playerid, COLOR_GREY, " You are not a Cop!");} } return 1; } |
Hope for some help!
Thanks.