case 45:
{
player_item_name[id] = "Magiczne Kucniecie"
player_item_id[id] = rannum
player_b_froglegs[id] = 1
ColorChat(0, GREEN,"^x01Gracz:^x04 %s^x01 znalazl przedmiot -^x04 %s", name, player_item_name[id])
show_hudmessage(id, "Znalazles przedmiot: %s :: Kucnij na 3 sekundy, a zrobisz dlugi skok",player_item_name[id])
}
to jest chyba ta cala moc:
public Prethink_froglegs(id)
{
if (get_user_button(id) & IN_DUCK)
{
//start holding down button here, set to halflife time
if (player_b_froglegs[id] == 1)
{
player_b_froglegs[id] = floatround(halflife_time())
}
else
{
if (floatround(halflife_time())-player_b_froglegs[id] >= 2.0)
{
new Float:fl_iNewVelocity[3]
VelocityByAim(id, 1000, fl_iNewVelocity)
fl_iNewVelocity[2] = 210.0
entity_set_vector(id, EV_VEC_velocity, fl_iNewVelocity)
player_b_froglegs[id] = 1
}
}
}
else
{
player_b_froglegs[id] = 1
}
}
oraz zeby an nozu ladowala sie mniejsza grawitacja.
Użytkownik teles190 edytował ten post 13.05.2012 08:37