Raised This Month: $ Target: $400
 0% 

surf_ski_2: Jail remover & Angles Fixer


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
anakin_cstrike
Veteran Member
Join Date: Nov 2007
Location: Romania
Old 05-11-2009 , 14:49   Re: surf_ski_2: Jail remover & Angles Fixer
Reply With Quote #9

You're making this in every if statement:
Code:
set_pev( iEntity, pev_classname, "info_teleport_destination" );

so making it once would be enough and better.
And I'll do something like this:
Code:
if( equal( szTargetname, "outs" ) )     copy(value, charsmax(value), "0 270 0" ); else if( equal( szTargetname, "top1" ) )         copy(value, charsmax(value), "0 270 0" ); DispatchKeyValue( iEntity, "angles", value);

Or
Code:
new g_TargetName[ ][ ] = { "outs", "top1" }; new g_Values[ ][ ] = { "0 270 0", "0 270 0" }; // ... for ( new i; i < sizeof g_TargetName; i++ )     if ( equal ( szTargetname, g_TargetName[ i ] ) )         DispatchKeyValue( iEntity, "angles", g_Values[ i ] );
__________________


Last edited by anakin_cstrike; 05-11-2009 at 14:53.
anakin_cstrike is offline
 



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 23:51.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode