[FS]BirdView (NEW-More functions.) -
[DOG]irinel1996 - 22.09.2011
Hi.
I've "edited" one FS, well...
It's about the famous Bird View... Ah, watch the video below.
I know it's too easy, but I'm a bit bored and I haven't new ideas.
-Videos:
I'm sorry for the bad quality.
[ame]http://www.youtube.com/watch?v=BiwFvO2ONXw[/ame]
-Commands:
-mapon
-mapoff
-Functions:
-Movement: Right, Left, Back, Forward. //Edited by me.
-Zoom: zoom in, zoom out. //By me.
And it works without any type of lagg. (Fixed by me).
-Download:
-Download here.
-Credits:
-irinel1996 (80%)
-Mach37 (20%)
-Suggestions:
All suggestions are welcome.
NOTE: More than half of the script was changed by me.
Well, that's all.
Best regards.
Atte. irinel1996
Re: [FS]BirdView (NEW-More functions.) -
FireCat - 22.09.2011
Cool and easy
Re : [FS]BirdView (NEW-More functions.) -
Naruto_Emilio - 22.09.2011
Already made by someone else but it's cool :P
Re: [FS]BirdView (NEW-More functions.) -
Issam - 22.09.2011
Can be useful to make a screen, photoshop it and make a banner.. :P
or maybe more like GTA2 - GTA1 Camera,i would like to see a GTA I Roleplay, with this camera,lol
Re: [FS]BirdView (NEW-More functions.) -
[DOG]irinel1996 - 22.09.2011
Hahaha. Yes, You can take good screenshots and make videos with good effects.
Thanks you all!
Re: [FS]BirdView (NEW-More functions.) -
OKStyle - 23.09.2011
Sorry, but I've made a more-rational option...
pawn Код:
#include <a_samp>
// [FS] BirdView by Mach97 & irinel1996
new Float:mapX[MAX_PLAYERS], Float:mapY[MAX_PLAYERS], Float:mapZ[MAX_PLAYERS];
public OnPlayerCommandText(playerid, cmdtext[])
{
if(strcmp(cmdtext, "/mapon", true, 6) == 0)
{
SetPVarInt(playerid, "MapStarted", 1);
TogglePlayerControllable(playerid, 0);
new Float:x, Float:y, Float:z;
GetPlayerPos(playerid, x, y, z);
mapX[playerid] = x; mapY[playerid] = y; mapZ[playerid] = z + 340.0;
TogglePlayerControllable(playerid, 0);
SetPlayerPos(playerid, mapX[playerid], mapY[playerid], -70.0);
SetPlayerCameraPos(playerid, mapX[playerid], mapY[playerid], mapZ[playerid]);
SetPlayerCameraLookAt(playerid, mapX[playerid], mapY[playerid], 0.0);
return 1;
}
if(strcmp(cmdtext, "/mapoff", true, 7) == 0)
{
SetPVarInt(playerid, "MapStarted", 0);
TogglePlayerControllable(playerid, 1);
SetCameraBehindPlayer(playerid);
return 1;
}
return 0;
}
public OnPlayerUpdate(playerid)
{
if(GetPVarInt(playerid, "MapStarted") == 1)
{
new o, ud, lr;
GetPlayerKeys(playerid, o, ud, lr);
if(ud > 0)
{
mapY[playerid] -= 10.0;
SetPlayerCameraPos(playerid, mapX[playerid], mapY[playerid], mapZ[playerid]);
SetPlayerCameraLookAt(playerid, mapX[playerid], mapY[playerid], 0.0);
SetPlayerPos(playerid,mapX[playerid], mapY[playerid], -70.0);
}
else if(ud < 0)
{
mapY[playerid] += 10.0;
SetPlayerCameraPos(playerid, mapX[playerid], mapY[playerid], mapZ[playerid]);
SetPlayerCameraLookAt(playerid, mapX[playerid], mapY[playerid], 0.0);
SetPlayerPos(playerid,mapX[playerid], mapY[playerid], -70.0);
return 1;
}
if(lr > 0)
{
mapX[playerid] += 10.0;
SetPlayerCameraPos(playerid, mapX[playerid], mapY[playerid], mapZ[playerid]);
SetPlayerCameraLookAt(playerid, mapX[playerid], mapY[playerid], 0.0);
SetPlayerPos(playerid,mapX[playerid], mapY[playerid], -70.0);
}
else if(lr < 0)
{
mapX[playerid] -= 10.0;
SetPlayerCameraPos(playerid, mapX[playerid], mapY[playerid], mapZ[playerid]);
SetPlayerCameraLookAt(playerid, mapX[playerid], mapY[playerid], 0.0);
SetPlayerPos(playerid,mapX[playerid], mapY[playerid], -70.0);
return 1;
}
}
return 1;
}
public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
{
if(GetPVarInt(playerid, "MapStarted") == 1)
{
if(newkeys & KEY_SPRINT) // +
{
mapZ[playerid] += 10.0;
SetPlayerCameraPos(playerid, mapX[playerid], mapY[playerid], mapZ[playerid]);
SetPlayerCameraLookAt(playerid, mapX[playerid], mapY[playerid], 0.0);
}
else if(newkeys & KEY_CROUCH) // -
{
mapZ[playerid] -= 10.0;
SetPlayerCameraPos(playerid, mapX[playerid], mapY[playerid], mapZ[playerid]);
SetPlayerCameraLookAt(playerid, mapX[playerid], mapY[playerid], 0.0);
return 1;
}
}
return 1;
}
Howbeit, nice FS, I remember doing another camera view the player as a gta1-2, and your work will look great in an observatory (as in GTA United).
Re: [FS]BirdView (NEW-More functions.) -
Ironboy - 23.09.2011
Its like Cam hack and easy to take videos and all.Anyway nice work dude
Re: [FS]BirdView (NEW-More functions.) -
iPLEOMAX - 23.09.2011
Nice work
Re: [FS]BirdView (NEW-More functions.) -
Gamer_Z - 23.09.2011
WTF 6 MB?..
Why do you include a stupid song?
Re: [FS]BirdView (NEW-More functions.) -
Lorenc_ - 23.09.2011
Quote:
Originally Posted by Gamer_Z
WTF 6 MB?..
Why do you include a stupid song?
|
You get paid for having a rather large file size once you've uploaded something. That's what megaupload does afaik.
Re: [FS]BirdView (NEW-More functions.) -
_ELIX_ - 23.09.2011
hey man
it's cool
Re: [FS]BirdView (NEW-More functions.) -
IstuntmanI - 23.09.2011
Easy and nice.
Re: [FS]BirdView (NEW-More functions.) -
[DOG]irinel1996 - 23.09.2011
Quote:
Originally Posted by Lorenc_
You get paid for having a rather large file size once you've uploaded something. That's what megaupload does afaik.
|
That's right.
_______________
Sorry Gamer_Z.
Re: [FS]BirdView (NEW-More functions.) -
davve95 - 23.09.2011
Cool! Good job!
Re: [FS]BirdView (NEW-More functions.) -
Gamer_Z - 23.09.2011
Quote:
Originally Posted by Lorenc_
You get paid for having a rather large file size once you've uploaded something. That's what megaupload does afaik.
|
Well if someone wants to earn money he should get a better way... Get A Job like me... and I'm only 16! And Yes, I am on a school and I still have some spare time.
Re : Re: [FS]BirdView (NEW-More functions.) -
Naruto_Emilio - 23.09.2011
Quote:
Originally Posted by Gamer_Z
Well if someone wants to earn money he should get a better way... Get A Job like me... and I'm only 16! And Yes, I am on a school and I still have some spare time.
|
The problem is on my country, People who doesn't have 18 years old can't work, it's illegal...., And you can't even work in Mc Donald or something similar... so the fuck.
Re: [FS]BirdView (NEW-More functions.) -
[DOG]irinel1996 - 23.09.2011
Quote:
Originally Posted by Gamer_Z
Well if someone wants to earn money he should get a better way... Get A Job like me... and I'm only 16! And Yes, I am on a school and I still have some spare time.
|
I'm studying drama, I have a few years. And I'm 15. This is like a goal, so I wouldn't get bored. And I live in Spain, no in Netherlands.
Re: Re : Re: [FS]BirdView (NEW-More functions.) -
Gamer_Z - 23.09.2011
Quote:
Originally Posted by Naruto_Emilio
The problem is on my country, People who doesn't have 18 years old can't work, it's illegal...., And you can't even work in Mc Donald or something similar... so the fuck.
|
Well I earned money by helping people in my neightbourhood...
Re: [FS]BirdView (NEW-More functions.) -
[DOG]irinel1996 - 24.09.2011
Quote:
Originally Posted by OKStyle
Sorry, but I've made a more-rational option...
pawn Код:
#include <a_samp> // [FS] BirdView by Mach97 & irinel1996 new Float:mapX[MAX_PLAYERS], Float:mapY[MAX_PLAYERS], Float:mapZ[MAX_PLAYERS]; public OnPlayerCommandText(playerid, cmdtext[]) { if(strcmp(cmdtext, "/mapon", true, 6) == 0) { SetPVarInt(playerid, "MapStarted", 1); TogglePlayerControllable(playerid, 0); new Float:x, Float:y, Float:z; mapX[playerid] = x; mapY[playerid] = y; mapZ[playerid] = z + 340.0; SetPlayerCameraPos(playerid, mapX[playerid], mapY[playerid], mapZ[playerid]); SetPlayerCameraLookAt(playerid, mapX[playerid], mapY[playerid], 0.0); return 1; } if(strcmp(cmdtext, "/mapoff", true, 7) == 0) { SetPVarInt(playerid, "MapStarted", 0); TogglePlayerControllable(playerid, 1); SetCameraBehindPlayer(playerid); return 1; } return 0; } public OnPlayerUpdate(playerid) { if(GetPVarInt(playerid, "MapStarted") == 1) { new o, ud, lr; GetPlayerKeys(playerid, o, ud, lr);
if(ud > 0) { mapY[playerid] -= 10.0; SetPlayerCameraPos(playerid, mapX[playerid], mapY[playerid], mapZ[playerid]); SetPlayerCameraLookAt(playerid, mapX[playerid], mapY[playerid], 0.0); } else if(ud < 0) { mapY[playerid] += 10.0; SetPlayerCameraPos(playerid, mapX[playerid], mapY[playerid], mapZ[playerid]); SetPlayerCameraLookAt(playerid, mapX[playerid], mapY[playerid], 0.0); return 1; } if(lr > 0) { mapX[playerid] += 10.0; SetPlayerCameraPos(playerid, mapX[playerid], mapY[playerid], mapZ[playerid]); SetPlayerCameraLookAt(playerid, mapX[playerid], mapY[playerid], 0.0); } else if(lr < 0) { mapX[playerid] -= 10.0; SetPlayerCameraPos(playerid, mapX[playerid], mapY[playerid], mapZ[playerid]); SetPlayerCameraLookAt(playerid, mapX[playerid], mapY[playerid], 0.0); return 1; } } return 1; } public OnPlayerKeyStateChange(playerid, newkeys, oldkeys) { if(GetPVarInt(playerid, "MapStarted") == 1) { if(newkeys & KEY_SPRINT) // + { mapZ[playerid] += 10.0; SetPlayerCameraPos(playerid, mapX[playerid], mapY[playerid], mapZ[playerid]); SetPlayerCameraLookAt(playerid, mapX[playerid], mapY[playerid], 0.0); } else if(newkeys & KEY_CROUCH) // - { mapZ[playerid] -= 10.0; SetPlayerCameraPos(playerid, mapX[playerid], mapY[playerid], mapZ[playerid]); SetPlayerCameraLookAt(playerid, mapX[playerid], mapY[playerid], 0.0); return 1; } } return 1; }
Howbeit, nice FS, I remember doing another camera view the player as a gta1-2, and your work will look great in an observatory (as in GTA United).
|
PVars are not necessarily in this case. They use a lot of resources. Is better a normal variable.
Re: [FS]BirdView (NEW-More functions.) -
OKStyle - 24.09.2011
Quote:
Originally Posted by irinel1996
PVars are not necessarily in this case. They use a lot of resources. Is better a normal variable.
|
LOL, 1 parametr? Don't kidding me..
Btw, when a player in map view, the other players can see it ... How do we make sure that does not see it? Maybe it is better for the earth TP (-50 under career)? Since in another virtual world, he sees no cars, no players.
I'm tested it,
-70.0 - best solution. And, with MapAndreas plugin we can do:
pawn Код:
new Float:x, Float:y, Float:z;
GetPlayerPos(playerid, x, y, z);
MapAndreas_FindZ_For2DCoord(x, y, z);
SetPlayerPos(mapX[playerid], mapY[playerid], z - 2.0);