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

Third Person(and others) Viewmode


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Plugin Info:     Modification:   ALL        Category:   Fun Stuff       
Throstur
Senior Member
Join Date: Nov 2004
Location: Iceland
Old 07-09-2006 , 17:38   Third Person(and others) Viewmode
Reply With Quote #1

This plugin allows the players to change their viewmode to thirdperson, if the admin allows it.

Flag "n" is needed for admins that wish to change viewmodes if the players are not allowed.

Commands:
Code:
amx_cvar amx_viewmode 1			//	enables public viewmode, 0 disables.
					//	the same can be done with the other CVARS
Cvars:
Code:
amx_viewmode 1				//	1 enables public viewmode, 0 disables
amx_viewmode_allowrnd 1			//	if 0, nobody can randomly choose a viewmode
amx_viewmode_force_thirdperson 0	//	if 1, will force thirdperson view
amx_viewmode_force_upleft 0		//	if 1, will force upleft view
amx_viewmode_force_topdown 0		//	if 1, will force topdown view
Player Commands:
Code:
say /firstperson
say /thirdperson
say /randomview
IMPORTANT: Make sure that the model included is saved into the models folder! It sounds stupid but you need it!

UPDATE: Version 2 released!

Viewmodes can now be forced on players!

Players can say all of the following::
  • /firstperson - Sets normal mode
  • /thirdperson - Sets 3rd person mode
  • /randomview - Chooses a random mode (4 different modes including normal)
The following CVARS may be used:
  • amx_viewmode 1 // if 0, plugin is only available to admins
  • amx_viewmode_allowrnd 1 // if 0, nobody can randomly choose a viewmode
Force cvars:
  • amx_viewmode_force_thirdperson 0 // if 1, will force thirdperson view
  • amx_viewmode_force_upleft 0 // if 1, will force upleft view
  • amx_viewmode_force_topdown 0 // if 1, will force topdown view

* IMPORTANT NOTE * - Due to the method used to manipulate the users view, this plugin may cause lag in some cases. This is very rare, however if you install this plugin and find that your server is lagging, try removing the plugin and see if that was the cause.

* IMPORTANT NOTE * Number 2 - Beta version of viewmode version 3 has been released, the only difference is this:

Cvars:
Code:
amx_viewmode 1			//	1 enables public viewmode, 0 disables
amx_viewmode_allowrnd 1		//	if 0, nobody can randomly choose a viewmode
amx_viewmode_force 0		//	if 1, will force thirdperson view
amx_viewmode_force 0		//	if 2, will force upleft view
amx_viewmode_force 0		//	if 3, will force topdown view
I am unable to test the new version, but please test it for me and give me feedback, so that I can fix it
Attached Files
File Type: rar models.rar (4.7 KB, 3885 views)
File Type: sma Get Plugin or Get Source (viewmode_v2.sma - 4182 views - 3.0 KB)

Last edited by Throstur; 09-17-2008 at 14:20. Reason: Re-uploaded both files after some minor readability fixes (nothing will change in-game)
Throstur is offline
Send a message via AIM to Throstur Send a message via MSN to Throstur
 



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 01:01.


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