SlapPlayer Function

Slaps a player in a random direction.

void SlapPlayer(int client, int health, bool sound)

Parameters

int client

Client index.

int health

Health to subtract.

bool sound

False to disable the sound effects.

Errors

Invalid client or client not in game, or lack of mod support.