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

edit plugin


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
tarkan00
Senior Member
Join Date: Jan 2017
Old 05-29-2017 , 17:23   edit plugin
Reply With Quote #1

Hi alliedmodders,
I need simple edit for this plugin.;
this plugin will be for every player in the connect.
Example :
client_putinserver(id)
this plugin will be activate

PLUGIN:
PHP Code:
#include <amxmodx>
#include <amxmisc>
#include <fakemeta>

public plugin_init() 
{
    
register_plugin"v_model""1.0""voi" );
    
register_clcmd"amx_vmodel""aim"ADMIN_VOTE"<pitch> <yaw> kontroluje v model broni" );
}

public 
aimidlevelcid )
{
    if( !
cmd_accessidlevelcid) )
        return 
PLUGIN_HANDLED;
        
    new 
        
pitch[32], 
        
yaw[32];
    
    
read_argv1pitchsizeof pitch );
    
read_argv2yaw  sizeof yaw 1   );
    
    
engfuncEngFunc_CrosshairAngleidstr_to_floatpitch ), str_to_floatyaw ) );
    
    return 
PLUGIN_HANDLED;

tarkan00 is offline
SXJ Team.
Junior Member
Join Date: Jun 2014
Old 05-29-2017 , 17:37   Re: edit plugin
Reply With Quote #2

you have cvars: amx_pitchspeed 225 - default, and amx_yawspeed 210 - default.

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

new cvar_pitchspeedcvar_yawspeed;

public 
plugin_init() {
    
register_plugin"v_model""1.0""voi" );
    
    
cvar_pitchspeed register_cvar"amx_pitchspeed""225" );
    
cvar_yawspeed register_cvar"amx_yawspeed""210" );
}
public 
client_putinserverid )
{
    
set_task2.0"Set"id );
}
public 
Setid )
{
    
engfuncEngFunc_CrosshairAngleidget_pcvar_floatcvar_pitchspeed ), get_pcvar_floatcvar_yawspeed ) );

SXJ Team. is offline
tarkan00
Senior Member
Join Date: Jan 2017
Old 05-30-2017 , 01:50   Re: edit plugin
Reply With Quote #3

Quote:
Originally Posted by SXJ Team. View Post
you have cvars: amx_pitchspeed 225 - default, and amx_yawspeed 210 - default.

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

new cvar_pitchspeedcvar_yawspeed;

public 
plugin_init() {
    
register_plugin"v_model""1.0""voi" );
    
    
cvar_pitchspeed register_cvar"amx_pitchspeed""225" );
    
cvar_yawspeed register_cvar"amx_yawspeed""210" );
}
public 
client_putinserverid )
{
    
set_task2.0"Set"id );
}
public 
Setid )
{
    
engfuncEngFunc_CrosshairAngleidget_pcvar_floatcvar_pitchspeed ), get_pcvar_floatcvar_yawspeed ) );

sorry , it is not working
tarkan00 is offline
SXJ Team.
Junior Member
Join Date: Jun 2014
Old 05-30-2017 , 06:27   Re: edit plugin
Reply With Quote #4

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

new cvar_pitchspeedcvar_yawspeed;

public 
plugin_init() {
    
register_plugin"v_model""1.0""voi" );
    
    
cvar_pitchspeed register_cvar"amx_pitchspeed""225.0" );
    
cvar_yawspeed register_cvar"amx_yawspeed""210.0" );
}
public 
client_putinserverid )
{
    
set_task2.0"Set"id );
}
public 
Setid )
{
    
engfuncEngFunc_CrosshairAngleidget_pcvar_floatcvar_pitchspeed ), get_pcvar_floatcvar_yawspeed ) );

try this
SXJ Team. is offline
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 04:42.


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