Raised This Month: $51 Target: $400
 12% 

ayuda


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
luis enrique
Member
Join Date: Oct 2017
Location: peru
Old 10-31-2017 , 13:49   ayuda
Reply With Quote #1

hello friends I need a help I want to know if someone knows how to put the logo (Core -ss.org) apologize my english

Last edited by luis enrique; 05-31-2018 at 13:16.
luis enrique is offline
Bobakanoosh
Senior Member
Join Date: Sep 2015
Location: United States
Old 10-31-2017 , 18:57   Re: ayuda
Reply With Quote #2

PHP Code:
#include <sdktools>

// Directory to VTF & VMT file
char g_sOverlay[PLATFORM_MAX_PATH] = "overlays/logo";

#pragma newdecls required

public Plugin myinfo 
{
    
name "Overlay",
    
author "Bobakanoosh",
    
description "Overlays a picture to all clients",
    
version "1.0.0",
    
url ""
};

public 
void OnPluginStart() {

    
    
}

public 
void OnMapStart() {

    
char sBuffer[PLATFORM_MAX_PATH];

    
Format(sBuffersizeof(sBuffer), "materials/%s.vmt"g_sOverlay);
    
AddFileToDownloadsTable(sBuffer);

    
Format(sBuffersizeof(sBuffer), "materials/%s.vtf"g_sOverlay);
    
AddFileToDownloadsTable(sBuffer);
    
    
PrecacheDecal(g_sOverlaytrue);

}

public 
void OnClientPostAdminCheck(int client) {

    if (
client || client MaxClients)
        return;

    
ShowOverlayToClient(clientg_sOverlay);

}

stock void ShowOverlayToClient(int client, const char[] overlaypath) {

    
int iFlags GetCommandFlags("r_screenoverlay");

    
SetCommandFlags("r_screenoverlay"iFlags &~ FCVAR_CHEAT);
    
ClientCommand(client"r_screenoverlay \"%s\""overlaypath);
    
SetCommandFlags("r_screenoverlay"iFlags);
    

Should work, you will need to create a Valve Texture File (VTF, try VTFEdit software), along with a VMT.

My VMT file looks like:
PHP Code:
"UnlitGeneric"
{
    
"$basetexture" "overlays/cq/ct_win"
    "
$translucent1

And make sure to upload it to a fastdl server so your players can download it.
Bobakanoosh is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 19:24.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode