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

what this code do?? and how to convert it to AMXX


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
arvEL.
Senior Member
Join Date: Dec 2014
Location: Iraq
Old 02-09-2018 , 03:24   what this code do?? and how to convert it to AMXX
Reply With Quote #1

hi guys.. what this code do??

PHP Code:
static cell AMX_NATIVE_CALL twixQsJumpsAMX pAmxcell pParameters )
{
edict_t pPlayer MF_GetPlayerEdictpParameters] );

float fCoolDownfCurrentTime;

CPlayerspParameters] ].monster fCoolDown 1.0 fCoolDown 13.0;

fCurrentTime gpGlobals -> time;

if( 
fCurrentTime CPlayerspParameters] ].lastleap fCoolDown  || !( pPlayer -> v.button IN_JUMP ) || !( pPlayer -> v.flags  FL_ONGROUND ) || GetSpeedpPlayer ) < 80 )
return 
1;

MAKE_VECTORSpPlayer -> v.v_angle );

Vector fVelocity;

if( 
CPlayerspParameters] ].monster )
{
fVelocity gpGlobals -> v_forward 500fVelocity] = 300;
}

else
{
fVelocity gpGlobals -> v_forward 360fVelocity] = 250;
}

pPlayer -> v.velocity fVelocity;

CPlayerspParameters] ].lastleap fCurrentTime;

return 
1;

and how to use it in amxx plugin
__________________
arvEL. is offline
Send a message via Skype™ to arvEL.
 



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 07:06.


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