[FilterScript] Flashlight
#1

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
Reply


Messages In This Thread
Flashlight - by redreaper666 - 14.08.2013, 09:51
Re: Flashlight - by dEcooR - 14.08.2013, 09:57
Re: Flashlight - by BodyBoardVEVO - 14.08.2013, 10:01
Re: Flashlight - by JusstinRoller - 14.08.2013, 10:37
Re: Flashlight - by jakejohnsonusa - 14.08.2013, 16:18
Re: Flashlight - by kN1GhT - 14.08.2013, 20:03
Re : Flashlight - by 1Geek - 14.08.2013, 20:09
Re: Flashlight - by verlaj - 15.08.2013, 06:29
Re: Flashlight - by Horrible - 15.08.2013, 07:32
Re: Flashlight - by redreaper666 - 15.08.2013, 07:43
Re: Flashlight - by Nofear192 - 15.08.2013, 08:04
Re: Flashlight - by Micsi - 15.08.2013, 08:45
Re: Flashlight - by Micsi - 18.08.2013, 15:04
Re: Flashlight - by Inn0cent - 18.08.2013, 16:09
Re: Flashlight - by x96664 - 18.08.2013, 19:17
Re: Flashlight - by Mark_Samp - 18.08.2013, 19:27
Re: Flashlight - by McBan - 18.08.2013, 20:14
Re : Re: Flashlight - by 1Geek - 18.08.2013, 20:54
Respuesta: Flashlight - by adri1 - 18.08.2013, 21:26
Re: Flashlight - by redreaper666 - 19.08.2013, 08:14
Re: Flashlight - by DuongNghia - 16.10.2013, 12:11

Forum Jump:


Users browsing this thread: 2 Guest(s)