Mainfield
01-17-2012, 17:18
Hi.
Is there a way to rewrite those messages on CT or T (winpanels), the displays from valve for example what the MVP this round is and why?
Or is there no chance?
This code i found here in the forums doesnt work for me:
CHECK = 0;
public CSS_MVP(Handle:Event, const String:Name[], bool:Broadcast)
{
// Sometimes console gets MVP, exclude it
if(GetEventInt(Event, "userid") == 0)
return Plugin_Continue;
// Get MVP's client index
new UID = GetEventInt(Event, "userid");
// Check if this is our created event
if(CHECK > 0)
{
// This is our assigned MVP
LogToGame("UserIdOfMVP=\"%i\"", UID);
// Reset CHECK var to 0
CHECK = 0;
return Plugin_Continue;
}
// Get UserId of GunGame leader
new GGLDR = GetClientUserId(CurrentLeader);
LogToGame("UserIdOf: MVP=\"%i\", GGLeader=\"%i\"", UID, GGLDR);
// This is the game's event, Set CHECK var to allow passing of our created event
CHECK = 1;
// Create new event and assign gungame leader to round MVP
new Handle:newEvent = CreateEvent("round_mvp", true);
SetEventInt(newEvent, "userid", GGLDR);
FireEvent(newEvent, false);
// This is to prevent the game's event from broadcasting
return Plugin_Handled;
}
Just edited the id to something else fpr test purpose, just shows up the normal winpanel without any changes...
maybe, if userid works on round_mvp, is there a way that we can set the reason to display in the panel, too?
Is there a way to rewrite those messages on CT or T (winpanels), the displays from valve for example what the MVP this round is and why?
Or is there no chance?
This code i found here in the forums doesnt work for me:
CHECK = 0;
public CSS_MVP(Handle:Event, const String:Name[], bool:Broadcast)
{
// Sometimes console gets MVP, exclude it
if(GetEventInt(Event, "userid") == 0)
return Plugin_Continue;
// Get MVP's client index
new UID = GetEventInt(Event, "userid");
// Check if this is our created event
if(CHECK > 0)
{
// This is our assigned MVP
LogToGame("UserIdOfMVP=\"%i\"", UID);
// Reset CHECK var to 0
CHECK = 0;
return Plugin_Continue;
}
// Get UserId of GunGame leader
new GGLDR = GetClientUserId(CurrentLeader);
LogToGame("UserIdOf: MVP=\"%i\", GGLeader=\"%i\"", UID, GGLDR);
// This is the game's event, Set CHECK var to allow passing of our created event
CHECK = 1;
// Create new event and assign gungame leader to round MVP
new Handle:newEvent = CreateEvent("round_mvp", true);
SetEventInt(newEvent, "userid", GGLDR);
FireEvent(newEvent, false);
// This is to prevent the game's event from broadcasting
return Plugin_Handled;
}
Just edited the id to something else fpr test purpose, just shows up the normal winpanel without any changes...
maybe, if userid works on round_mvp, is there a way that we can set the reason to display in the panel, too?