05.01.2010, 00:03
Incognito, I just finally got this in action, very nice. I have a question though, in the command system how can I call a command directly. What I want to do is have some command shortcuts. Instead of having to type !broadcast the user could do !bc or !broadcast. In zcmd I can just return with the function call to one command instead of having to code both commands. How can I do this with the IRC commands? If I do it the same way as zcmd I get errors about not enough params.
Code Example in zcmd:
Code Example in zcmd:
pawn Код:
zcmd(broadcast, playerid, params[])
{
return zcmd_bc(playerid, params);
}
zcmd(bc, playerid, params[])
{
//executes actual command code
return 1;
}