Raised This Month: $ Target: $400
 0% 

models & Glow


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
zombieplague
Veteran Member
Join Date: Apr 2009
Old 11-20-2010 , 00:26   Re: models & Glow
Reply With Quote #8

Quote:
Originally Posted by Exolent[jNr] View Post
cs_get_user_model() gives a string representation of the player's model.

You have to use equali() to compare the string.

Code:
new szModel[ 32 ];
cs_get_user_model( iPlayer, szModel, charsmax( szModel ) );

if( equal( szModel, "model name") ) { // player has "model name" model }



You don't need xs to check that color.
It really just does this:
Code:
if( vecGlowColors[ 0 ] == 0.0 && vecGlowColors[ 1 ] == 0.0 && vecGlowColors[ 2 ] == 255.0 ) { // blue glow }
so what if it has more than 1 model listed ? like SAS, JILL, BOXER ?

just put without the .mdl ?

another question if i have a model menu.

when someone chooses sas then how to make it next round then change into sas rather than changing to sas right away.

Last edited by zombieplague; 11-20-2010 at 00:43.
zombieplague 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 11:16.


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