Witam.
Ma ktoś pomysł jak zrobić aby gracz chodził po cichu? Tylko jeden, taka jakby moc.
Próbowałem tak:
AddNormalSoundHook(NormalSHook:sound_hook);
public Action:sound_hook(clients[64], &numClients, String:sample[PLATFORM_MAX_PATH], &entity, &channel, &Float:volume, &level, &pitch, &flags)
{
if(StrContains(sample, "player/footsteps", false) != -1)
{
StopSound(entity, channel, sample);
ClientCommand(clients[0], "playgamesound Music.StopAllMusic");
PrintToChatAll("Normal Sound: %s", sample);
return Plugin_Handled;
}
return Plugin_Continue;
}
oraz zabierałem graczowi flage FL_ONGROUND.
Pierwszy sposób nie działa, drugi powoduje że gracz ciągle kuca chociaż już nie trzyma ctrl.


Dodatki SourceMod
















