02.09.2011, 20:31
Hello, I am confused, Is their anyway (or Programm) to get camera positions? I am completly Confused, Please Help
I think he's talking about creating OnPlayerRequestClass positions and cameras.
|
'to get camera positions'
This forum requires that you wait 120 seconds between posts. Please try again in 66 seconds.
if(!strcmp("/savecampos", cmdtext))
{
if(!IsPlayerAdmin(playerid)) return 0;
if(isnull(params)) return SendClientMessage(playerid, COLOR_RED, "Usage: /savecampos [Comment]");
new path[128], File:ffile, Float:xp, Float:yp, Float:zp;
GetPlayerCameraPos(playerid, xp, yp, zp);
ffile = fopen("CamViews.txt", io_append);
format(path, sizeof(path), "Camera Position: %0.2f %0.2f %0.2f - %s\n", xp, yp, zp, params);
fwrite(ffile, path);
fclose(ffile);
return 1;
}