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

[TF2]Force ThirdPerson


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
DJ Data
SourceMod Donor
Join Date: Dec 2012
Location: Switzerland
Old 03-19-2014 , 19:44   [TF2]Force ThirdPerson
Reply With Quote #1

I got this code:

PHP Code:
public Action:ThirdPerson(Handle:timer)
{
    for (new 
1<= MaxClientsi++)
    {
        if (
IsClientInGame(i) && (!IsFakeClient(i)) && IsPlayerAlive(i))
        {
            
SetCommandFlags("thirdperson"GetCommandFlags("thirdperson") & ~FCVAR_CHEAT);
            
ClientCommand(i"thirdperson");
            
SetCommandFlags("thirdperson"GetCommandFlags("thirdperson") | FCVAR_CHEAT);
        }
    }  

But it does not put anyone into ThirdPerson.
Thanks in advance.
__________________
SourcePawn Coding Level: Novice
DJ Data is offline
Powerlord
AlliedModders Donor
Join Date: Jun 2008
Location: Seduce Me!
Old 03-19-2014 , 19:56   Re: [TF2]Force ThirdPerson
Reply With Quote #2

Have you tried checking the code to the enticingly named "[TF2] Third Person" plugin?
__________________
Not currently working on SourceMod plugin development.

Last edited by Powerlord; 03-20-2014 at 12:44.
Powerlord is offline
DJ Data
SourceMod Donor
Join Date: Dec 2012
Location: Switzerland
Old 03-20-2014 , 12:34   Re: [TF2]Force ThirdPerson
Reply With Quote #3

Well.
1. Your link brings me to an IP.
2. Yes, but my system only allows members to use the !tp command, and during the time i want to force it, not everyone is a member.
__________________
SourcePawn Coding Level: Novice
DJ Data is offline
Powerlord
AlliedModders Donor
Join Date: Jun 2008
Location: Seduce Me!
Old 03-20-2014 , 12:45   Re: [TF2]Force ThirdPerson
Reply With Quote #4

Quote:
Originally Posted by DJ Data View Post
Well.
1. Your link brings me to an IP.
2. Yes, but my system only allows members to use the !tp command, and during the time i want to force it, not everyone is a member.
I derped for #1... I used the url markup instead of the thread markup. It should have been [TF2] Third Person.

The point is that the code for that plugin can help you create a new plugin to force all players to third person using the SetForcedTauntCam input.
__________________
Not currently working on SourceMod plugin development.

Last edited by Powerlord; 03-20-2014 at 12:45.
Powerlord is offline
DJ Data
SourceMod Donor
Join Date: Dec 2012
Location: Switzerland
Old 03-20-2014 , 12:57   Re: [TF2]Force ThirdPerson
Reply With Quote #5

Oh right, i completely forgot about the source code.
Thanks ;)
__________________
SourcePawn Coding Level: Novice
DJ Data 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 22:40.


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