AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   return floatround(pev(id, pev_fuser4)); ? (https://forums.alliedmods.net/showthread.php?t=84737)

tuty 01-31-2009 08:11

return floatround(pev(id, pev_fuser4)); ?
 
ok, i have

PHP Code:

    if(!is_user_alive(id))
        return 
0;

    return 
floatround(entity_get_float(idEV_FL_fuser4));


in fakemeta is this?

PHP Code:

    if(!is_user_alive(id))
        return 
0;

    return 
floatround(pev(idpev_fuser4));


?

jim_yang 01-31-2009 08:21

Re: return floatround(pev(id, pev_fuser4)); ?
 
float value passed by ref in pev
Code:

new Float:value
pev(id, pev_fuser4, value)
return floatround(value)


tuty 01-31-2009 08:29

Re: return floatround(pev(id, pev_fuser4)); ?
 
thanx :)


All times are GMT -4. The time now is 01:54.

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