ok i need help... i want to make it so when you use the key ctrl m it will send the message to all players...
This code works but i need it to only work if client is admin.
moveMap.bind(keyboard, "ctrl m", buttonA);
function buttonA(%val)
{
if (%val)
{
messageAll('',$Messages::2);
}
}
but for some reason this code doesn't work...
moveMap.bind(keyboard, "ctrl m", buttonA);
function buttonA(%val)
{
if (%val && %Client.isAdmin)
{
messageAll('',$Messages::2);
}
}