cod_class_skill_used(id) zamien na
public cod_class_skill_used(id)
{
if (!ilosc_min_gracza[id])
{
client_print(id, print_center, "Wykorzystales juz wszystkie miny!");
return PLUGIN_CONTINUE;
}
if(pozostale_spadochrony[id] > 0)
{
if(para_ent[id])
uzywa[id] = false;
else
{
uzywa[id] = true;
}
}
else
ColorChat(id, RED, "Wykorzystales juz wszystkie 5 spadochronow");
ilosc_min_gracza[id]--;
new Float:origin[3];
entity_get_vector(id, EV_VEC_origin, origin);
new ent = create_entity("info_target");
entity_set_string(ent ,EV_SZ_classname, "mine");
entity_set_edict(ent ,EV_ENT_owner, id);
entity_set_int(ent, EV_INT_movetype, MOVETYPE_TOSS);
entity_set_origin(ent, origin);
entity_set_int(ent, EV_INT_solid, SOLID_BBOX);
entity_set_model(ent, model);
entity_set_size(ent,Float:{-16.0,-16.0,0.0},Float:{16.0,16.0,2.0});
drop_to_floor(ent);
set_rendering(ent,kRenderFxNone, 0,0,0, kRenderTransTexture,50);
return PLUGIN_CONTINUE;
}