Raised This Month: $51 Target: $400
 12% 

[TUT-CS] Changing player models and lowering svc_bad


Post New Thread Reply   
 
Thread Tools Display Modes
danielkza
AMX Mod X Plugin Approver
Join Date: May 2007
Location: São Paulo - Brasil
Old 02-26-2009 , 18:01   Re: [TUT-CS] Changing player models and lowering svc_bad
Reply With Quote #41

Quote:
Originally Posted by joaquimandrade View Post
A spawn happens much more frequently than a team change. So if you can use your code and change the spawn forward by the join team event it would be even better. I didn't mess with models yet so i don't have knowledge in this topic, so i asked you. If using the join team event works it would also allow to remove the tasks.
I'm pretty sure CS resets the model on spawn.
__________________

Community / No support through PM
danielkza is offline
joaquimandrade
Veteran Member
Join Date: Dec 2008
Location: Portugal
Old 02-26-2009 , 18:40   Re: [TUT-CS] Changing player models and lowering svc_bad
Reply With Quote #42

Quote:
Originally Posted by danielkza View Post
I'm pretty sure CS resets the model on spawn.
His code takes care of that.
__________________
joaquimandrade is offline
Owyn
Veteran Member
Join Date: Nov 2007
Old 02-28-2009 , 07:44   Re: [TUT-CS] Changing player models and lowering svc_bad
Reply With Quote #43

look, i made this but no effect when player spawns, what is wrong?

Code:
#include <amxmodx>
#include <fakemeta>
#include <hamsandwich>
#include <cstrike>

public plugin_init()
{
    register_plugin("Player Model Changer Example", "0.3", "MeRcyLeZZ")
    
    RegisterHam(Ham_Spawn, "player", "fw_PlayerSpawn", 1)
}

/*================================================================================
 [Player Spawn Event]
=================================================================================*/

public fw_PlayerSpawn(id)
{   
    // Not alive or didn't join a team yet
    if (!is_user_alive(id) || !cs_get_user_team(id))
        return;
    
    // Make original player entity invisible
    set_pev(id, pev_rendermode, kRenderTransTexture)
    // This is not 0 because it would hide the shadow and some effects when firing weapons
    set_pev(id, pev_renderamt, 1.0)

}
Owyn is offline
Send a message via ICQ to Owyn
MeRcyLeZZ
Veteran Member
Join Date: Dec 2007
Old 03-03-2009 , 21:53   Re: [TUT-CS] Changing player models and lowering svc_bad
Reply With Quote #44

Quote:
Originally Posted by joaquimandrade
A spawn happens much more frequently than a team change. So if you can use your code and change the spawn forward by the join team event it would be even better.
Right, it would be more efficient and you should have no problems doing it that way. CS won't ever change the models as long as the proper hooks are in place.

Quote:
Originally Posted by joaquimandrade
If using the join team event works it would also allow to remove the tasks.
There may be (rare) cases where lots of people join at once. I wouldn't recommend removing the delays, as to be on the safe side.

Quote:
Originally Posted by .Owyn.
look, i made this but no effect when player spawns, what is wrong?
That doesn't seem to have anything to do with model changing. If you have a general scripting question you should post at the Scripting Help forum (not to sound harsh, but you'll probably get more answers there).
__________________
MeRcyLeZZ is offline
Owyn
Veteran Member
Join Date: Nov 2007
Old 03-04-2009 , 03:58   Re: [TUT-CS] Changing player models and lowering svc_bad
Reply With Quote #45

Quote:
That doesn't seem to have anything to do with model changing. If you have a general scripting question you should post at the Scripting Help forum (not to sound harsh, but you'll probably get more answers there).
that's a part of code posted by author of this thread, i tried useing whole code buy same effect - nothing happened
Owyn is offline
Send a message via ICQ to Owyn
MeRcyLeZZ
Veteran Member
Join Date: Dec 2007
Old 03-07-2009 , 16:12   Re: [TUT-CS] Changing player models and lowering svc_bad
Reply With Quote #46

Quote:
Originally Posted by .Owyn. View Post
that's a part of code posted by author of this thread, i tried useing whole code buy same effect - nothing happened
Sorry, that code looks to me like you're trying to make invisible players? How does that relate to model changing, what are you wanting to achieve?
__________________
MeRcyLeZZ is offline
Owyn
Veteran Member
Join Date: Nov 2007
Old 03-07-2009 , 16:59   Re: [TUT-CS] Changing player models and lowering svc_bad
Reply With Quote #47

i want to know if plugin working, i took part of plugin which supposted to make player invisible but it doesn't, any other methods to know if plugin worked?
Owyn is offline
Send a message via ICQ to Owyn
Exolent[jNr]
Veteran Member
Join Date: Feb 2007
Location: Tennessee
Old 03-08-2009 , 13:29   Re: [TUT-CS] Changing player models and lowering svc_bad
Reply With Quote #48

That has nothing to do with this thread.
Only thing you can say that you used was how to hook spawn, which wasn't first shown here.
So, you should post in the Scripting Help section.
__________________
No private work or selling mods.
Quote:
Originally Posted by xPaw View Post
I love you exolent!
Exolent[jNr] is offline
joaquimandrade
Veteran Member
Join Date: Dec 2008
Location: Portugal
Old 03-08-2009 , 14:47   Re: [TUT-CS] Changing player models and lowering svc_bad
Reply With Quote #49

Quote:
Originally Posted by Exolent[jNr] View Post
That has nothing to do with this thread.
Only thing you can say that you used was how to hook spawn, which wasn't first shown here.
So, you should post in the Scripting Help section.
Btw, this thread should be cleaned (the offtopic posts) and stickied.
__________________
joaquimandrade is offline
vato loco [GE-S]
Veteran Member
Join Date: Oct 2006
Location: Germany
Old 03-09-2009 , 06:28   Re: [TUT-CS] Changing player models and lowering svc_bad
Reply With Quote #50

thx for this tut...very helpfull
__________________
vato loco [GE-S] 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:00.


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