• Welcome to Vice City Multiplayer.
 

Computer Information Script

Started by Tommis, June 12, 2007, 05:56:44 AM

Previous topic - Next topic

0 Members and 5 Guests are viewing this topic.

Tommis

Hey,

Lets make this the first script to show off, yea! Even though the dll was not made by me..hm.

Alias Code -


alias vcmp.cpu {
  var %ram = $round($calc($dll(ProcInfo.dll,GetRam,memory) / 1023),0), %ramfree = $round($calc($dll(ProcInfo.dll,GetRam,memoryavail) / 1023),0), %ram.p $dll(ProcInfo.dll,GetRam,p100use), %ram.pfree $dll(ProcInfo.dll,GetRam,p100avail)
  var %ut.mir = $duration($calc($uptime(mirc)/1000),2), %ut.ser = $duration($calc($uptime(server)/1000),2), %ut.sys = $duration($calc($uptime(system)/1000),2)
  var %cpu.proc = $dll(ProcInfo.dll,GetCpu,.), %cpu.mnu = $dll(ProcInfo.dll,GetCpuVendor,.) %cpu.speed = $dll(ProcInfo.dll,GetCpuSpeed,mhz), %cpu.use = $dll(ProcInfo.dll,GetCpuUsage,.)
  vcmp.say Ram - Totall: %ram $+ MB $+ , Free: %ramfree $+ MB $+ , Free: %ram.pfree $+ %
  vcmp.say Uptime - mIRC: %ut.mir $+ , System: %ut.sys
  vcmp.say CPU - Type: $gettok(%cpu.mnu,1,32) $+ , Speed: $round($calc($gettok(%cpu.mnu,3,32) / 1000),2) $+ GHz $+ , Usage: %ram.p $+ %
}


Command Code -


  elseif (!comp* iswm $2) || (!pmcomp* iswm $2) {
    if (%timer.status) vcmp.say Error - This Command can only be used Once every 2 Seconds
    else {
      vcmp.cpu
      set %timer.status 1
      !timer 1 2 unset %timer.status
    }
  }


Uses the Procinfo.dll, you can download from mircscripts.org i believe it is

Cya,
Tommis

adamale

Tbh it's useless :P But anyway you and Vrocker did a really good job.

Thanks :)

Vecis

good, but PAWN is easier :/ anyway, good job ;)

Winky

PAWN easy?

I like the mIRC language

VercettiG

Depends on the complexity of the mIRC script. :P

Tommis

Hey,

Its not really useless, you can use this script for many others things.. =p (Atleast the dll and the alias)

Cya,
Tommis

kenny01

Quote from: Vecis on June 12, 2007, 02:42:20 PM
good, but PAWN is easier :/ anyway, good job ;)
I don't think PAWNO is easier. I think you just don't know mIRC scripting.

adamale

Yeah, Pawn is more complicated language than mIRC Scripting.

In my opinion Pawn is harder to learn and to understand.

Pixels^

It's different for everybody. I myself find Pawn easy and mIRC hard. I find C# easy and C++ hard. It's just how your brain wants to work with different languages.

Aaron

Where can I find a  PAWN tutorial..?



weedarr

hey i play sa-mp and i script using pawno and once you learn a few things other things are easy but im going to give vc-mp and mIRC scripting a try.

WeeDarr

Punjabi

Thanks i need this actually i am modifying GUS and WSV..... :-*
GOD BLESS ALL..<<Founder of PUN Clan.....Born to fight and Kill..>>

gamyster

Founder of [SAF]Clan