Author Topic: executing by command  (Read 734 times)

how would you execute a script in the addons folder by a command like /fire ?

Code: [Select]
function serverCmdFire(%client){
   if(%client.isSuperAdmin)
      return;
   exec("Add-Ons/file.cs");
}

Code: [Select]
function serverCmdFire(%client){
   if(%client.isSuperAdmin)
      return;
   exec("Add-Ons/file.cs");
}

where would i put this?

Make a new .cs file in Add-Ons.

Also, you need to change "Add-Ons/file.cs" inside the script to the file you want to be executed.