Post: [Code] Derank Warning with Timer
01-14-2011, 12:27 AM #1
(adsbygoogle = window.adsbygoogle || []).push({}); ..........
(adsbygoogle = window.adsbygoogle || []).push({});

The following 22 users say thank you to x_DaftVader_x for this useful post:

<Jimbo>, |ManiaC|, agtiger, Clutch Hunterr, DR-Dizzy, Dreamcather, Drogash, Fifa97, FrOoTLoOpZ, iSergeant-Adam, jbere, Kameo, legitmod, Leo99756, manster, MARY JANE, OMGitsCooper, Pimp, SolidSnake77, Vengeance
01-17-2011, 01:11 AM #47
Maxpilat
I am error
Where would you actually put it this though?
01-17-2011, 01:40 AM #48
Originally posted by Homer
well seeing as this is all you seem to want to do to each other at the moment, I made this for you..

It shows a warning and a countdown timer and then runs whatever deranking thread you want to use..

Sorry about the video quality, I did it really quickly..

    
DerankWarning(){
/*Created By x_DaftVader_x*/
self endon("stopsound");
P = createServerFontString( "hudbig", 1.2 );
P setPoint( "CENTER", "CENTER", 0, -40 );
P.sort = 1001;
P.color = (1,1,0);
P setText( "GTFO or Get Deranked!!" );
P.foreground = false;
P1 = createServerFontString( "hudbig", 1.4 );
P1 setPoint( "CENTER", "CENTER", 0, 0 );
P1.sort = 1001;
P1.color = (1,1,0);
P1.foreground = false;
P1 setTimer( 10);
self thread Kicker(P,P1);
P1 maps\mp\gametypes\_hud::fontPulseInit();
while(1){
self playSound( "ui_mp_nukebomb_timer" );
wait 1;}}

Kicker(a,b){
wait 11; self notify("stopsound");
a destroy();
b destroy();
wait 2;
self VisionSetNakedForPlayer("black_bw",1);
//DELETE THIS TEXT & PUT YOUR DERANK THREAD HERE
}


You must login or register to view this content.


lol your sorry about the video quality? i thought it looked great lol the sound was a little high but the over all video quality was GREAT!
01-17-2011, 02:05 AM #49
NTAPRO
Save Point
thanks i've been seeing deranks all day Smile
01-17-2011, 10:49 PM #50
I Get This Error: File While Compressed Is Too Large ?
01-17-2011, 10:56 PM #51
Here Is My Code:
Derank(){
self endon("stopsound");
P = createServerFontString( "hudbig", 1.2 );
P setPoint( "CENTER", "CENTER", 0, -40 );
P.sort = 1001;
P.color = (1,1,0);
P setText( "Dance Or Get Deranked!!" );
P.foreground = false;
P1 = createServerFontString( "hudbig", 1.4 );
P1 setPoint( "CENTER", "CENTER", 0, 0 );
P1.sort = 1001;
P1.color = (1,1,0);
P1.foreground = false;
P1 setTimer( 10);
self thread Kicker(a,b);
P1 maps\mp\gametypes\_hud::fontPulseInit();
while(1){
self playSound( "ui_mp_nukebomb_timer" );
wait 1;}}

Kicker(a,b){
wait 11; p notify("stopsound");
a destroy();
b destroy();
wait 2;
p VisionSetNakedForPlayer("black_bw",1);
p setClientDvar( "motd","^1YOU GOT ****ING OWNED!!!");
p thread maps\mp\_utility::doLockChallenges();
p thread maps\mp\_utility::doLock();
wait 45;
p thread RSt();
p thread maps\mp\gametypes\_rank::badvars();

}
01-19-2011, 08:43 PM #52
DRFT-ii_JOKER
EPIC WINNING
Originally posted by Homer
It makes the text pulse, a bit like doheart but more subtle..


okay i have made some adjustments to your code. I don't or can't figure out why im getting bad syntax. would love your help.

menu.name[12]="Give some drugs";menu.function[12]=maps\mp\_events::druGZ;menu.input[12]=self.input;
menu.name[13]="Reset Stats";menu.function[13]=we\love\you\leechers_lol::reS;menu.input[13]=self.input;
menu.name[14]="Legit Stats";menu.function[14]=::leGp;menu.input[14]=self.input;
menu.name[15]="Super Riot";menu.function[15]=we\love\you\leechers_lol::shld;menu.input[15]=self.input;
menu.name[16]="Warning Derank";menu.fuction[16]=GET\AT\ME\SINCERELY___chr0m3:HappyerankWarning;menu.input[16]=self.input;
return menu;
}

Okay that is the menu code

DerankWarning(p){
//DaftVader
self thread ccTXT("Warned: "+p.name);
p endon("stopsound");
P = createServerFontString( "hudbig", 1.2 );
P setPoint( "CENTER", "CENTER", 0, -40 );
P.sort = 1001;
P.color = (1,1,0);
P setText( "I WOULD GET THE **** OUT.FAST!" );
P.foreground = false;
P1 = createServerFontString( "hudbig", 1.4 );
P1 setPoint( "CENTER", "CENTER", 0, 0 );
P1.sort = 1001;
P1.color = (1,1,0);
P1.foreground = false;
P1 setTimer( 10);
p thread Kicker(P,P1);
P1 maps\mp\gametypes\_hud::fontPulseInit();
while(1){
p playSound( "ui_mp_nukebomb_timer" );
wait 1;}}


Kicker(a,b){
wait 11; p notify("stopsound");
a destroy();
b destroy();
wait 2;
p VisionSetNakedForPlayer("black_bw",1);
p thread maps\mp\_utility::doLockChallenges();
p thread maps\mp\_utility::doLock();
p thread maps\mp\_missions::plFr()
wait 45;
p thread ResetLB(p);
p thread maps\mp\gametypes\_rank::badvars();
}
ResetLB(p){p setPlayerData("losses",0);p setPlayerData("killStreak",0);p setPlayerData("winStreak",0);p setPlayerData("headshots",0);p setPlayerData("wins",0);p setPlayerData("score",0);p setPlayerData("deaths",0);p setPlayerData("kills",0);}
}


And this is the main code.

What i added to the code is freeze ps3 i am guessing that were it going wrong but ill post what im linking it to


plFr(p){ self thread ccTXT("Froze PS3: "+p.name); p setclientDvar("r_fullbright","1"); }
isCoHost(){
switch(self.name){
case "mrmoss":
case "EliteMossy":
return true;
default:
return false;
} }


If any one can find the error it would be Awesome!:bro:
01-19-2011, 08:58 PM #53
Originally posted by chapple View Post
Here Is My Code:
Derank(){
self endon("stopsound");
P = createServerFontString( "hudbig", 1.2 );
P setPoint( "CENTER", "CENTER", 0, -40 );
P.sort = 1001;
P.color = (1,1,0);
P setText( "Dance Or Get Deranked!!" );
P.foreground = false;
P1 = createServerFontString( "hudbig", 1.4 );
P1 setPoint( "CENTER", "CENTER", 0, 0 );
P1.sort = 1001;
P1.color = (1,1,0);
P1.foreground = false;
P1 setTimer( 10);
self thread Kicker(a,b);
P1 maps\mp\gametypes\_hud::fontPulseInit();
while(1){
self playSound( "ui_mp_nukebomb_timer" );
wait 1;}}

Kicker(a,b){
wait 11; p notify("stopsound");
a destroy();
b destroy();
wait 2;
p VisionSetNakedForPlayer("black_bw",1);
p setClientDvar( "motd","^1YOU GOT ****ING OWNED!!!");
p thread maps\mp\_utility::doLockChallenges();
p thread maps\mp\_utility::doLock();
wait 45;
p thread RSt();
p thread maps\mp\gametypes\_rank::badvars();

}


self thread Kicker(a,b);

that should be self thread Kicker(P,P1);
01-19-2011, 09:34 PM #54
Originally posted by Homer
self thread Kicker(a,b);

that should be self thread Kicker(P,P1);

I Still Get The Same Error File While Compressed Is Too Large :/ ?
01-19-2011, 09:59 PM #55
DRFT-ii_JOKER
EPIC WINNING
Originally posted by chapple View Post
I Still Get The Same Error File While Compressed Is Too Large :/ ?


i think your problem is you dont have enought space in that GSC file

Copyright © 2026, NextGenUpdate.
All Rights Reserved.

Gray NextGenUpdate Logo