| Varchar' |
07-10-2013 03:26 |
Not change the models
Hi, I have a little problem with the weapons menu, which I Sets the models, v_ and p_, this is the part where the models change, not whether there will be a problem in the precache
PHP Code:
new buffer[100]
if(weaponid == bufferp[id])
{
ArrayGetString(g_weapon_vmodel[0], SELECTION_P[id], buffer, charsmax(buffer))
format(buffer, charsmax(buffer), ubicacion, buffer)
entity_set_string(id, EV_SZ_viewmodel, buffer)
ArrayGetString(g_weapon_pmodel[0], SELECTION_P[id], buffer, charsmax(buffer))
format(buffer, charsmax(buffer), ubicacion, buffer)
entity_set_string(id, EV_SZ_weaponmodel, buffer)
}
else if(weaponid == buffers[id])
{
ArrayGetString(g_weapon_vmodel[1], SELECTION_S[id], buffer, charsmax(buffer))
format(buffer, charsmax(buffer), ubicacion, buffer)
entity_set_string(id, EV_SZ_viewmodel, buffer)
ArrayGetString(g_weapon_pmodel[1], SELECTION_S[id], buffer, charsmax(buffer))
format(buffer, charsmax(buffer), ubicacion, buffer)
entity_set_string(id, EV_SZ_weaponmodel, buffer)
}
|