ye no fail post afterall xD thought u can still see the radar after the fade, which apparently is NOT the case ;)
here it is:
PHP Code:
#include <sourcemod>
#define FFADE_OUT 0x0002
#define FFADE_STAYOUT 0x0008
#define FFADE_PURGE 0x0010
public Plugin:myinfo =
{
name = "FadeForce",
author = "Dreamy",
description = "mp_forcecam done via screen fade",
version = "1.0",
url = "SourceMod.net"
}
public OnPluginStart()
{
ServerCommand("mp_forcecamera 0");
ServerCommand("mp_fadetoblack 0");
HookEvent("player_spawn", Event_Spawn);
HookEvent("player_death", Event_Death);
}
public Event_Spawn(Handle:event, const String:name[], bool:dontBroadcast)
{
new client = GetClientOfUserId(GetEventInt(event, "userid"));
if (GetClientTeam(client) < 2)
FadeToBlack(client);
}
public Event_Death(Handle:event, const String:name[], bool:dontBroadcast)
FadeToBlack(GetClientOfUserId(GetEventInt(event, "userid")));
FadeToBlack(client)
{
if (GetUserAdmin(client) != INVALID_ADMIN_ID)
return;
new Handle:hFadeClient = StartMessageOne("Fade",client);
BfWriteShort(hFadeClient, 0);
BfWriteShort(hFadeClient, 0);
BfWriteShort(hFadeClient, (FFADE_OUT|FFADE_PURGE|FFADE_STAYOUT));
BfWriteByte(hFadeClient, 0);
BfWriteByte(hFadeClient, 0);
BfWriteByte(hFadeClient, 0);
BfWriteByte(hFadeClient, 255);
EndMessage();
}
what else do u want?