[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
#2

oh nice lol ill use it xD
Reply
#3

This is creative xDDDDDDDDD
Definetly gonna use
Reply
#4

Nice...
Reply
#5

Well done!

+1 rep
Reply
#6

nice work.....
+repped
Reply
#7

Hey can i add it in my fs please ?
Reply
#8

nice one, gonna use it in my script
Reply
#9

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

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
Reply
#11

Nice Job,Keep it up
Reply
#12

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

It\'s very useful for RP servers.
Reply
#14

Great one,Dude.
Reply
#15

Wow, nice one (idea).
Reply
#16

Wow

Cool idea , keep it up

REP+
Reply
#17

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

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
Reply
#19

Good work, I will use this. Congrulations
Reply
#20

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
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)