[FilterScript] Leans Helicopter Camera Mode
#1

Just something I made, I rather keep it simpel and easy to use. This is actually very easy to script.
There is only one command; /helithermal


http://pastebin.com/TyiiiFmy


Tips and criticism on my code is always welcome!
Reply
#2

Neat work....
Reply
#3

It can be great for Roleplay servers. Good job.
Reply
#4

News helicopters! Car chases! Nice job. Rep4U.
Reply
#5

Thank you evryone for the positiv comments
Reply
#6

Neat,New,Creative
Well Done Brother;
+rep
Reply
#7

nice it looks really good
Reply
#8

You don't even destroy any objects anywhere in the code this will eventually crash all the clients.
Reply
#9

Quote:
Originally Posted by Skully82
Посмотреть сообщение
Neat,New,Creative
Well Done Brother;
+rep
Thank you! and thanks for the rep!!


Quote:
Originally Posted by Namer
Посмотреть сообщение
nice it looks really good
Thanks!


Quote:
Originally Posted by Pottus
Посмотреть сообщение
You don't even destroy any objects anywhere in the code this will eventually crash all the clients.
You might wanna take another peak at this code.

pawn Код:
public THERMALOFF(playerid)
{
                TextDrawDestroy( crosshair[playerid] ); // Destroying the crosshair
                new vehid = playerveh[playerid];
                SCM( playerid,COLOR_LIGHTRED,"NOTICE: "COL_WHITE"You have left thermal mode." );
                DeletePVar( playerid,"ThermalActive" ); // Deleting thermalactive from player
                SetCameraBehindPlayer( playerid ); // Setting the camera back to the player
                DestroyObject(objectids[vehid]); // Destroying the light from the helicopter
                return 1;
}
Reply
#10

Quote:
Originally Posted by NoSoap
View Post
That's amazing I've always wanted to have that on an RP server.

I'm assuming you can't zoom in at all? (would be nice If you could borrow the traits from the camera object to enable the zoom).

I wonder If you could add some of the drunk/drug effects to make it look a bit more 'thermally'
There is a way to zoom in but it would require the object to move in mid air wihch would look wierd for others. MoveObject

Adding setplayerdrunklevel is possible but I rather just keep it simple!

Thanks for your input anyways!
Reply
#11

Great! Keep it up!
Reply
#12

Quote:
Originally Posted by R3N3X
View Post
Great! Keep it up!
Thanks!
Reply
#13

Great work, This will be usefully for people that runs RolePlay Server.
+Reputation
Reply
#14

Quote:
Originally Posted by lean1337
Посмотреть сообщение
pawn Код:
public THERMALOFF(playerid)
{
                TextDrawDestroy( crosshair[playerid] ); // Destroying the crosshair
                new vehid = playerveh[playerid];
                SCM( playerid,COLOR_LIGHTRED,"NOTICE: "COL_WHITE"You have left thermal mode." );
                DeletePVar( playerid,"ThermalActive" ); // Deleting thermalactive from player
                SetCameraBehindPlayer( playerid ); // Setting the camera back to the player
                DestroyObject(objectids[vehid]); // Destroying the light from the helicopter
                return 1;
}
Why are you doing "new vehid = playerveh"?

You can just simply use playerveh in place of it.
Quote:
Originally Posted by Crayder
pawn Код:
public THERMALOFF(playerid)
{
                TextDrawDestroy( crosshair[playerid] ); // Destroying the crosshair
                SCM( playerid,COLOR_LIGHTRED,"NOTICE: "COL_WHITE"You have left thermal mode." );
                DeletePVar( playerid,"ThermalActive" ); // Deleting thermalactive from player
                SetCameraBehindPlayer( playerid ); // Setting the camera back to the player
                DestroyObject(objectids[playerveh[playerid]]); // Destroying the light from the helicopter
                return 1;
}
Reply
#15

Quote:
Originally Posted by Meller
View Post
Great work, This will be usefully for people that runs RolePlay Server.
+Reputation
Thank you for the rep!

Quote:
Originally Posted by Crayder
View Post
Why are you doing "new vehid = playerveh"?

You can just simply use playerveh in place of it.
DestroyObject(objectids[vehid]);
this looks much better than this

DestroyObject(objectids[playerveh[playerid]]);

atleast thats my opinion!
Reply
#16

Interesting, great job i like it + tested
Reply
#17

Quote:
Originally Posted by Alex Magaсa
View Post
Interesting, great job i like it + tested
Im really glad you liked it, I hope you enjoy it as much as I do!
Reply
#18

Quote:
Originally Posted by lean1337
View Post
DestroyObject(objectids[vehid]);
this looks much better than this

DestroyObject(objectids[playerveh[playerid]]);
atleast thats my opinion!
That's not proper, your making a new variable just to replicate one that already exists. Obvious newb stuff. But it's fine until you learn more.
Reply
#19

Quote:
Originally Posted by Crayder
View Post
That's not proper, your making a new variable just to replicate one that already exists. Obvious newb stuff. But it's fine until you learn more.


What happend?
Reply
#20

Quote:
Originally Posted by lean1337
View Post
What happend?
What happened? I looked at your code, that's what happened. I'm just trying to show you how to do that right, you said it looks better your way. Code is not supposed to just look good, it should be proper.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)