Jump to content

Question

Posted

Salut all.

Am auzit de codul care iti numara comenzile facute cu ZCMD.

Exista vreun cod sa numere comenzile facute cu strcmp?

u78ch.jpg

CHECK MY CHANNEL!

http://www.youtube.com/user/amysoica

2 answers to this question

Recommended Posts

Posted

Da, uite functia: (o am de la Zh3r0)

[pawn]stock CountZCMDCmds()

{

new cmdBuffer[32], commandCount;

for(new it = 0; it < Scripting_GetPublicsCount(); it++)

{

Scripting_GetPublic(it, cmdBuffer);

if(!strcmp(cmdBuffer, "cmd_", false, 4)) { commandCount++; }

}

return commandCount;

}[/pawn]

Si cam asa ai putea s-o folosesti sub OnGameModeInit:

[pawn]printf( "ZCMD Commands: %d", CountZCMDCmds() );[/pawn]

Guest
This topic is now closed to further replies.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more details you can also review our Terms of Use and Privacy Policy.