Raised This Month: $ Target: $400
 0% 

getting a model


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Sp4rt4n
Senior Member
Join Date: Dec 2004
Old 03-03-2005 , 17:45   getting a model
Reply With Quote #1

how would you get a clients model?


like, from ts... i want to be able to find a model name as they enter the server, then if they have the specified model kick them
Sp4rt4n is offline
Send a message via MSN to Sp4rt4n
XxAvalanchexX
Veteran Member
Join Date: Oct 2004
Location: abort73.com
Old 03-03-2005 , 18:09  
Reply With Quote #2

Code:
new model[32]; get_user_info(id,"model",model,31);
__________________
No longer around. Thanks your support, everyone! As always:
THIS ONES FOR YOU
3000 PTS
XxAvalanchexX is offline
Sp4rt4n
Senior Member
Join Date: Dec 2004
Old 03-03-2005 , 18:20  
Reply With Quote #3

<3 thanks
Sp4rt4n is offline
Send a message via MSN to Sp4rt4n
Sp4rt4n
Senior Member
Join Date: Dec 2004
Old 03-03-2005 , 18:28  
Reply With Quote #4

another quick question

this would be right, correct?

Code:
if (model == xmodel)

or would it be this?

Code:
if (model = xmodel)
Sp4rt4n is offline
Send a message via MSN to Sp4rt4n
TotalNoobScripter
Senior Member
Join Date: Aug 2004
Old 03-03-2005 , 18:30  
Reply With Quote #5

no no no alex...

Code:
if (equali(model,"omgwtfbbq") ) {

In TS, i believe "model" does not require the *.mdl extension; however, im not sure if get_user_info would return it with *.mdl.
TotalNoobScripter is offline
Send a message via AIM to TotalNoobScripter
Twilight Suzuka
bad
Join Date: Jul 2004
Location: CS lab
Old 03-03-2005 , 18:39  
Reply With Quote #6

Quote:
Originally Posted by Sp4rt4n
another quick question

this would be right, correct?

Code:
if (model == xmodel)

or would it be this?

Code:
if (model = xmodel)
Quick lesson:
==: integers
&: bytes
equali: strings
floatcmp: floats
__________________
Twilight Suzuka is offline
Send a message via AIM to Twilight Suzuka Send a message via MSN to Twilight Suzuka
Sp4rt4n
Senior Member
Join Date: Dec 2004
Old 03-03-2005 , 18:41  
Reply With Quote #7

so if i understand you guys, it should be

Code:
if (model = xmodel)

correct?
Sp4rt4n is offline
Send a message via MSN to Sp4rt4n
TotalNoobScripter
Senior Member
Join Date: Aug 2004
Old 03-03-2005 , 18:42  
Reply With Quote #8

OH EM GEE!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! RTFMPBTS (Read the f***in mad post by twilight suzuka, also read my post.)
TotalNoobScripter is offline
Send a message via AIM to TotalNoobScripter
Sp4rt4n
Senior Member
Join Date: Dec 2004
Old 03-03-2005 , 18:45  
Reply With Quote #9

erm... OH!

ok, sorry... i thought sazuka was contradicting you...

i get it now... thanks
Sp4rt4n is offline
Send a message via MSN to Sp4rt4n
TotalNoobScripter
Senior Member
Join Date: Aug 2004
Old 03-03-2005 , 18:46  
Reply With Quote #10

TotalNoobScripter is offline
Send a message via AIM to TotalNoobScripter
Reply



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 14:14.


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