Łap
sm_skill.smx
#define IsValidAlive(%1) ( 1 <= %1 <= MaxClients && IsClientInGame(%1) && IsPlayerAlive(%1) )
public OnPluginStart()
{
RegConsoleCmd("sm_skill", CMD_SKILL, "Skill");
}
public Action CMD_SKILL(int client, int args)
{
if(IsValidAlive(client))
{
SetEntPropFloat(client, Prop_Send, "m_flLaggedMovementValue", 1.4);
CreateTimer(7.0, TIMER_SKILL, GetClientUserId(client));
}
}
public Action TIMER_SKILL(Handle hTimer, int userid)
{
int client = GetClientOfUserId(userid);
if(IsValidAlive(client))
{
SetEntPropFloat(client, Prop_Send, "m_flLaggedMovementValue", 1.0);
}
}