Raised This Month: $32 Target: $400
 8% 

Solved overlay fix


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Sanjay Singh
Veteran Member
Join Date: Sep 2016
Old 08-27-2021 , 09:23   overlay fix
Reply With Quote #1

Solved.

It's not working, I want to show a permanent banner to all users when they enter the server.

Include: https://forums.alliedmods.net/showthread.php?t=298248

PHP Code:
//Includes
#include <sourcemod>
#include <sdktools>   //need for adding files to download table
#include <overlays>


//Compiler Options   //Optional, but please keep your code clean!
#pragma semicolon 1
#pragma newdecls required


//use a define or if needed (for cvars) a string
#define OVERLAYPATH "amsgamers/overlay"   //Path to the overlay relative to materials/.. - no need for extentions like .vmt or .vft

public Plugin myinfo = {
    
name        "AmS LOGO",
    
author      "AmS` SkY#IN",
    
description "Shows AmS BAnner",
    
version     "0.1",
    
url         "http://www.amsgaming.in"
};


public 
void OnMapStart()
{
    
PrecacheDecalAnyDownload(OVERLAYPATH);
}

public 
void OnClientPutInServer(int client)
{
    
ShowOverlay(clientOVERLAYPATH0.0);

__________________

Last edited by Sanjay Singh; 09-04-2021 at 04:44.
Sanjay Singh is offline
Send a message via AIM to Sanjay Singh
Reply


Thread Tools
Display Modes

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 11:20.


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