Raised This Month: $ Target: $400
 0% 

cs_get_user_model


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Cheap_Suit
Veteran Member
Join Date: May 2004
Old 03-27-2005 , 19:21   cs_get_user_model
Reply With Quote #1

ok i need help getting what model is the player is using
so far i got this

Code:
public check(id) { 

	new usermodel[31]
	cs_get_user_model(id, usermodel,32)

	if(containi(usermodel, "terror")) {
	
	client_print( id, print_chat, "Terror Model" )
	
	}else{
	
	client_print( id, print_chat, "Non Terror Model" )
	
	}

        return PLUGIN_HANDLED        
}
only says Non Terror Model... any help would be greatly appreciated thank you
__________________
HDD fried, failed to backup files. Sorry folks, just don't have free time anymore. This is goodbye.
Cheap_Suit is offline
v3x
Veteran Member
Join Date: Oct 2004
Location: US
Old 03-27-2005 , 19:38  
Reply With Quote #2

You did select the "terror" player from the 4, right?
__________________
What am I doing these days? Well, I run my own Rust server. It's heavily modded. If you'd like to join, the ip is 167.114.101.67:28116

I also created a website called Rust Tools. It will calculate and tell you the raw amounts of resources needed to craft items.
v3x is offline
Cheap_Suit
Veteran Member
Join Date: May 2004
Old 03-27-2005 , 19:51  
Reply With Quote #3

my bad.... god this cz skins messing me up

thank very much
__________________
HDD fried, failed to backup files. Sorry folks, just don't have free time anymore. This is goodbye.
Cheap_Suit is offline
v3x
Veteran Member
Join Date: Oct 2004
Location: US
Old 03-27-2005 , 20:37  
Reply With Quote #4

LOL, we all make little mistakes like this once in a while.
__________________
What am I doing these days? Well, I run my own Rust server. It's heavily modded. If you'd like to join, the ip is 167.114.101.67:28116

I also created a website called Rust Tools. It will calculate and tell you the raw amounts of resources needed to craft items.
v3x is offline
Cheap_Suit
Veteran Member
Join Date: May 2004
Old 03-27-2005 , 20:57  
Reply With Quote #5

Code:
public check(id) {

	new usermodel[31]
	cs_get_user_model(id, usermodel,32)

	if(containi(usermodel, "TERROR")) {

		client_print( id, print_chat, "Terror" )

		}else{

		if(containi(usermodel, "LEET")) {

			client_print( id, print_chat, "Leet" )

			}else{

			if(containi(usermodel, "ARCTIC")) {

				client_print( id, print_chat, "arctic" )

				}else{

				if(containi(usermodel, "GUERILLA")) {

					client_print( id, print_chat, "guerilla" )
				}
			}
		}
	}
	return PLUGIN_HANDLED
}
seem only works with leet, every thing else is terror
__________________
HDD fried, failed to backup files. Sorry folks, just don't have free time anymore. This is goodbye.
Cheap_Suit is offline
v3x
Veteran Member
Join Date: Oct 2004
Location: US
Old 03-27-2005 , 20:58  
Reply With Quote #6

Maybe it's cAsE-sEnSiTiVe..

Edit: Try this..
Code:
public check(id) {     new usermodel[33]     cs_get_user_model(id, usermodel,32)     usermodel[32] = strtolower(usermodel)     if(containi(usermodel, "terror")) {         client_print( id, print_chat, "Terror" )     }     else if(containi(usermodel, "leet")) {         client_print( id, print_chat, "Leet" )     }     else if(containi(usermodel, "arctic")) {         client_print( id, print_chat, "arctic" )     }     else if(containi(usermodel, "guerilla")) {         client_print( id, print_chat, "guerilla" )     }     else {         client_print( id, print_chat, "Not a terrorist")     }     return PLUGIN_HANDLED }
__________________
What am I doing these days? Well, I run my own Rust server. It's heavily modded. If you'd like to join, the ip is 167.114.101.67:28116

I also created a website called Rust Tools. It will calculate and tell you the raw amounts of resources needed to craft items.
v3x is offline
Cheap_Suit
Veteran Member
Join Date: May 2004
Old 03-27-2005 , 21:13  
Reply With Quote #7

same problem
__________________
HDD fried, failed to backup files. Sorry folks, just don't have free time anymore. This is goodbye.
Cheap_Suit is offline
v3x
Veteran Member
Join Date: Oct 2004
Location: US
Old 03-27-2005 , 21:18  
Reply With Quote #8

Try it again (updated)..
__________________
What am I doing these days? Well, I run my own Rust server. It's heavily modded. If you'd like to join, the ip is 167.114.101.67:28116

I also created a website called Rust Tools. It will calculate and tell you the raw amounts of resources needed to craft items.
v3x is offline
Cheap_Suit
Veteran Member
Join Date: May 2004
Old 03-27-2005 , 21:20  
Reply With Quote #9

even worst every model is terror
__________________
HDD fried, failed to backup files. Sorry folks, just don't have free time anymore. This is goodbye.
Cheap_Suit is offline
v3x
Veteran Member
Join Date: Oct 2004
Location: US
Old 03-27-2005 , 21:25  
Reply With Quote #10

Try a switch() statement.
__________________
What am I doing these days? Well, I run my own Rust server. It's heavily modded. If you'd like to join, the ip is 167.114.101.67:28116

I also created a website called Rust Tools. It will calculate and tell you the raw amounts of resources needed to craft items.
v3x is offline
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 09:59.


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