Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function lockPlayer(%name)
- {
- for(%i=0;%i<serverConnection.getCount();%i++)
- {
- %o=serverConnection.getObject(%i);
- if(%o.getClassname()$="Player")
- {
- if(striPos(%o.getShapeName(),%name) >= 0)
- {
- ClientAim_Lock();
- $ClientAim::Object = %o;
- return;
- }
- }
- }
- }
- NPL_List.altCommand = "doPLLock();";
- function doPLLock()
- {
- %text = NPL_List.getRowText(NPL_List.getSelectedRow());
- %name = getField(%text,2);
- lockPlayer(%name);
- }
Add Comment
Please, Sign In to add comment