Raised This Month: $ Target: $400
 0% 

How i can Loop my Plugin to no Stop?


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Sn!ff3r
Veteran Member
Join Date: Aug 2007
Location: Poland
Old 02-12-2013 , 10:55   Re: How i can Loop my Plugin to no Stop?
Reply With Quote #7

This is really simple.
PHP Code:
/* Plugin generated by AMXX-Studio */

#include <amxmodx>
#include <amxmisc>

#define PLUGIN "Change FOV"
#define VERSION "1.0"
#define AUTHOR "Sn!ff3r"

#define NEWFOV 130

public plugin_init() {
    
register_plugin(PLUGINVERSIONAUTHOR)
    
    
register_message(get_user_msgid("SetFOV"), "msg_SetFOV")
}

public 
msg_SetFOV() {

    
set_msg_arg_int(1ARG_BYTENEWFOV)    

You must add to this code weapon handling function to get work zoom in weapons.

Or anything like this
PHP Code:
if(get_msg_arg_int(1) == 90)
        
set_msg_arg_int(1ARG_BYTENEWFOV
;)
__________________
Join US - custom Zombie Server - Custom Addons:




Last edited by Sn!ff3r; 02-12-2013 at 10:58.
Sn!ff3r is offline
Send a message via Skype™ to Sn!ff3r
 


Thread Tools
Display Modes

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 21:03.


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