SendConVarValue
Quote:
Notes:
Replicates a convar value to a specific client. This does not change the actual convar value.
|
PHP Code:
bool:SendConVarValue(client, Handle:convar, const String:value[]);
PHP Code:
new Handle:sv_downloadurl = INVALID_HANDLE;
public OnPluginStart()
{
HookEvent("player_activate", PlayerActive, EventHookMode_Post);
sv_downloadurl = FindConVar("sv_downloadurl");
}
public PlayerActive(Handle:event, const String:name[], bool:dontBroadcast)
{
decl client;
client = GetClientOfUserId(GetEventInt(event, "userid"));
if(!IsFakeClient(client))
{
SendConVarValue(client, sv_downloadurl, "http://webspace/cstrike/");
}
}
Hahahaha
Now you can replace your server "fastdownload" address to another from all players.
They still download missing content from your real server sv_downloadurl "address"