rsslaserpointer (laserpointer)
Category: | script |
---|---|
Author(s): | vick |
Downloads: | 10346 |
Rate: | You need to be logged in to vote |
Rating: | 3.7 (32 Votes) |
Description:
laserpointer 1.0.0
by vick.
synced laser sights for guns
can change color. works with my colorpicker resource http://community.mtasa.com/index.html?p=resources&s=de..mp;id=639) or without.
commands:
/laser - toggles laser on/off
/lasercolor [r g b a] or without params if colorpicker is running
Player Element Data -- changing these to an invalid value can break this script
"laser.on" -- tells you player has turned laser on
"laser.aim" -- tells you player is aiming and laser is drawn
"laser.red", "laser.green", "laser.blue", "laser.alpha"
Exported Functions: (server and clientside)
-these mainly just change element data so they aren't necessary... but could be easier for some.
SetLaserEnabled(player, state) -- (element:player, bool:state) -- returns false if invalid params, true otherwise
IsLaserEnabled(player) -- (element:player) -- returns true or false
SetLaserColor(player, r,g,b,a) -- (element:player, int:r, int:g, int:b, int:a) -- returns true
GetLaserColor(player) -- (element:player) -- returns r,g,b,a (int:) or false but shouldnt happen.
IsPlayerWeaponValidForLaser(player) -- (element:player) -- returns true or false
*** lasers enabled for all players when resource starts. to change this look at event "onClientResourceStart" and change the true to false in SetLaserEnabled()...
(more)
by vick.
synced laser sights for guns
can change color. works with my colorpicker resource http://community.mtasa.com/index.html?p=resources&s=de..mp;id=639) or without.
commands:
/laser - toggles laser on/off
/lasercolor [r g b a] or without params if colorpicker is running
Player Element Data -- changing these to an invalid value can break this script
"laser.on" -- tells you player has turned laser on
"laser.aim" -- tells you player is aiming and laser is drawn
"laser.red", "laser.green", "laser.blue", "laser.alpha"
Exported Functions: (server and clientside)
-these mainly just change element data so they aren't necessary... but could be easier for some.
SetLaserEnabled(player, state) -- (element:player, bool:state) -- returns false if invalid params, true otherwise
IsLaserEnabled(player) -- (element:player) -- returns true or false
SetLaserColor(player, r,g,b,a) -- (element:player, int:r, int:g, int:b, int:a) -- returns true
GetLaserColor(player) -- (element:player) -- returns r,g,b,a (int:) or false but shouldnt happen.
IsPlayerWeaponValidForLaser(player) -- (element:player) -- returns true or false
*** lasers enabled for all players when resource starts. to change this look at event "onClientResourceStart" and change the true to false in SetLaserEnabled()...
(more)
Version history
Version | Publish Date | Changes | |
---|---|---|---|
1.0.0 | 2010-03-28 07:53:29 | First public release | Download |