Raised This Month: $ Target: $400
 0% 

Show different motd on round end


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Kerem Er
Member
Join Date: Mar 2015
Old 11-14-2015 , 17:17   Show different motd on round end
Reply With Quote #1

............

Last edited by Kerem Er; 02-23-2016 at 09:21.
Kerem Er is offline
Maxximou5
AlliedModders Donor
Join Date: Feb 2013
Old 11-14-2015 , 17:33   Re: Show different motd on round end
Reply With Quote #2

What do you mean by 'show'?
Post what you've done so far, this is the scripting section not the request section.
Maxximou5 is offline
Kerem Er
Member
Join Date: Mar 2015
Old 11-14-2015 , 17:43   Re: Show different motd on round end
Reply With Quote #3

............

Last edited by Kerem Er; 02-23-2016 at 09:21.
Kerem Er is offline
BAILANDO
Senior Member
Join Date: Feb 2015
Location: Slovakia
Old 11-14-2015 , 18:15   Re: Show different motd on round end
Reply With Quote #4

Code:
public Action:Timer_MOTD(Handle:timer) {     new num = GetRandomInt(1, 5);     for (new i = 1; i <= MaxClients; i++)     {         if (IsClientInGame(i) && !IsFakeClient(i))         {             if (num == 1)             {                 ShowMOTDPanel(i, "Reklam", "http://google.com/test1", MOTDPANEL_TYPE_URL);             }             else if(num == 2)             {                 ShowMOTDPanel(i, "Reklam", "http://google.com/test2", MOTDPANEL_TYPE_URL);             }             else if(num == 3)             {                 ShowMOTDPanel(i, "Reklam", "http://google.com/test3", MOTDPANEL_TYPE_URL);             }             else if(num == 4)             {                 ShowMOTDPanel(i, "Reklam", "http://google.com/test4", MOTDPANEL_TYPE_URL);             }             else if(num == 5)             {                 ShowMOTDPanel(i, "Reklam", "http://google.com/test5", MOTDPANEL_TYPE_URL);             }         }     }     return Plugin_Continue; }
BAILANDO is offline
BAILANDO
Senior Member
Join Date: Feb 2015
Location: Slovakia
Old 11-14-2015 , 18:18   Re: Show different motd on round end
Reply With Quote #5

or

Code:
public Action:Timer_MOTD(Handle:timer) {     new num = GetRandomInt(1, 5);     for (new i = 1; i <= MaxClients; i++)     {         switch(num)         {             case 1:             {                 ShowMOTDPanel(i, "Reklam", "http://google.com/test1", MOTDPANEL_TYPE_URL);             }             case 2:             {                 ShowMOTDPanel(i, "Reklam", "http://google.com/test2", MOTDPANEL_TYPE_URL);             }             case 3:             {                 ShowMOTDPanel(i, "Reklam", "http://google.com/test3", MOTDPANEL_TYPE_URL);             }             case 4:             {                 ShowMOTDPanel(i, "Reklam", "http://google.com/test4", MOTDPANEL_TYPE_URL);             }             case 5:             {                 ShowMOTDPanel(i, "Reklam", "http://google.com/test5", MOTDPANEL_TYPE_URL);             }                         }     }     return Plugin_Continue; }
BAILANDO is offline
tommie113
AlliedModders Donor
Join Date: Oct 2013
Old 11-14-2015 , 19:25   Re: Show different motd on round end
Reply With Quote #6

Solved with him through steam.

Code removed on request from him.
Even though it's not a big script which is not reproducable and the fact that I have all rights to publish, I removed it for him.
__________________
No longer taking requests due to lack of time and interrest.
Only helping out with minor things through forum.

Last edited by tommie113; 11-14-2015 at 19:57. Reason: Removed code on request from Kerem
tommie113 is offline
DarkDeviL
SourceMod Moderator
Join Date: Apr 2012
Old 11-14-2015 , 20:27   Re: Show different motd on round end
Reply With Quote #7

Quote:
Originally Posted by tommie113 View Post
Even though it's not a big script which is not reproducable and the fact that I have all rights to publish, I removed it for him.
No offense, but theoretically I would say that part of it violates the AlliedModders Rules, as you are "blanking out" (removing) the final solution.

What if a John Doe would ask the exact same question next week?
__________________
Mostly known as "DarkDeviL".

Dropbox FastDL: Public folder will no longer work after March 15, 2017!
For more info, see the [SRCDS Thread], or the [HLDS Thread].
DarkDeviL 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 06:37.


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