Raised This Month: $ Target: $400
 0% 

render footsteps


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
GhostMan
Senior Member
Join Date: Jun 2012
Old 09-07-2012 , 09:09   render footsteps
Reply With Quote #1

Witch one is better?

Code:
public Reset()
{
    set_lights("#OFF");

    server_cmd("sv_gravity 800");
    server_cmd("mp_friendlyfire 0");
    
    new players[32], num;
    get_players(players, num, "a");
    for(new i = 0; i < num; i++)
    {    
        set_user_rendering(players[i]);
        set_user_footsteps(players[i], 0);
    }
    
    g_BoxStarted = false;
    catch = false;
    g_iTimeLeft = -1;
    g_SpecDay = 0;
}
Code:
public Reset(id)
{
    set_lights("#OFF");

    server_cmd("sv_gravity 800");
    server_cmd("mp_friendlyfire 0");
    
    if(is_user_alive(id))
    {
        set_user_rendering(id);
        set_user_footsteps(id, 0);
    }
    
    g_BoxStarted = false;
    catch = false;
    g_iTimeLeft = -1;
    g_SpecDay = 0;
}
GhostMan is offline
Infernuz
Member
Join Date: May 2011
Old 09-07-2012 , 09:53   Re: render footsteps
Reply With Quote #2

Depends on how you will use it.

PHP Code:
public Reset() 
Is better if you want to ONLY render for all of the players.

Last edited by Infernuz; 09-07-2012 at 09:54.
Infernuz is offline
Send a message via ICQ to Infernuz
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 08:17.


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