Raised This Month: $51 Target: $400
 12% 

How i can Loop my Plugin to no Stop?


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
iXaDe
Junior Member
Join Date: Jul 2012
Old 09-10-2012 , 19:09   How i can Loop my Plugin to no Stop?
Reply With Quote #1

Hi,

I have a plugin for modify my FoV, but when i Zoom with Sniper or SG552/AUG ...

Code:
/*
Plugin para modificar o FoV
*/

#include <amxmodx>
#include <amxmisc>
#include <hamsandwich>

public plugin_init() 
{
     register_plugin("Fov", "1.0", "<xFiLe*>")
     RegisterHam(Ham_Spawn, "player", "fw_PlayerSpawn_Post", 1)
	 return PLUGIN_HANDLED;
}

public fw_PlayerSpawn_Post(id)
{
     human_fov(id)
}

public human_fov(id)
{
    if (!is_user_alive(id))
		return
	message_begin(MSG_ONE, get_user_msgid("SetFOV"), _, id)
	write_byte(130)
	message_end() 
}
iXaDe is offline
 



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


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