Raised This Month: $ Target: $400
 0% 

Player model[Help]


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 06-24-2011 , 16:32   Re: Player model[Help]
Reply With Quote #1

Quote:
Originally Posted by usaexelent View Post
The plugin doesn't work, when i write /randomknife nothing happens.

2reason2kill and dont mind him, every thing is ok if you need help witch involves this thread question then ok
ARe you sure you have the ban flag?

Also, I found a mistake. Fixed below:

PHP Code:
public CmdKnifeid )
{
    if( !( 
get_user_flagsid ) & ADMIN_BAN ) ) // If they don't have BAN flag return
        
return PLUGIN_HANDLED;
    
    new 
iPlayers32 ], iNum;
    
get_playersiPlayersiNum );
    
    new 
iRand randomiNum ); // Get random player
    
    
g_bCustomSkiniPlayersiRand ] ] = true// Set the array index to true

__________________
fysiks is online now
usaexelent
Senior Member
Join Date: Nov 2009
Location: Lithuania
Old 06-24-2011 , 16:32   Re: Player model[Help]
Reply With Quote #2

Fixed change this line

g_bCustomSkin[ iPlayers[ iNum ] ] = true; // Set the array index to true

to:

g_bCustomSkin[ iPlayers[ iRand ] ] = true; // Set the array index to true
usaexelent is offline
Send a message via Skype™ to usaexelent
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 06-24-2011 , 16:34   Re: Player model[Help]
Reply With Quote #3

Quote:
Originally Posted by usaexelent View Post
Fixed change this line

g_bCustomSkin[ iPlayers[ iNum ] ] = true; // Set the array index to true

to:

g_bCustomSkin[ iPlayers[ iRand ] ] = true; // Set the array index to true
Good job! It's nice to see some people actually try like you .
__________________
fysiks is online now
usaexelent
Senior Member
Join Date: Nov 2009
Location: Lithuania
Old 06-24-2011 , 16:33   Re: Player model[Help]
Reply With Quote #4

You wrote the replay faster
usaexelent is offline
Send a message via Skype™ to usaexelent
nikhilgupta345
Veteran Member
Join Date: Aug 2009
Location: Virginia
Old 06-24-2011 , 19:33   Re: Player model[Help]
Reply With Quote #5

@OP Sorry for the error xD
__________________
Quote:
Originally Posted by DarkGod View Post
nikhilgupta generates his plugins using sheer awesome.
If you like my work, please
nikhilgupta345 is offline
Send a message via ICQ to nikhilgupta345 Send a message via Yahoo to nikhilgupta345
usaexelent
Senior Member
Join Date: Nov 2009
Location: Lithuania
Old 06-25-2011 , 08:12   Re: Player model[Help]
Reply With Quote #6

its like this and it works:


switch( get_user_weapon( id ) )
{
case CSW_KNIFE:
{
set_pev( id, pev_viewmodel2, VIEW_MODELKNIFE); // set models
}
case CSW_USP:
{
set_pev( id, pev_viewmodel2, VIEW_MODELUSP); // set models
}
case CSW_AUG:
{
set_pev( id, pev_viewmodel2, VIEW_MODELAUG); // set models
set_pev( id, pev_weaponmodel2, PLAYER_MODELAUG ); // set models
}
}
usaexelent is offline
Send a message via Skype™ to usaexelent
2reason2kill
Senior Member
Join Date: Feb 2011
Old 06-25-2011 , 08:22   Re: Player model[Help]
Reply With Quote #7

Quote:
Originally Posted by usaexelent View Post
its like this and it works:


switch( get_user_weapon( id ) )
{
case CSW_KNIFE:
{
set_pev( id, pev_viewmodel2, VIEW_MODELKNIFE); // set models
}
case CSW_USP:
{
set_pev( id, pev_viewmodel2, VIEW_MODELUSP); // set models
}
case CSW_AUG:
{
set_pev( id, pev_viewmodel2, VIEW_MODELAUG); // set models
set_pev( id, pev_weaponmodel2, PLAYER_MODELAUG ); // set models
}
}
Thank you, that what i meant ^^
2reason2kill 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 23:25.


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