AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Whats wrong? (https://forums.alliedmods.net/showthread.php?t=168554)

enjoi. 09-30-2011 18:58

Whats wrong?
 
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?

^SmileY 09-30-2011 19:43

Re: Whats wrong?
 
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.


All times are GMT -4. The time now is 19:44.

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