SAPE ERROR: Не могу подключиться к серверу: dispenser-01.saperu.net/code.php?user=836f97673aa6aa25a35b5029263ee232&host=amxxmodx.ru&charset=windows-1251&format=serialize, type: file_get_contents

SAPE ERROR: Не могу подключиться к серверу: dispenser-02.saperu.net/code.php?user=836f97673aa6aa25a35b5029263ee232&host=amxxmodx.ru&charset=windows-1251&format=serialize, type: file_get_contents

get_user_gravity » AmxModX
| |
 RSS
  • OnLine

    : 7
    : 5
    : -
    : crawl Bot, Yandex Bot

    ?

    • AMX Mod X
    • up.org.ua


  • : Admin : 16-08-2011, 19:04 : 3910

    get_user_gravity

    get_user_gravity - .

    fun.inc:
    /* Returns users gravity. */
    native Float:get_user_gravity(index);


    :
    Float: get_user_gravity ( index )

    index - id


    :
    #include <amxmodx>
    #include <amxmisc>
    #include <fun>

    #define PLUGIN "Get user gravity"
    #define VERSION "1.0"
    #define AUTHOR "Admin"


    public plugin_init() {
        register_plugin(PLUGIN, VERSION, AUTHOR)
        
        register_clcmd("say /get-user-gravity","get_gravity")
    }
    public get_gravity(id){
        
        new Float:user_gravity[32]
        user_gravity[id] = get_user_gravity(id)
        client_print(id,print_center,"You gravity is %.2f",user_gravity[id])
        client_print(id,print_chat,"You gravity is %.2f",user_gravity[id])

    }


    :
    say /get-user-gravity, get_gravity, , %.2f f - , 2 .

    ! - , , :
    800 :
    ) 1 - 800
    ) 0.5 - 400
    ) 2 - 1600
    , .
    , .
    .
    get_user_gravity