Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @name Target Finder
- @persist Target:entity
- @trigger all
- ######################
- ## MADE BY REBITAAY ##
- ######################
- #Dumb shit
- runOnTick(1)
- runOnChat(1)
- #Secutity
- if(duped()){selfDestructAll()}
- if(first()) {
- entity():propNotSolid(1)
- entity():setAlpha(0)
- }
- #Get that motherfucka
- if (chatClk(owner())) {
- Cmd = owner():lastSaid():explode(" "):string(1)
- Name = owner():lastSaid():explode(" "):string(2)
- if (Cmd == "-t") {
- if (Name) {
- Target = findPlayerByName(Name)
- if (Target) {
- timer("Target", 1)
- hint("Target aquired, locking on!",6)
- }
- else {hint("ERROR: Could not locate target!",6)}
- }
- }
- }
- #If you got that motherfucka
- if (clk("Target")) {
- holoCreate(1)
- holoModel(1,"hq_cube")
- holoScale(1,vec(1,1,30))
- holoColor(1,vec(255,0,0))
- holoMaterial(1,"models/debug/debugwhite")
- holoParent(1,Target)
- holoPos(1,Target:pos() + vec(0,0,250))
- holoVisible(1,Target,0)
- }
- #When you don't need no motherfucka
- if (chatClk(owner())) {
- Cmd = owner():lastSaid():explode(" "):string(1)
- if (Cmd == "-clear") {
- holoDelete(1)
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement