Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- main()
- {
- #define TEAM_CIVILIANS (0)
- #define TEAM_COPS (1)
- #define ITERATIONS (100000)
- new
- StartTick[ 3 ],
- i = -1,
- x = -1;
- StartTick[ 0 ] = GetTickCount( );
- while( ++i < ITERATIONS )
- {
- new GetSkinSteam_ = GetPlayerSkin( i );
- switch( GetSkinTeam( GetSkinSteam_ ) )
- {
- case TEAM_CIVILIANS:
- {
- SendClientMessage( i, -1, "You are a civilian. You can rob banks and other buildings." );
- }
- case TEAM_COPS:
- {
- SendClientMessage( i, -1, "You are a cop. Go and arrest robbers" );
- }
- }
- }
- StartTick[ 1 ] = GetTickCount( );
- while( ++x < ITERATIONS )
- {
- new GetSkinSteam_ = GetPlayerSkin( x );
- switch( GetPlayerSkin( GetSkinSteam_ ) )
- {
- case 264, 211, 217, 204, 187, 26, 81, 23, 82, 77, 66, 30, 29, 249, 224, 181, 195, 194, 198, 33, 197, 251:
- {
- SendClientMessage( x, -1, "You are a civilian.You can rob banks and other buildings." );
- }
- case 280 .. 285:
- {
- SendClientMessage( x, -1, "You are a cop.Go and arrest robbers" );
- }
- }
- }
- StartTick[2] = GetTickCount();
- printf("With xskins.inc took %i ms", ( StartTick[ 1 ] - StartTick[ 0 ] ) );
- return printf("Without xskins.inc took %i ms", ( StartTick[ 2 ] - StartTick[ 1 ] ) );
- }
Advertisement
Add Comment
Please, Sign In to add comment