Raised This Month: $ Target: $400
 0% 

Solved Camera


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
CrazY.
Veteran Member
Join Date: May 2015
Location: SP, Brazil
Old 07-14-2018 , 10:32   Re: Camera
Reply With Quote #1

Show the full code.
__________________








CrazY. is offline
blAck.
Member
Join Date: Jun 2018
Old 07-14-2018 , 10:36   Re: Camera
Reply With Quote #2

Quote:
Originally Posted by CrazY. View Post
Show the full code.
Code:
#include <amxmodx>
#include <engine>
#include <amxmisc>

new bool:PlayerInThirdPerson[33];

public plugin_init()
{
    register_plugin("Camera", "1.0", "blAck")

    register_clcmd("say /cam", "setview")
}

public plugin_modules()
{
    require_module("engine")
}

public plugin_precache()
{
    precache_model("models/rpgrocket.mdl")
}

public setview(id)
{	
	
	if(!PlayerInThirdPerson[id]) {
		
		set_view(id, CAMERA_3RDPERSON)
		PlayerInThirdPerson[id] = true;
	} else
		
		set_view(id, CAMERA_NONE)
		PlayerInThirdPerson[id] = false;
}
blAck. 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 12:38.


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