ID:140058
 
Code:
mob/verb/
Ban()
var/list/p=list()
var/list/z=list()
var/list/a=list()
for(var/client/C)
p[C.ckey]=C.computer_id
z[C.ckey]=C.key
a[C.ckey]=src.name
var/P=input("Ban who's computer?","Ban Computer ID")as null|anything in p


Problem description:
a[P] returns usr.name how would i make it return the client name instead of usr.name
What's a "client name?" I'll assume you mean the name of the client's mob, rather than your own.

src is referring to the mob using the verb (as the verb belongs to it). What you want is the client's mob. The client has a variable called "mob" which refers to its... mob.

Start there.
In response to Keeth
ah i see what can be done now

 
for(var/client/C)
p[C.ckey]=C.computer_id
z[C.ckey]=C.key
a[C.ckey]=C.mob.name


ty keeth