Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if (chatClk(owner())) { #If the E2 Owner says something in chat, proceed
- Cmd = owner():lastSaid():explode(" "):string(1) #"Cmd" is now a shortcut for the FIRST word of the owner's message
- Name = owner():lastSaid():explode(" "):string(2) #"Name" is now a shortcut for the SECOND word of the owner's message
- if (Cmd == "-t") { #If the first word was "-t", proceed
- if (Name) { #If there was a second word, proceed
- Target = findPlayerByName(Name) #Find a player by name, using the second word as the keyword
- if (Target) { #If it found a player by that name, proceed
- timer("Target", 1) #I don't remember why this was needed
- hint("Target aquired, locking on!",6) #Displays a message in bottom-right
- }
- else {hint("ERROR: Could not locate target!",6)} #If no target was found using the keyword, display error in bottom-right
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement