Raised This Month: $ Target: $400
 0% 

A little porting help


Post New Thread Reply   
 
Thread Tools Display Modes
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
atambo
Senior Member
Join Date: Oct 2004
Location: Pittsburgh, PA
Old 08-24-2005 , 22:42  
Reply With Quote #2

entity_get_int():http://www.amxmodx.org/funcwiki.php?go=func&id=331
entity_set_int():http://www.amxmodx.org/funcwiki.php?go=func&id=337
__________________
atambo is offline
Send a message via AIM to atambo Send a message via MSN to atambo Send a message via Yahoo to atambo
Sp4rt4n
Senior Member
Join Date: Dec 2004
Old 08-24-2005 , 22:43  
Reply With Quote #3

oh, thank you

i should start using that page i spose
Sp4rt4n is offline
Send a message via MSN to Sp4rt4n
atambo
Senior Member
Join Date: Oct 2004
Location: Pittsburgh, PA
Old 08-24-2005 , 22:53  
Reply With Quote #4

lol I just happen to be doing something with them right now so I have them handy
__________________
atambo is offline
Send a message via AIM to atambo Send a message via MSN to atambo Send a message via Yahoo to atambo
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 14:25.


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