Counting Commands
#1

Hello,
Is it possible to count all ZCMD commands?
like if i have /help /cmd /register /login command

it will print out like this

Код:
Total of Commands: 4
Reply
#2

BUMP
Reply
#3

It is scriptable, but it is a bit tricky if you have many commands
Reply
#4

so it will lag during the counting?
because i have more than 100+ commands included Admin System/VIP System/Rcon Admin/Player Commands

Actually my Gamemode (not edit made by myself)

are near to reach 7,000 lines (7k)
Reply
#5

I don't see the use in such a un-useful feature.
Reply
#6

I need it so i can count it fast instead of counting it using my eye.

Let me ask you something,
Can you count 100+ commands in just 1 minute?
Reply
#7

pawn Код:
new carcount[800];
for(new c=0;c<sizeof(Vehicles);c++) carcount[Vehicles[c][carmodel]]++;
new totalcars,totaltypes;
for(new c2=0;c2<sizeof(carcount);c2++){
    if(carcount[c2]){
        totaltypes++;
        totalcars+=carcount[c2];
    }
}
printf("Total Cars:%d - Vehicles types: %d",totalcars,totaltypes);
you can work it out to count ur accs easily
Reply
#8

I cannot work it out without explaining...
Reply
#9

I have started gm with a few commands and put them into /cmd, since when i have many commands and each time i create new one, i add it into /cmd in order not to forget
Reply
#10

Hope you understand me thats what i'm doing putting all commands to /cmds and putting admin commands to /acmds or /allacmds, also the same to VIP. but i want to count it. not so being n00b/idiot but i want to count it really.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)