Page 1 of 1

Gyvybių nustatymas

Posted: 2014 Oct 05 13:13
by Ofaz
sveiki, iškilo tokia problema - pasirašiau kodą, kad nustatytų žaidėjui gyvybes. nustatau, kad padarytų 50, o prideda 50 ir iš viso būna 150. kaip ištaisyt?

Code: Select all

#include <amxmodx>#include <hamsandwich>#include <fun> public plugin_init( ){    register_plugin("Gyvybes","0.1","TheManWhoDoesntKnowHowToCodeAmxx")    RegisterHam( Ham_Spawn, "player", "CBasePlayer_Spawn", true )} public CBasePlayer_Spawn( id ){    if( !is_user_alive( id ) )    {        return     }        set_user_health( id, get_user_health( id ) + 50 )}

Re: Gyvybių nustatymas

Posted: 2014 Oct 05 13:36
by hleV
get_user_health( id ) + 5050

Re: Gyvybių nustatymas

Posted: 2014 Oct 05 13:40
by Ofaz
hleV wrote:get_user_health( id ) + 5050
ačiū