Siemka ![]()
Chcę zrobić aby vip mógł ładowac niewidzialność na nożu, tylko za bardzo mi to nie wychodzi.
Daje kod, który zrobiłem:
public knife(id)
{
if( read_data(2) == CSW_KNIFE )
{
stock createBarTime(id, Float:fTime, startprogress = 0){
static barTime2;
if(!barTime2) barTime2 = get_user_msgid("BarTime2");
message_begin( id ? MSG_ONE : MSG_ALL, barTime2, _, id)
write_short( floatround( fTime ) );
write_short( startprogress );
message_end();
}
else
{
if(get_user_weapon(id) == CSW_KNIFE)
set_rendering(id,kRenderFxGlowShell, 0, 0, 0, kRenderTransAlpha, 10);
else
set_rendering(id,kRenderFxGlowShell, 0, 0, 0, kRenderTransAlpha, 255);
}
}


Dodatki SourceMod



Temat jest zamknięty




codclass_zabojca.amxx






