07.07.2012, 10:06
(
Последний раз редактировалось Lorenc_; 07.07.2012 в 12:33.
)
edit: shit I just realized I double posted
pawn Код:
#include < YSI\y_scripting >
stock debugAllZCMDCommands( playerid, szAdditionParam[ ] = "500" ) // The first parameter will be 500 e.g /kick 500
{
static
szPublic[ 32 ],
iCount
;
while( ( iCount = Scripting_GetPublicFast( iCount, szPublic, ( Scripting_FastString('c', 'm', 'd', '_') ) ) ) )
{
if( !strcmp( szPublic, "cmd_testallcmds", true ) ) continue; // The command that you're placing this function in (so it doesn't repeat...)
printf( "%s", szPublic );
CallLocalFunction( szPublic, "ds", playerid, szAdditionParam );
}
// If your server crashes, then the last command called is the problem
return 1;
}