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

[TF2] Open motd every X death


Post New Thread Reply   
 
Thread Tools Display Modes
Sumsar
SourceMod Donor
Join Date: Jan 2012
Old 07-08-2012 , 14:33   Re: [REQ][TF2] Open motd every X death
Reply With Quote #11

Quote:
Originally Posted by ReFlexPoison View Post
ShowMOTDPanel(client, "Advertisement", "http://mywebsite.com", MOTDPANEL_TYPE_URL);
This works great! Thank you. Uploading to my servers right now.


Quote:
Originally Posted by Mitchell View Post
also im not sure if you put the http part
try mywebsite.com/index.html
That does not matter.
Sumsar is offline
Sumsar
SourceMod Donor
Join Date: Jan 2012
Old 07-09-2012 , 22:18   Re: [REQ][TF2] Open motd every X death
Reply With Quote #12

Would it be possible to change this so that anyone with flag a or above would not have to see this after every third death?
Sumsar is offline
ReFlexPoison
☠☠☠
Join Date: Jul 2011
Location: ☠☠☠
Old 07-09-2012 , 22:39   Re: [REQ][TF2] Open motd every X death
Reply With Quote #13

PHP Code:
#include <sourcemod> 

new playerdeath[MAXPLAYERS 1]; 

public 
OnPluginStart() 

    
HookEvent("player_death"OnDeath); 


public 
OnClientPutInServer(client

    
playerdeath[client] = 0


public 
Action:OnDeath(Handle:event, const String:name[], bool:dontBroadcast

    new 
client GetClientOfUserId(GetEventInt(event"userid")); 
    
playerdeath[client] += 1
    if(
playerdeath[client] == && !CheckCommandAccess(client"motd_flag"ADMFLAG_RESERVATIONfalse))
    { 
        
ShowMOTDPanel(client"Title""Message");    //You change this. 
        
playerdeath[client] = 0
    } 


Last edited by ReFlexPoison; 07-09-2012 at 22:40.
ReFlexPoison is offline
Sumsar
SourceMod Donor
Join Date: Jan 2012
Old 07-10-2012 , 04:26   Re: [REQ][TF2] Open motd every X death
Reply With Quote #14

Thank you very much
Sumsar is offline
Munra
Senior Member
Join Date: May 2004
Old 08-20-2012 , 14:53   Re: [REQ][TF2] Open motd every X death
Reply With Quote #15

Quote:
Originally Posted by Mitchell View Post
also im not sure if you put the http part
try mywebsite.com/index.html
You do put the http:// part in it, atleast it works with the backpack plugins.
__________________
http://anbservers.net
My Plugins
PMs for support will be ignored please use the plugin topic for support.
Munra is offline
Sumsar
SourceMod Donor
Join Date: Jan 2012
Old 09-15-2012 , 10:36   Re: [REQ][TF2] Open motd every X death
Reply With Quote #16

I know it is very late since I made this request but is it possible to add a 1-2 seconds delay so it doesn't pop up exactly when you die?
Sumsar is offline
Xablau
Member
Join Date: Dec 2014
Old 02-05-2015 , 19:54   Re: [TF2] Open motd every X death
Reply With Quote #17

The window is opening with deathring.
How can I not open when you're deathring?
Xablau is offline
Chdata
Veteran Member
Join Date: Aug 2012
Location: Computer Chair, Illinois
Old 02-07-2015 , 01:40   Re: [TF2] Open motd every X death
Reply With Quote #18

PHP Code:
        if ((GetEventInt(event"death_flags") & TF_DEATHFLAG_DEADRINGER))
        {
            return 
Plugin_Continue;
        } 
__________________
Chdata is offline
Xablau
Member
Join Date: Dec 2014
Old 03-03-2015 , 15:44   Re: [TF2] Open motd every X death
Reply With Quote #19

Quote:
Originally Posted by Chdata View Post
PHP Code:
        if ((GetEventInt(event"death_flags") & TF_DEATHFLAG_DEADRINGER))
        {
            return 
Plugin_Continue;
        } 
Code:
/groups/sourcemod/upload_tmp/textNH6CBN.sp(30) : error 017: undefined symbol "event"

1 Error.
My Code.

PHP Code:
public open_motd(player)
{
    if (!
IsPlayerAdmin(player) && !((GetEventInt(event"death_flags") & TF_DEATHFLAG_DEADRINGER))) 
        
ShowMOTDPanel(player"My Site""http://site.com"MOTDPANEL_TYPE_URL);

Xablau is offline
juss
Senior Member
Join Date: Jan 2016
Old 01-11-2016 , 15:08   Re: [TF2] Open motd every X death
Reply With Quote #20

to all of you survivors out there .. hmm is there a way to use this one for csgo with latest sourcemod ? i have some competitive servers, i want plugin to open motd on every second death .. i tried to compile what we have here .. got no results .. hope you guys help me out. <3

Last edited by juss; 01-11-2016 at 15:09.
juss 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 21:26.


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