Advertisement
Lorenc

Print all ZCMD commands

Jan 27th, 2012
923
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Pawn 0.54 KB | None | 0 0
  1. #include                < a_samp >
  2. #include                                < YSI/y_scripting >
  3. #include                                < zcmd >
  4.  
  5. stock printAllZCMDCommands( )
  6. {
  7.     static
  8.         szBuffer[ 1024 ],
  9.         szPublic[ 32 ],
  10.         iCount
  11.     ;
  12.  
  13.     if( !szBuffer[ 0 ] )
  14.     {
  15.         while( ( iCount = Scripting_GetPublicFast( iCount, szPublic, ( Scripting_FastString('c', 'm', 'd', '_') ) ) ) )
  16.         {
  17.             format( szBuffer, sizeof( szBuffer ), "%s/%s\n", szBuffer, szPublic[ 4 ] );
  18.         }
  19.     }
  20.     return szBuffer;
  21. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement