Author Topic: Making a command but it's not working!  (Read 510 times)

I'm making a /warn cmd for admins but for some reason the code's not working, could somebody help me please?

Code: [Select]
package WarnCmd {

function serverCmdWarn(%client,%t,%m) {

if(%client.isSuperAdmin || %client.isAdmin) {

messageClient(%t,'',"\c0Warning from \c3"@%client.name@"\c6:\c0 "@strReplace(%m,"_"," ")); }
}
};
activatePackage(WarnCmd);

Code: [Select]
function serverCmdWarn(%client,%t,%m) {
   if(%client.isSuperAdmin || %client.isAdmin) {
      %per = findclientbyname(%t);
      messageClient(%per,'',"\c0Warning from \c3"@ %client.name @"\c6:\c0 "@ %m);
   }
}

Code: [Select]
function serverCmdWarn(%client,%t,%m) {
   if(%client.isSuperAdmin || %client.isAdmin) {
      %per = findclientbyname(%t);
      messageClient(%per,'',"\c0Warning from \c3"@ %client.name @"\c6:\c0 "@ %m);
   }
}

Thanks, it works perfectly now!