Gyvybių nustatymas
Posted: 2014 Oct 05 13:13
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 )}