SA-MP Forums Archive
[FilterScript] Flashlight - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Filterscripts (https://sampforum.blast.hk/forumdisplay.php?fid=17)
+--- Thread: [FilterScript] Flashlight (/showthread.php?tid=457967)

Pages: 1 2


Flashlight - redreaper666 - 14.08.2013

Hey Guys i had an little idea of making an flashlight attached to the player though i didnt really made a whole script.
Since i hadnt found an attachment like this on the forum im about to share it with you:
Code:
#include <a_samp>
#include <zcmd>
//------------------------Flashlight by Redreaper666----------------------------
CMD:flashlight1(playerid)
{
if(IsPlayerAttachedObjectSlotUsed(playerid,1)) RemovePlayerAttachedObject(playerid,1);
if(IsPlayerAttachedObjectSlotUsed(playerid,2)) RemovePlayerAttachedObject(playerid,2);
SetPlayerAttachedObject(playerid, 1,18656, 5, 0.1, 0.038, -0.1, -90, 180, 0, 0.03, 0.03, 0.03);
SetPlayerAttachedObject(playerid, 2,18641, 5, 0.1, 0.02, -0.05, 0, 0, 0, 1, 1, 1);
return 1;
}
CMD:flashlight2(playerid)
{
if(IsPlayerAttachedObjectSlotUsed(playerid,1)) RemovePlayerAttachedObject(playerid,1);
if(IsPlayerAttachedObjectSlotUsed(playerid,2)) RemovePlayerAttachedObject(playerid,2);
SetPlayerAttachedObject(playerid, 1,18656, 5, 0.1, 0.038, -0.01, -90, 180, 0, 0.03, 0.1, 0.03);
SetPlayerAttachedObject(playerid, 2,18641, 5, 0.1, 0.02, -0.05, 0, 0, 0, 1, 1, 1);
return 1;
}
CMD:flashlight3(playerid)
{
if(IsPlayerAttachedObjectSlotUsed(playerid,1)) RemovePlayerAttachedObject(playerid,1);
if(IsPlayerAttachedObjectSlotUsed(playerid,2)) RemovePlayerAttachedObject(playerid,2);
SetPlayerAttachedObject(playerid, 1,18656, 6, 0.25, -0.0155, 0.16, 86.5, -185, 86.5, 0.03, 0.03, 0.03);//light18656
SetPlayerAttachedObject(playerid, 2,18641, 6, 0.2, 0.01, 0.16, 90, -95, 90, 1, 1, 1);
return 1;
}
CMD:flashlight4(playerid)
{
if(IsPlayerAttachedObjectSlotUsed(playerid,1)) RemovePlayerAttachedObject(playerid,1);
if(IsPlayerAttachedObjectSlotUsed(playerid,2)) RemovePlayerAttachedObject(playerid,2);
SetPlayerAttachedObject(playerid, 1,18656, 6, 0.16, -0.0155, 0.16, 86.5, -185, 86.5, 0.03, 0.1, 0.03);//light18656
SetPlayerAttachedObject(playerid, 2,18641, 6, 0.2, 0.01, 0.16, 90, -95, 90, 1, 1, 1);
return 1;
}
Pictures:


As Handlight 1/2


As Tactical Light for M4 & AK47 3/4

Feel free to use the attachment i dont care about the credits


Re: Flashlight - dEcooR - 14.08.2013

oh nice lol ill use it xD


Re: Flashlight - BodyBoardVEVO - 14.08.2013

This is creative xDDDDDDDDD
Definetly gonna use


Re: Flashlight - JusstinRoller - 14.08.2013

Nice...


Re: Flashlight - jakejohnsonusa - 14.08.2013

Well done!

+1 rep


Re: Flashlight - kN1GhT - 14.08.2013

nice work.....
+repped


Re : Flashlight - 1Geek - 14.08.2013

Hey can i add it in my fs please ?


Re: Flashlight - verlaj - 15.08.2013

nice one, gonna use it in my script


Re: Flashlight - Horrible - 15.08.2013

lol it's look like light saber, but nice job !


Re: Flashlight - redreaper666 - 15.08.2013

Quote:
Originally Posted by Horrible
View Post
lol it's look like light saber, but nice job !
Yea i know but you can make it also static by changing the bone to 1 and relocate the objects


Re: Flashlight - Nofear192 - 15.08.2013

Nice Job,Keep it up


Re: Flashlight - Micsi - 15.08.2013

It\'s owsome! I\'m now use this and.. very good job


Re: Flashlight - Micsi - 18.08.2013

It\'s very useful for RP servers.


Re: Flashlight - Inn0cent - 18.08.2013

Great one,Dude.


Re: Flashlight - x96664 - 18.08.2013

Wow, nice one (idea).


Re: Flashlight - Mark_Samp - 18.08.2013

Wow

Cool idea , keep it up

REP+


Re: Flashlight - McBan - 18.08.2013

Epic, I\'m gonna edit this to put it onto a M4 for my swat division lol


Re : Re: Flashlight - 1Geek - 18.08.2013

Quote:
Originally Posted by McBan
View Post
Epic, I\'m gonna edit this to put it onto a M4 for my swat division lol
wow can you pm me when you have finished i want to have this too pleasse guy


Respuesta: Flashlight - adri1 - 18.08.2013

Good work, I will use this. Congrulations


Re: Flashlight - redreaper666 - 19.08.2013

thanks to all of you.

Hadnt known that you are that interested in easy stuff


and Adri1 i really would like to work together with you on an mta dm race ingame map editor for samp since your other map editor releases are awesome


EDIT:added Tactical Lights for M4 & AK47