Advertisement
Guest User

Untitled

a guest
Jul 29th, 2015
188
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Pawn 1.49 KB | None | 0 0
  1.   for(new g = 0; g < MAX_pHouses; g++)
  2.             {
  3.                 if(dInfo[g][dCreated])
  4.                 {
  5.                 if(IsPlayerInRangeOfPoint(playerid, 3, dInfo[g][dX], dInfo[g][dY], dInfo[g][dZ]))
  6.                 if(dInfo[g][dOwned])
  7.                 {
  8.                 if(!dInfo[g][dJuda])
  9.                 {
  10.                 //printf("nejuda");
  11.                 if(!dInfo[g][dGateStat])
  12.                 {
  13.                                         //print("atidaromi");
  14.                                         new Float:oPos[6];
  15.                                         GetDynamicObjectPos(dInfo[g][dGatesObjectID], oPos[0], oPos[1], oPos[2]);
  16.                                         GetDynamicObjectRot(dInfo[g][dGatesObjectID], oPos[3], oPos[4], oPos[5]);
  17.                                         MoveDynamicObject(dInfo[g][dGatesObjectID], oPos[0], oPos[1], oPos[2] - 2.7, 2.0, oPos[3], oPos[4], oPos[5]);
  18.                                         dInfo[g][dJuda] = true;
  19.                                         dInfo[g][dGateStat] = true;
  20.                                         GameTextForPlayer(playerid, "~g~Atidarai~w~ garaza", 3000, 5);
  21.                                     }
  22.                                     else
  23.                                     {
  24.                                         //print("uzdarom");
  25.                                         new Float:oPos[6];
  26.                                         GetDynamicObjectPos(dInfo[g][dGatesObjectID], oPos[0], oPos[1], oPos[2]);
  27.                                         GetDynamicObjectRot(dInfo[g][dGatesObjectID], oPos[3], oPos[4], oPos[5]);
  28.                                         MoveDynamicObject(dInfo[g][dGatesObjectID], oPos[0], oPos[1], oPos[2] + 2.7, 2.0, oPos[3], oPos[4], oPos[5]);
  29.                                         dInfo[g][dJuda] = true;
  30.                                         dInfo[g][dGateStat] = false;
  31.                                         GameTextForPlayer(playerid, "~r~Uzdarai~w~ garaza", 3000, 5);
  32.                                     }
  33.                                 }
  34.                             }
  35.                     }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement