Raised This Month: $ Target: $400
 0% 

set_view crashes my server


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
BigDontCry
Member
Join Date: Nov 2007
Location: Sweden
Old 11-30-2007 , 16:20   set_view crashes my server
Reply With Quote #1

Hi. I'm just playing around a little with all the different stuff you can do with the engine module....

I made this:

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

#define PLUGIN "New Plugin"
#define VERSION "1.0"
#define AUTHOR "."


public plugin_init() {
    
register_plugin(PLUGINVERSIONAUTHOR)
    
}

public 
client_putinserver(id) {
    
    if(!
is_user_bot(id) && !is_user_hltv(id)) {
        
set_view(idCAMERA_3RDPERSON)
    }

But whenever I try to connect to the server it crashes, but I can't see the problem with this code; it should work, right?
__________________
Big Men Don't Cry

Quote:
[20:23] [email protected]: I don't know how
[20:23] [email protected]: I'm only 15
[20:23] [email protected]: I don't know anything
BigDontCry is offline
Old 11-30-2007, 16:24
M249-M4A1
This message has been deleted by M249-M4A1. Reason: oh nvm!!!
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 11-30-2007 , 16:31   Re: set_view crashes my server
Reply With Quote #2

Add this in the first code :

Code:
public plugin_precache() {     precache_model("models/rpgrocket.mdl") }
ConnorMcLeod is offline
BigDontCry
Member
Join Date: Nov 2007
Location: Sweden
Old 11-30-2007 , 16:36   Re: set_view crashes my server
Reply With Quote #3

Quote:
Originally Posted by connorr View Post
Add this in the first code :

Code:
public plugin_precache() {     precache_model("models/rpgrocket.mdl") }
Yep... That fixed it... Another problem came up; the rendering of the player model isn't right. I was transparent. I tried to fix it with the set_user_rendering command but I still was 70% transparent when I use the set_view command..

Ah well... Who gives a sheit... No one wants to play 3rd person anyways... ;D Just playing around with the commands to learn... xD
__________________
Big Men Don't Cry

Quote:
[20:23] [email protected]: I don't know how
[20:23] [email protected]: I'm only 15
[20:23] [email protected]: I don't know anything
BigDontCry is offline
Drak
Veteran Member
Join Date: Jul 2005
Old 11-30-2007 , 19:03   Re: set_view crashes my server
Reply With Quote #4

Quote:
Originally Posted by BigDontCry View Post
Yep... That fixed it... Another problem came up; the rendering of the player model isn't right. I was transparent. I tried to fix it with the set_user_rendering command but I still was 70% transparent when I use the set_view command..

Ah well... Who gives a sheit... No one wants to play 3rd person anyways... ;D Just playing around with the commands to learn... xD
That shouldn't be right. Try simply doing "set_user_rendering(id)".
If any effect is applied, that will remove it.
__________________
Oh yeah
Drak is offline
Send a message via MSN to Drak
Emp`
AMX Mod X Plugin Approver
Join Date: Aug 2005
Location: Decapod 10
Old 11-30-2007 , 19:17   Re: set_view crashes my server
Reply With Quote #5

3rd person makes you semi transparent so you can see. there is no way around it.
Emp` is offline
Send a message via AIM to Emp` Send a message via MSN to Emp` Send a message via Yahoo to Emp` Send a message via Skype™ to Emp`
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 11:04.


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