Raised This Month: $ Target: $400
 0% 

Model problem


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
naven
Veteran Member
Join Date: Jun 2008
Location: Poland, Cieszyn
Old 08-14-2010 , 00:45   Re: Model problem
Reply With Quote #1

Quote:
Originally Posted by Vechta View Post
no
It won't work then...
__________________
naven.com.pl
"At the end of the day, there are always going to be mental disorders and people who cause violence for no other reason than the fact that they're fucked up and lost. And all we can do is try to learn from it." Corey Taylor.
naven is offline
mottzi
Veteran Member
Join Date: May 2010
Location: Switzerland
Old 08-14-2010 , 04:14   Re: Model problem
Reply With Quote #2

Quote:
Originally Posted by N A V E N View Post
It won't work then...
Look at drakes example of looping through players - why that shoudn't work?
__________________
Quote:
#define true ((rand() % 2)? true: false) //Happy debugging suckers
mottzi is offline
Send a message via MSN to mottzi
drekes
Veteran Member
Join Date: Jul 2009
Location: Vault 11
Old 08-13-2010 , 12:53   Re: Model problem
Reply With Quote #3

PHP Code:
public plugin_init()
    
register_event("Event_RoundStart"2"1=Round_Start");

public 
Event_RoundStart()
{
    new 
players[32], pnumtempid;
    
get_players(playerspnum)
    
    for(new 
0pnumi++)
    {
        
tempid players[i]
    
        
cs_reset_user_model(tempid);
    }

But i think it's better to do this on spawn.
PHP Code:
#include <amxmodx>
#include <hamsandwich>
#include <cstrike>

public plugin_init()
    
RegisterHam(Ham_Spawn"player""Fwd_Ham_Spawn_Post"1);

public 
Fwd_Ham_Spawn_Post(id)
{
    if(
is_user_alive(id))
        
cs_reset_user_model(id);

__________________

Quote:
Originally Posted by nikhilgupta345 View Post
You're retarded.
drekes is offline
Send a message via MSN to drekes
mottzi
Veteran Member
Join Date: May 2010
Location: Switzerland
Old 08-13-2010 , 13:46   Re: Model problem
Reply With Quote #4

agreed.
__________________
Quote:
#define true ((rand() % 2)? true: false) //Happy debugging suckers
mottzi is offline
Send a message via MSN to mottzi
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 08-13-2010 , 14:06   Re: Model problem
Reply With Quote #5

You definitely don't know scripting, you should rather post a request in proper forum section.
__________________
- tired and retired -

- my plugins -
ConnorMcLeod is offline
mottzi
Veteran Member
Join Date: May 2010
Location: Switzerland
Old 08-13-2010 , 14:39   Re: Model problem
Reply With Quote #6

Quote:
Originally Posted by ConnorMcLeod View Post
You definitely don't know scripting, you should rather post a request in proper forum section.
yeah go to the Pawn Picture Tutorial i said, but it seems that he ignored me...
__________________
Quote:
#define true ((rand() % 2)? true: false) //Happy debugging suckers
mottzi is offline
Send a message via MSN to mottzi
naven
Veteran Member
Join Date: Jun 2008
Location: Poland, Cieszyn
Old 08-14-2010 , 05:54   Re: Model problem
Reply With Quote #7

Well i know this one will work, but you didn't do that, drekes did.
__________________
naven.com.pl
"At the end of the day, there are always going to be mental disorders and people who cause violence for no other reason than the fact that they're fucked up and lost. And all we can do is try to learn from it." Corey Taylor.
naven is offline
mottzi
Veteran Member
Join Date: May 2010
Location: Switzerland
Old 08-14-2010 , 08:35   Re: Model problem
Reply With Quote #8

ehm, i just said him in which event he can do it. He never asked me about the looping. But like drekes said, it would be bether when he change the model in a Spwan Event.
__________________
Quote:
#define true ((rand() % 2)? true: false) //Happy debugging suckers
mottzi is offline
Send a message via MSN to mottzi
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 21:50.


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