Więc zrobiłem tak:
new assaultlevel = g_PlayerBadges[id][BADGE_ASSAULT];
if ( assaultlevel )
{
new hp;
hp = 100 + (assaultlevel*10);
if (assaultlevel==4)
{
hp = 130;
if(cs_get_user_team(id) == CS_TEAM_T)
{
fm_give_item(id, "weapon_ak47");
}
else
{
fm_give_item(id, "weapon_m4a1");
}
}
if ( get_user_health(id) < hp )
{
set_user_health(id, hp);
if ( pev(id, pev_max_health) < float(hp) )
{
set_pev(id, pev_max_health, float(hp));
}
givenitem = true;
}
}
I działa pięknie tylko chciałbym żeby dawało ak/m4 od drugiej rundy. Jaki warunek postawić? if (round > 1) nie działa
Użytkownik albino edytował ten post 22.03.2012 22:36