Raised This Month: $ Target: $400
 0% 

Event for Player is not in Game


Post New Thread Reply   
 
Thread Tools Display Modes
Hunter-Digital
Veteran Member
Join Date: Aug 2006
Location: In the Game [ro]
Old 07-23-2011 , 11:42   Re: Event for Player is not in Game
Reply With Quote #11

Fake jointeam with engclient_cmd() on player before spawning him.
__________________
Hunter-Digital is offline
sake
Senior Member
Join Date: Jul 2011
Old 07-23-2011 , 11:47   Re: Event for Player is not in Game
Reply With Quote #12

But he is already in the team. Or do i still have to do that?

Man. I have too many questions. And you are still helping me. Can TeamInfo be blocked by PLUGIN_HANDLED? -> No (Just tried it.)
sake is offline
Hunter-Digital
Veteran Member
Join Date: Aug 2006
Location: In the Game [ro]
Old 07-23-2011 , 13:29   Re: Event for Player is not in Game
Reply With Quote #13

Well, I dunno about that in-team spectating thing and I've seen that ham function beeing recommended but I myself tested this method and respawns just fine, pasted from my jctf mod:
Code:
        entity_set_int(id, EV_INT_deadflag, DEAD_RESPAWNABLE)
        entity_set_int(id, EV_INT_iuser1, 0)
        call_think(id)
        DispatchSpawn(id)
        set_user_health(id, 100)
TeamInfo message and all other messages sent by the server (not other plugins) can be blocked if you're using register_message().
But that won't mean the player won't be moved into that team, that message is purely informative.

register_event() doens't block anything, it just hooks.
__________________
Hunter-Digital is offline
sake
Senior Member
Join Date: Jul 2011
Old 07-24-2011 , 10:55   Re: Event for Player is not in Game
Reply With Quote #14

Hmmm what does call_think do then? The documentation doesn't say anything what thinking in HL/CS is...
sake 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 06:43.


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