Raised This Month: $ Target: $400
 0% 

set_user_rendering problem


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
padilha007
Senior Member
Join Date: Jul 2008
Old 08-26-2008 , 16:49   set_user_rendering problem
Reply With Quote #1

i used XpMod to my plugin and put redering in all Levels but dont work,
my plugin need's this modules:

PHP Code:
#include <amxmodx>
#include <amxmisc>
#include <fakemeta>
#include <cstrike>
#include <fakemeta_util>
#include <xs>

public plugin_init() {
register_event("ResetHUD""newround""b");

I cant put fun include so i get stock to set_user_rendering:

PHP Code:
stock set_user_rendering(idfx kRenderFxNone255255255render kRenderNormalamount 16) {
    new 
Float:color[3]
    
color[0] = Float:r
    color
[1] = Float:g
    color
[2] = Float:b

    set_pev
(id,pev_renderfx,fx)
    
set_pev(id,pev_rendercolor,color)
    
set_pev(id,pev_rendermode,render)
    
set_pev(id,pev_renderamt,amount)

    return 
1;



PHP Code:
public newround(id){

    if (
PlayerLevel[id] <= 1
    {               
//
    
set_user_health(id100);  // We give him 100 Health 
    
new 1
    PlayerClass
[id] = i
    set_user_rendering
(id,kRenderFxGlowShell,,,,kRenderTransAlpha,255)
    }
    
    if (
PlayerLevel[id] == 2
    {
    
set_user_health(id125);
    new 
2
    PlayerClass
[id] = i
    set_user_rendering
(id,kRenderFxGlowShell,,,,kRenderTransAlpha,90
    }
    
    if (
PlayerLevel[id] == 3)
    {               
//
    
set_user_health(id150);  
    new 
3
    PlayerClass
[id] = i
    set_user_rendering
(id,kRenderFxGlowShell,,,,kRenderTransAlpha,70)
    }

    if (
PlayerLevel[id] == 4)
    {               
//
    
set_user_health(id175);
    new 
4
    PlayerClass
[id] = i
    set_user_rendering
(id,kRenderFxGlowShell,,,,kRenderTransAlpha,50)
    }

    if (
PlayerLevel[id] == 5
    { 
    
set_user_health(id200); 
    new 
5
    PlayerClass
[id] = i
    set_user_rendering
(id,kRenderFxGlowShell,,,,kRenderTransAlpha,30
    }

    if (
PlayerLevel[id] >= 6
    {
    
set_user_health(id225);
    new 
6
    PlayerClass
[id] = i
    set_user_rendering
(id,kRenderFxGlowShell,,,,kRenderTransAlpha,5)
    } 
I tried use fm_set_rendering, but dont work.

In BOT (OFFLINE) game works...

anybody can help?
padilha007 is offline
Drak
Veteran Member
Join Date: Jul 2005
Old 08-26-2008 , 19:38   Re: set_user_rendering problem
Reply With Quote #2

Code:
    set_user_rendering(id,kRenderFxGlowShell,0 ,0 ,0 ,kRenderTransAlpha,30)
'0 0 0' are the Red, Green, Blue color values.
They need to be some color, currently there nothing. (Hence why you see nothing)

Change it to something like this:
Code:
    set_user_rendering(id,kRenderFxGlowShell,255 ,0 ,0 ,kRenderTransAlpha,30) // Color: Red
__________________
Oh yeah
Drak is offline
Send a message via MSN to Drak
padilha007
Senior Member
Join Date: Jul 2008
Old 08-26-2008 , 19:52   Re: set_user_rendering problem
Reply With Quote #3

i know man, i make to player invisible...
padilha007 is offline
Drak
Veteran Member
Join Date: Jul 2005
Old 08-26-2008 , 20:02   Re: set_user_rendering problem
Reply With Quote #4

Quote:
Originally Posted by padilha007 View Post
i know man, i make to player invisible...
OKAY DUDE, WELL. You have render amounts for each "set_user_render". So do you want them TRANSPARENT, or completely invisible?
__________________
Oh yeah
Drak is offline
Send a message via MSN to Drak
padilha007
Senior Member
Join Date: Jul 2008
Old 08-26-2008 , 20:15   Re: set_user_rendering problem
Reply With Quote #5

TRANSPARENT
padilha007 is offline
Old 08-26-2008, 20:21
padilha007
This message has been deleted by padilha007.
padilha007
Senior Member
Join Date: Jul 2008
Old 08-27-2008 , 14:06   Re: set_user_rendering problem
Reply With Quote #6

Sorry but, how i can creat .dat files to save player information?
padilha007 is offline
XxAvalanchexX
Veteran Member
Join Date: Oct 2004
Location: abort73.com
Old 08-27-2008 , 20:24   Re: set_user_rendering problem
Reply With Quote #7

You can't change the rendering in ResetHUD, it gets reset (assuming they just spawned). You have to do it the next frame.
__________________
No longer around. Thanks your support, everyone! As always:
THIS ONES FOR YOU
3000 PTS
XxAvalanchexX 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 03:09.


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