Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- [hr][size=2][color=blue][b]Dupla hozzászólás automatikusan összefűzve. ( [time]1366554984[/time] )[/b][/color][/size][hr]
- if(!strcmp("/savecam",cmdtext,true))
- {
- new Float:pX, Float:pY, Float:pZ;
- new Float:Angle;
- new Float:cX, Float:cY, Float:cZ;
- GetPlayerPos(playerid, pX, pY, pZ);
- GetPlayerCameraPos(playerid, cX, cY, cZ);
- GetPlayerFacingAngle(playerid, Angle);
- new string[512];
- format(string, 512, "SetPlayerPos(playerid, %.3f, %.3f, %.3f);\r\nSetPlayerFacingAngle(playerid, %.3f);\r\nSetPlayerCameraPos(playerid, %.3f, %.3f, %.3f);\r\nSetPlayerCameraLookAt(playerid, %.3f, %.3f, %.3f);",
- pX, pY, pZ, Angle, cX, cY, cZ, pX, pY, pZ);
- new File:cam_file;
- cam_file = fopen("StRt/SavedCamPostions.txt", io_append);
- if(cam_file)
- {
- fwrite(cam_file, string);
- fwrite(cam_file,"\r\n");
- fclose(cam_file);
- }
- return 1;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement