Witajcie dziś troche grzebałem w sma Paintball Próbuje ustawić zeby gracze widzieli model krowy i p90 mi to nie wychodzi tylko widza mp5 jak trzymie krowe i p90 . i chciałbym sie dowiedzieć czy to jest poprawnie zrobione
public ev_curweapon(id)
{new model[25];pev(id, pev_viewmodel2, model, 24);if (equali(model, "models/v_mp5.mdl") && get_pcvar_num(pbgun)){set_pev(id, pev_viewmodel2, (get_user_team(id) == 1) ? g_pbgun_models[tgun] : g_pbgun_models[ctgun]);set_pev(id, pev_weaponmodel2, (ctgun) ? "models/p_pbgun1.mdl" : "models/p_pbgun.mdl");}else if (equali(model, "models/v_usp.mdl") && get_pcvar_num(pbusp)){set_pev(id, pev_viewmodel2, "models/v_pbusp.mdl");set_pev(id, pev_weaponmodel2, "models/p_pbusp.mdl");}else if (equali(model, "models/v_glock18.mdl") && get_pcvar_num(pbglock)){set_pev(id, pev_viewmodel2, "models/v_pbglock.mdl");set_pev(id, pev_weaponmodel2, "models/p_pbglock.mdl");}else if (equali(model, "models/v_p90.mdl") && get_pcvar_num(pbgunvip)){set_pev(id, pev_viewmodel2, "models/v_pbgun2x5.mdl");set_pev(id, pev_weaponmodel2, (ctgun) ? "models/p_pbgun1.mdl" : "models/p_pbgun.mdl");}else if (equali(model, "models/v_m249.mdl") && get_pcvar_num(pbgunvip)){set_pev(id, pev_viewmodel2, "models/v_pb2496x.mdl");set_pev(id, pev_weaponmodel2, (ctgun) ? "models/p_pbgun1.mdl" : "models/p_pbgun.mdl");}