Raised This Month: $ Target: $400
 0% 

[TF2] Open motd every X death


Post New Thread Reply   
 
Thread Tools Display Modes
psychonic

BAFFLED
Join Date: May 2008
Old 01-11-2016 , 17:23   Re: [TF2] Open motd every X death
Reply With Quote #21

You can simplify a little more if you want.
PHP Code:
public Action:OnDeath(Handle:event, const String:name[], bool:dontBroadcast)
{
    new 
client GetClientOfUserId(GetEventInt(event"userid"));
    if(!((++
playerdeath[client]) % 3))
    {
        
ShowMOTDPanel(client"Advertisement""http://mywebsite.com");    //You change this.
    
}

psychonic is offline
juss
Senior Member
Join Date: Jan 2016
Old 01-12-2016 , 01:51   Re: [TF2] Open motd every X death
Reply With Quote #22

Quote:
Originally Posted by psychonic View Post
You can simplify a little more if you want.
PHP Code:
public Action:OnDeath(Handle:event, const String:name[], bool:dontBroadcast)
{
    new 
client GetClientOfUserId(GetEventInt(event"userid"));
    if(!((++
playerdeath[client]) % 3))
    {
        
ShowMOTDPanel(client"Advertisement""http://mywebsite.com");    //You change this.
    
}

will this work for csgo ? and can you explain a bit .. do i have to just compile this code to smx file? for example use their web compiler (http://www.sourcemod.net/compiler.php)? sorry , just confused a bit .. never done plugins before. thanks for understanding <3

Last edited by juss; 01-12-2016 at 01:51.
juss is offline
psychonic

BAFFLED
Join Date: May 2008
Old 01-12-2016 , 07:54   Re: [TF2] Open motd every X death
Reply With Quote #23

No, I don't think that you can open the normal MOTD screen on CS:GO at any time other than at player join. I believe that there are some workarounds for that, but I'm not familiar with them.

I mistakenly thought this was an active thread and didn't even notice your previous post that turned out to just be a necropost anyway.
psychonic is offline
juss
Senior Member
Join Date: Jan 2016
Old 01-12-2016 , 08:32   Re: [TF2] Open motd every X death
Reply With Quote #24

thanks for the time tho! <3
juss is offline
Mitchell
~lick~
Join Date: Mar 2010
Old 01-12-2016 , 10:17   Re: [TF2] Open motd every X death
Reply With Quote #25

You would need to edit the script, and have your own domain to open the url as a popup.
Mitchell is offline
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 05:06.


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