Advertisement
Guest User

Untitled

a guest
Mar 11th, 2014
983
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Pawn 1.04 KB | None | 0 0
  1. #include <a_samp>
  2.  
  3. new curSkin;
  4.  
  5. main() {}
  6.  
  7. public OnPlayerSpawn(playerid)
  8. {
  9.     SetPlayerSkin(playerid, curSkin);
  10.  
  11.     // Attach the cuffs
  12.     SetPlayerSpecialAction(playerid, SPECIAL_ACTION_CUFFED);
  13.     SetPlayerAttachedObject(playerid, 0, 19418, 6, -0.027999, 0.051999, -0.030000, -18.699926, 0.000000, 104.199928, 1.489999, 3.036000, 1.957999);
  14.     EditAttachedObject(playerid, 0);
  15.     return 1;
  16. }
  17.  
  18. public OnPlayerEditAttachedObject(playerid, response, index, modelid, boneid, Float:fOffsetX, Float:fOffsetY, Float:fOffsetZ, Float:fRotX, Float:fRotY, Float:fRotZ, Float:fScaleX, Float:fScaleY, Float:fScaleZ)
  19. {
  20.     // Save it
  21.     new szString[256];
  22.     new File:log = fopen("cuffs.txt", io_append);
  23.     format(szString, sizeof(szString), "{%f, %f, %f, %f, %f, %f, %f, %f, %f},\r\n", fOffsetX, fOffsetY, fOffsetZ, fRotX, fRotY, fRotZ, fScaleX, fScaleY, fScaleZ);
  24.     fwrite(log, szString);
  25.     fclose(log);
  26.  
  27.     // Next skin
  28.     curSkin++;
  29.     SetPlayerSkin(playerid, curSkin);
  30.     EditAttachedObject(playerid, 0);
  31.     return 1;
  32. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement