Raised This Month: $ Target: $400
 0% 

A little porting help


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
Sp4rt4n
Senior Member
Join Date: Dec 2004
Old 08-24-2005 , 22:35   A little porting help
Reply With Quote #1

Im porting a major plugin from amx, and theres this... i guess it would be a function..

Code:
Entvars_Get_Int
and
Code:
Entvars_Set_Int

what would these convert to in amxx? heres some code if it helps:

Code:
if (morphed[id][0] == 1) {         if (Entvars_Get_Int(id, EV_INT_button)&IN_FORWARD && Entvars_Get_Int(id, EV_INT_button)&IN_DUCK) {             Entvars_Set_Int(id, EV_INT_sequence, 6)         }         else if (Entvars_Get_Int(id, EV_INT_button)&IN_FORWARD && Entvars_Get_Int(id, EV_INT_button)&IN_JUMP) {             Entvars_Set_Int(id, EV_INT_sequence, 9)         }         else if (Entvars_Get_Int(id, EV_INT_button)&IN_FORWARD) {             Entvars_Set_Int(id, EV_INT_sequence, 3)         }         else if (Entvars_Get_Int(id, EV_INT_button)&IN_MOVELEFT) {             Entvars_Set_Int(id, EV_INT_sequence, 3)         }         else if (Entvars_Get_Int(id, EV_INT_button)&IN_MOVERIGHT) {             Entvars_Set_Int(id, EV_INT_sequence, 3)         }         else if (Entvars_Get_Int(id, EV_INT_button)&IN_DUCK) {             Entvars_Set_Int(id, EV_INT_sequence, 7)         }         else if (Entvars_Get_Int(id, EV_INT_button)&IN_JUMP) {             Entvars_Set_Int(id, EV_INT_sequence, 8)         }     }
Sp4rt4n is offline
Send a message via MSN to Sp4rt4n
 



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:25.


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