View Single Post
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