Advertisement
Guest User

Untitled

a guest
Jul 28th, 2017
61
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.57 KB | None | 0 0
  1. CMD:editobject(playerid)
  2. {
  3. new object, Float:x, Float:y, Float:z;
  4. GetPlayerPos(playerid, x, y, z);
  5. object = CreateObject(2025, x, y+1, z, 0.0, 0.0, 0.0);
  6. return EditObject(playerid, object);
  7. }
  8.  
  9. public
  10. OnPlayerEditObject(playerid, playerobject, objectid, response, Float:fX, Float:fY, Float:fZ, Float:fRotX, Float:fRotY, Float:fRotZ)
  11. {
  12. switch (response)
  13. {
  14. case EDIT_RESPONSE_FINAL:
  15. {
  16. printf("\nCreateObject(%d, %f, %f, %f, %f, %f, %f), objectid, fX, fY, fZ, fRotX, fRotY, fRotZ);
  17. fX, fY, fZ, fRotX, fRotY, fRotZ);
  18. }
  19. }
  20. return true;
  21. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement