AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   A little porting help (https://forums.alliedmods.net/showthread.php?t=17044)

Sp4rt4n 08-24-2005 22:35

A little porting help
 
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)         }     }

atambo 08-24-2005 22:42

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

Sp4rt4n 08-24-2005 22:43

oh, thank you :)

i should start using that page i spose :P

atambo 08-24-2005 22:53

lol I just happen to be doing something with them right now so I have them handy :P


All times are GMT -4. The time now is 14:25.

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