Advertisement
Guest User

Untitled

a guest
Jan 17th, 2013
114
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.64 KB | None | 0 0
  1. //by gReeDy
  2.  
  3. public OnPlayerEditDynamicObject(playerid, objectid, response, Float:x, Float:y, Float:z, Float:rx, Float:ry, Float:rz)
  4. {
  5. if(response == EDIT_RESPONSE_FINAL)
  6. {
  7. new id = eData[playerid], Float:angle, string[100];
  8. GetPlayerFacingAngle(playerid, angle);
  9. if(id != -1)
  10. {
  11. AtmInfo[id][aX] = x;
  12. AtmInfo[id][aY] = y;
  13. AtmInfo[id][aZ] = z;
  14. AtmInfo[id][aAngle] = rz;
  15. DestroyDynamicObject(AtmInfo[id][aObjekat]);
  16. KreirajAtm(id);
  17. SacuvajATM(id);
  18. format(string,sizeof(string),"ATM ID %d je uspesno kreiran/editovan!",id);
  19. SCM(playerid,-1,string);
  20. id = -1;
  21. return 1;
  22. }
  23. }
  24. return 1;
  25. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement