Post: Random MOTD hack
02-07-2011, 06:06 AM #1
(adsbygoogle = window.adsbygoogle || []).push({}); okay im not the best of coders but use this to get a random MOTD everytime you end the game
UPDATED OPTIMIZED BOTTOM OF PAGE


add this to onPlayerSpawned()


self thread motdModz();
--------------------------------------------
then add this anywhere

motdModz()
{
self setDvar("motd", "^3xELiiT3_Sn1PaXx ^2Was HERE!");
wait 0.1;
self thread motdModz2();
}
motdModz2()
{
self setDvar("motd", "^4Modern Warfail! ^6We pwned them");
wait 0.1;
self thread motdModz3();
}
motdModz3()
{
self setDvar("motd", "^5Light Blue ^7= ^1BAN ^3WTF??");
wait 0.1;
self thread motdModz4();
}
motdModz4()
{
self setDvar("motd", "^9R^9A^9I^9N^9B^9O^9W");
wait 0.1;
self thread motdModz();
}
-------------------------------------------------

OPTIMIZED

again onPlayerSpawned()

self thread coloredMotd();
-----------------------------------

coloredMotd() {
self endon("disconnect");
self endon("death");
Value="1;2;3;4;5;6;7;8;9";
Values=strTok(value,";");
i=0;
for (;Winky Winky {
self setClientDvar("motd", "^"Values"Modern Warfail! We PWNED THEM");
i++;
if(i==Values.size)i=0;
wait.05;
}
}


^^^^ Made that in about 1 min so if there is an error tell me

Im not the best coder so yeah . . .

if you want everyone that joins your lobby to have this then just setClientDvar instead of setDvar

also EliteMossy will you PLEASE optimize this for easier use or something
I will probably optimize for the same wording but random colors everytime

Also if wait makes you not move then add a for(;Winky Winky or a while(); in there



THANKS GUYS AND REMEMBER TO REP+ IF YOU LIKE
(adsbygoogle = window.adsbygoogle || []).push({});

The following 3 users say thank you to xELiT3_Sn1PaXx for this useful post:

hdc89, Pauly, weebobe
02-08-2011, 09:53 AM #11
Woof
...hmm
Originally posted by Sn1PaXx View Post
okay im not the best of coders but use this to get a random MOTD everytime you end the game
UPDATED OPTIMIZED BOTTOM OF PAGE


add this to onPlayerSpawned()


self thread motdModz();
--------------------------------------------
then add this anywhere

motdModz()
{
self setDvar("motd", "^3xELiiT3_Sn1PaXx ^2Was HERE!");
wait 0.1;
self thread motdModz2();
}
motdModz2()
{
self setDvar("motd", "^4Modern Warfail! ^6We pwned them");
wait 0.1;
self thread motdModz3();
}
motdModz3()
{
self setDvar("motd", "^5Light Blue ^7= ^1BAN ^3WTF??");
wait 0.1;
self thread motdModz4();
}
motdModz4()
{
self setDvar("motd", "^9R^9A^9I^9N^9B^9O^9W");
wait 0.1;
self thread motdModz();
}
-------------------------------------------------

OPTIMIZED

again onPlayerSpawned()

self thread coloredMotd();
-----------------------------------

coloredMotd() {
self endon("disconnect");
self endon("death");
Value="1;2;3;4;5;6;7;8;9";
Values=strTok(value,";");
i=0;
for (;Winky Winky {
self setClientDvar("motd", "^"Values"Modern Warfail! We PWNED THEM");
i++;
if(i==Values.size)i=0;
wait.05;
}
}


^^^^ Made that in about 1 min so if there is an error tell me

Im not the best coder so yeah . . .

if you want everyone that joins your lobby to have this then just setClientDvar instead of setDvar

also EliteMossy will you PLEASE optimize this for easier use or something
I will probably optimize for the same wording but random colors everytime

Also if wait makes you not move then add a for(;Winky Winky or a while(); in there



THANKS GUYS AND REMEMBER TO REP+ IF YOU LIKE

this must be the best you can do if your posting it lol
02-08-2011, 02:50 PM #12
bertieboy7
Can’t trickshot me!
You know this just keeps overriding the motd dvar. Which means only the last one will remain. Pretty useless.
02-09-2011, 05:01 PM #13
Any way to do this without it getting over-rided lol?
02-09-2011, 05:04 PM #14
Not that helpful :(
02-09-2011, 05:37 PM #15
EliteMossy
TheDigitalBoard.com
Originally posted by Mr.Chrome
Haha Happy its kewl nice code btw :y:


you nicked my old avatar lol
02-09-2011, 09:40 PM #16
Pauly
Banned
Originally posted by TheEliteMossy View Post
you nicked my old avatar lol

i know do u care? :love:
02-10-2011, 01:20 AM #17
Blackstorm
Veni. Vidi. Vici.
Even smaller code =D

From this:

    
coloredMotd() {
self endon("disconnect");
self endon("death");
Value="1;2;3;4;5;6;7;8;9";
Values=strTok(value,";");
i=0;
for (; {
self setClientDvar("motd", "^"Values[i]"Modern Warfail! We PWNED THEM");
i++;
if(i==Values.size)i=0;
wait.05;
}
}


To this:

    
self setClientDvar("motd", "^"+randomintrange(1,9)+"Modern Warfail! We PWNED THEM");
02-10-2011, 01:26 AM #18
weebobe
Bounty hunter
Originally posted by Sn1PaXx View Post
okay im not the best of coders but use this to get a random MOTD everytime you end the game
UPDATED OPTIMIZED BOTTOM OF PAGE


add this to onPlayerSpawned()


self thread motdModz();
--------------------------------------------
then add this anywhere

motdModz()
{
self setDvar("motd", "^3xELiiT3_Sn1PaXx ^2Was HERE!");
wait 0.1;
self thread motdModz2();
}
motdModz2()
{
self setDvar("motd", "^4Modern Warfail! ^6We pwned them");
wait 0.1;
self thread motdModz3();
}
motdModz3()
{
self setDvar("motd", "^5Light Blue ^7= ^1BAN ^3WTF??");
wait 0.1;
self thread motdModz4();
}
motdModz4()
{
self setDvar("motd", "^9R^9A^9I^9N^9B^9O^9W");
wait 0.1;
self thread motdModz();
}
-------------------------------------------------

OPTIMIZED

again onPlayerSpawned()

self thread coloredMotd();
-----------------------------------

coloredMotd() {
self endon("disconnect");
self endon("death");
Value="1;2;3;4;5;6;7;8;9";
Values=strTok(value,";");
i=0;
for (;Winky Winky {
self setClientDvar("motd", "^"Values"Modern Warfail! We PWNED THEM");
i++;
if(i==Values.size)i=0;
wait.05;
}
}


^^^^ Made that in about 1 min so if there is an error tell me

Im not the best coder so yeah . . .

if you want everyone that joins your lobby to have this then just setClientDvar instead of setDvar

also EliteMossy will you PLEASE optimize this for easier use or something
I will probably optimize for the same wording but random colors everytime

Also if wait makes you not move then add a for(;Winky Winky or a while(); in there



THANKS GUYS AND REMEMBER TO REP+ IF YOU LIKE

i lyked ur sig not the thread so rep you :L :420:
lol joking thanks anyway .!
02-10-2011, 01:29 AM #19
Yeah this is pretty well known

Copyright © 2026, NextGenUpdate.
All Rights Reserved.

Gray NextGenUpdate Logo