01-06-2012, 13:36
Pages: 1 2
01-06-2012, 13:38
01-06-2012, 13:42
(01-06-2012, 13:38)Pozzuh Wrote: [ -> ]Good job
Spoiler (Click to View)Y U NO RELEASE SOURCE LIKE EVERYONE ELSE?
posted for you
01-06-2012, 13:48
Why did you put in the list<t>? :p
also you won't need System.Net
bysides that, nice and simple.
also you won't need System.Net
bysides that, nice and simple.
01-06-2012, 13:52
(01-06-2012, 13:48)iAegle Wrote: [ -> ]Why did you put in the list<t>? :p
also you won't need System.Net
bysides that, nice and simple.
thats was in my test plugin, forgot to delete
01-06-2012, 14:05
Here's one that forces thirdperson for the whole server
CSHARP Code
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Text;
- using Addon;
-
- namespace mw3_svr_3rdperson
- {
- public class Class1 : CPlugin
- {
- int Timer = 0;
- public override void OnServerLoad()
- {
- ServerPrint( "3rd Person Mode Loaded." );
- SetDvar( "scr_thirdperson", "1" );
- SetDvar( "cg_thirdperson", "1" );
- }
-
- public override void OnServerFrame()
- {
- if ( Timer++ == 5000 )
- {
- foreach( ServerClient client in GetClients() )
- SetClientDvar( client.ClientNum, "cg_thirdperson \"1\"" );
-
- if ( GetDvar( "scr_thirdperson" ) != "1" )
- {
- SetDvar( "scr_thirdperson", "1" );
- SetDvar( "cg_thirdperson", "1" );
- }
-
- Timer = 0;
- }
- }
- }
- }
01-06-2012, 14:08
here's one that does exactly the same as the post above me
CSHARP Code
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Text;
- using Addon;
-
- namespace mw3_svr_3rdperson
- {
- public class Class1 : CPlugin
- {
- public override void OnServerLoad()
- {
- ServerPrint( "3rd Person Mode Loaded." );
- SetDvar( "scr_thirdperson", "1" );
- }
- }
- }
01-06-2012, 14:10
(01-06-2012, 14:08)jariz Wrote: [ -> ]here's one that does exactly the same as the post above me
CSHARP Code
using System; using System.Collections.Generic; using System.Linq; using System.Text; using Addon; namespace mw3_svr_3rdperson { public class Class1 : CPlugin { public override void OnServerLoad() { ServerPrint( "3rd Person Mode Loaded." ); SetDvar( "scr_thirdperson", "1" ); } } }
Hmm true, but does that actually work? :o
01-06-2012, 14:14
Yes, tested it a few days ago just type "scr_thirdperson 1;map_restart" and your server is thirdperson without any plugins
01-06-2012, 14:18
(01-06-2012, 14:14)jariz Wrote: [ -> ]Yes, tested it a few days ago just type "scr_thirdperson 1;map_restart" and your server is thirdperson without any plugins
Your code without view switching like my :3
Pages: 1 2