Witam. Posiadam tablicę:
new const g_bronie[3][] = { "Wszyscy", "T", "CT" }
I chciałbym teraz aby do kodu:
ActionHeal(id, ent) { static property[5]; GetProperty(ent, 5, property); new i = str_to_num(property); if(i == 'Wszystkich' || cs_get_user_team(id) == CS_TEAM_) { new Float:gametime = get_gametime(); if ( !( gametime >= g_next_heal_time[id] ) ) return PLUGIN_HANDLED; new health = get_user_health(id); if ( health >= 100 ) return PLUGIN_HANDLED; GetProperty(ent, 1, property); health += str_to_num(property); fm_set_user_health(id, min(100, health)); GetProperty(ent, 2, property); g_next_heal_time[id] = gametime + str_to_float(property); return PLUGIN_HANDLED; } }
W miejscu CS_TEAM_ na końcu dodać wartość zmiennej i