Raised This Month: $ Target: $400
 0% 

[Solved] Player Level


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Hunter-Digital
Veteran Member
Join Date: Aug 2006
Location: In the Game [ro]
Old 05-17-2009 , 16:21   Re: Player Level
Reply With Quote #1

level 2 or 3
PHP Code:
if(PlayerLevel[id] == || PlayerLevel[id] == 3
level 2 or above
PHP Code:
if(PlayerLevel[id] >= 2
and using cs_set_user_model() you can set only models inside "models/player/<name>/<name>.mdl" (where name is the model name that you set in the function) and you can precache them like this:
PHP Code:
precache_model("models/player/my_model/my_model.mdl"
(where my_model is your model... that you also set in the cs_set_user_model() )
__________________
Hunter-Digital is offline
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 05-18-2009 , 03:05   Re: Player Level
Reply With Quote #2

Quote:
Originally Posted by Hunter-Digital View Post
level 2 or 3
PHP Code:
if(PlayerLevel[id] == || PlayerLevel[id] == 3
level 2 or above
PHP Code:
if(PlayerLevel[id] >= 2
Or something like:
PHP Code:
switch(PlayerLevel[id])
{
    case 
1:
    {
        
// Stuff for level 1
    
}
    case 
2..3:
    {
        
// Stuff for level 2 and 3
    
}
    case 
4..6:
    {
        
// Stuff for levels 4, 5, and 6
    
}
    default:
    {
        
// Stuff for all other levels
    
}

__________________
fysiks 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 01:33.


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