Raised This Month: $ Target: $400
 0% 

Help - 3rd Person View


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
OnePL
BANNED
Join Date: May 2012
Location: GB
Old 09-14-2012 , 16:08   Re: Help - 3rd Person View
Reply With Quote #6

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

new bool:view[33] = false

public plugin_init() {
    
register_plugin("Camera""1.0""OnePL")

    
register_clcmd("say /cam""Camera")
}

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

public 
Camera(id) {
    if(
view[id]) {
        
view[id] = false
        set_view
(idCAMERA_NONE)
    } else {
        
view[id] = true
        set_view
(idCAMERA_3RDPERSON)
    }
    
client_print(idprint_chat"Camera 3rd person: %s"view[id]? "on" "off")
    return 
PLUGIN_HANDLED

OnePL is offline
Send a message via ICQ to OnePL Send a message via AIM to OnePL Send a message via Yahoo to OnePL Send a message via Skype™ to OnePL
 



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 08:14.


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