Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <a_samp>
- new curSkin;
- main() {}
- public OnPlayerSpawn(playerid)
- {
- SetPlayerSkin(playerid, curSkin);
- // Attach the cuffs
- SetPlayerSpecialAction(playerid, SPECIAL_ACTION_CUFFED);
- SetPlayerAttachedObject(playerid, 0, 19418, 6, -0.027999, 0.051999, -0.030000, -18.699926, 0.000000, 104.199928, 1.489999, 3.036000, 1.957999);
- EditAttachedObject(playerid, 0);
- return 1;
- }
- 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)
- {
- // Save it
- new szString[256];
- new File:log = fopen("cuffs.txt", io_append);
- format(szString, sizeof(szString), "{%f, %f, %f, %f, %f, %f, %f, %f, %f},\r\n", fOffsetX, fOffsetY, fOffsetZ, fRotX, fRotY, fRotZ, fScaleX, fScaleY, fScaleZ);
- fwrite(log, szString);
- fclose(log);
- // Next skin
- curSkin++;
- SetPlayerSkin(playerid, curSkin);
- EditAttachedObject(playerid, 0);
- return 1;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement