Author Topic: how do i apply commands to my gui button  (Read 243 times)

the button says kill i edited the admin window you know the one that says ban spy server controls and all that well how would i add the command so when i click a persons name and click kill it kills them what would it be not the whole findclientbyname would it or would it just be .player.kill(); or what else to i need to add

i have this from how to make a gui
Code: [Select]
exec("./Testgui.gui");
moveMap.bind(keyboard, "m", pushTestgui);

function testcommand()
{
MessageBoxOK("Thanks!","You have just pressed a button on a test GUI!");
}
i need to know how to replace
Code: [Select]
MessageBoxOK("Thanks!","You have just pressed a button on a test GUI!");with a command like jail so if i highlight there name then click the jail button they will be jailed