SHARE
TWEET

Untitled

a guest Aug 12th, 2017 48 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. /*  SA-MP Object Functions
  2.  *
  3.  *  (c) Copyright 2005-2010, SA-MP Team
  4.  *
  5.  */
  6.  
  7. #if defined _objects_included
  8.     #endinput
  9. #endif
  10. #define _objects_included
  11. #pragma library objects
  12.  
  13. // Objects
  14.  
  15. native CreateObject(modelid, Float:X, Float:Y, Float:Z, Float:rX, Float:rY, Float:rZ, Float:DrawDistance = 0.0);
  16. native AttachObjectToVehicle(objectid, vehicleid, Float:fOffsetX, Float:fOffsetY, Float:fOffsetZ, Float:fRotX, Float:fRotY, Float:RotZ);
  17. native SetObjectPos(objectid, Float:X, Float:Y, Float:Z);
  18. native GetObjectPos(objectid, &Float:X, &Float:Y, &Float:Z);
  19. native SetObjectRot(objectid, Float:RotX, Float:RotY, Float:RotZ);
  20. native GetObjectRot(objectid, &Float:RotX, &Float:RotY, &Float:RotZ);
  21. native IsValidObject(objectid);
  22. native DestroyObject(objectid);
  23. native MoveObject(objectid, Float:X, Float:Y, Float:Z, Float:Speed);
  24. native StopObject(objectid);
  25. native CreatePlayerObject(playerid, modelid, Float:X, Float:Y, Float:Z, Float:rX, Float:rY, Float:rZ, Float:DrawDistance = 0.0);
  26. native SetPlayerObjectPos(playerid, objectid, Float:X, Float:Y, Float:Z);
  27. native GetPlayerObjectPos(playerid, objectid, &Float:X, &Float:Y, &Float:Z);
  28. native SetPlayerObjectRot(playerid, objectid, Float:RotX, Float:RotY, Float:RotZ);
  29. native GetPlayerObjectRot(playerid, objectid, &Float:RotX, &Float:RotY, &Float:RotZ);
  30. native IsValidPlayerObject(playerid, objectid);
  31. native DestroyPlayerObject(playerid, objectid);
  32. native MovePlayerObject(playerid, objectid, Float:X, Float:Y, Float:Z, Float:Speed);
  33. native StopPlayerObject(playerid, objectid);
  34. native AttachObjectToPlayer(objectid, playerid, Float:OffsetX, Float:OffsetY, Float:OffsetZ, Float:rX, Float:rY, Float:rZ);
  35. native AttachPlayerObjectToPlayer(objectplayer, objectid, attachplayer, Float:OffsetX, Float:OffsetY, Float:OffsetZ, Float:rX, Float:rY, Float:rZ);
RAW Paste Data
Top