Guest User

Untitled

a guest
Jan 25th, 2014
213
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Pawn 1.34 KB | None | 0 0
  1. main()
  2. {
  3.     #define TEAM_CIVILIANS (0)
  4.     #define TEAM_COPS (1)
  5.     #define ITERATIONS (100000)
  6.  
  7.     new
  8.         StartTick[ 3 ],
  9.         i = -1,
  10.         x = -1;
  11.  
  12.     StartTick[ 0 ] = GetTickCount( );
  13.     while( ++i < ITERATIONS )
  14.     {
  15.         new GetSkinSteam_ = GetPlayerSkin( i );
  16.  
  17.         switch( GetSkinTeam( GetSkinSteam_ ) )
  18.         {
  19.              case TEAM_CIVILIANS:
  20.              {
  21.                     SendClientMessage( i, -1, "You are a civilian. You can rob banks and other buildings." );
  22.              }
  23.              case TEAM_COPS:
  24.              {
  25.                     SendClientMessage( i, -1, "You are a cop. Go and arrest robbers" );
  26.              }
  27.         }
  28.     }
  29.     StartTick[ 1 ] = GetTickCount( );
  30.     while( ++x < ITERATIONS )
  31.     {
  32.         new GetSkinSteam_ = GetPlayerSkin( x );
  33.         switch( GetPlayerSkin( GetSkinSteam_ ) )
  34.         {
  35.             case 264, 211, 217, 204, 187, 26, 81, 23, 82, 77, 66, 30, 29, 249, 224, 181, 195, 194, 198, 33, 197, 251:
  36.             {
  37.                 SendClientMessage( x, -1, "You are a civilian.You can rob banks and other buildings." );
  38.             }
  39.             case 280 .. 285:
  40.             {
  41.                 SendClientMessage( x, -1, "You are a cop.Go and arrest robbers" );
  42.             }
  43.         }
  44.     }
  45.     StartTick[2] = GetTickCount();
  46.     printf("With xskins.inc took %i ms", ( StartTick[ 1 ] - StartTick[ 0 ] ) );
  47.     return printf("Without xskins.inc took %i ms", ( StartTick[ 2 ] - StartTick[ 1 ] ) );
  48. }
Advertisement
Add Comment
Please, Sign In to add comment