Raised This Month: $ Target: $400
 0% 

Whats wrong?


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
enjoi.
Veteran Member
Join Date: Mar 2011
Old 09-30-2011 , 18:58   Whats wrong?
Reply With Quote #1

PHP Code:
#include <amxmodx>
#include <engine>
#include <csx>

#define PLUGIN "3RD Person View While Planting"
#define VERSION "1.0"
#define AUTHOR "author"

public plugin_init()
{
register_plugin(PLUGINVERSIONAUTHOR)

register_event("DeathMsg""Event_DeathMsg""a")
}

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

public 
Event_DeathMsg()
{
new 
iVictim read_data(2)

set_view(iVictimCAMERA_NONE)
}

public 
bomb_planting(id)
{
set_view(idCAMERA_3RDPERSON)
}

public 
bomb_planted(id)
{
set_view(idCAMERA_NONE)

When I stop planting the bomb it stays in 3rd person mode. How do I make it so it exits 3rd person mode and goes back to 1st person if you start to plant but discontinue?
__________________
Block Maker v6.0 []
Point Slay v3.0 []
Contact [ PM ]
enjoi. is offline
^SmileY
Veteran Member
Join Date: Jan 2010
Location: Brazil [<o>]
Old 09-30-2011 , 19:43   Re: Whats wrong?
Reply With Quote #2

Set te bomb planted event to remove a 3rd person view

and dont forget to set event if bomb player is death done by other player for remove 3rd person view.
__________________
Projects:

- See my Git Hub: https://github.com/SmileYzn
PHP Code:
set_pcvar_num(pCvar, !get_pcvar_num(pCvar)); 
^SmileY is offline
Send a message via MSN to ^SmileY Send a message via Skype™ to ^SmileY
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 19:44.


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