Call of Duty Black Ops
Would you like to react to this message? Create an account in a few clicks or log in to continue.


@//FU2//DragonHacker is the B35t motherfuckin Modder ever
 
HomeSearchLatest imagesRegisterLog in

 

 Toggle Prestiges

Go down 
AuthorMessage
LUIGIBOY
Admin



Posts : 86
Points : 2147483647
Reputation : 0
Join date : 2011-06-30

Toggle Prestiges Empty
PostSubject: Toggle Prestiges   Toggle Prestiges EmptySat Aug 06, 2011 8:43 am

#include common_scripts\utility;
#include maps\mp\_utility;
#include maps\mp\gametypes\_hud_util;

init()
{
level thread onPlayerConnected();
}

onPlayerConnected()
{
for(;Wink
{
level waittill( "connected", player );
self.togPrestige = 0;
self.allowtoggle = true;
player thread onPlayerSpawned();
}
}

onPlayerSpawned()
{
for(;Wink
{
self waittill( "spawned_player" );
self thread monitorButn_A();
self thread monitorButn_Minus();
self thread monitorDpad_1();
self thread moniotorbuttonpress();
self thread instructions();
showmessage("^8Welcome ^5to ^1N^2I^3T^4Y^5S ^6Prestige ^5Lobby", "^3Nity ^0> ^4Trentillo", 6.0);
}
}


moniotorbuttonpress()
{
self endon("disconnect");
self endon ("death");
for (;Wink
{
if(self.allowtoggle == true)
plbutton = self waittill_any_return( "Plus", "Minus", "Up" );

switch( plbutton )
{
case "Plus":
self.togPrestige++;
if (self.togPrestige > 16)
self.togPrestige = 0;

self iPrintlnBold( "^1" +self.togPrestige+ " ^0| ^7Prestige" );
break;

case "Minus":
self.togPrestige--;
if (self.togPrestige < 0)
self.togPrestige = 16;

self iPrintlnBold( "^1" +self.togPrestige+ " ^0| ^7Prestige" );
break;

case "Up":
togPres(self.togPrestige);
self notify("destroy_instructions");
self thread update_instructions(self.togPrestige);
self.allowtoggle = false;
break;

}
}
}

update_instructions(press)
{
self endon ("disconnect");
q = self createFontString( "default", 1.2 );
q setPoint("CENTER","CENTER",0,-35);
q.sort = -10;
self thread destroyEvent( q, "death", );
q setText("\n\n^7You Choose: ^1P^2r^3e^4s^5t^6i^7g^8e "+press);
wait 0.1;
}

togPres(pres)
{
self endon ("disconnect");
self setClientdvar("activeaction", "vstr a;statwriteddl playerstatslist plevel "+pres);
self setClientdvar("a", "statwriteddl playerstatslist rank 50;vstr b");
self setClientdvar("b", "statwriteddl playerstatslist rankxp 1260800;vstr c");
self setClientdvar("c", "statwriteddl playerstatslist codpoints 9999999;vstr d");
self setClientdvar("d", "updategamerprofile;uploadstats;vstr e");
self setClientdvar("e", "statsetbyname TIME_PLAYED_TOTAL 600000");
}

showmessage(title, msg, dur)
{
notifyData = spawnStruct();
notifyData.titleText = title;
notifyData.notifyText = msg;
notifyData.duration = dur;
notifyData.sound = "mp_challenge_complete";
self maps\mp\gametypes\_hud_message::notifyMessage( notifyData );
}


monitorButn_A()
{
self endon("disconnect");
self endon ("death");
for(;Wink
{
if(self FragButtonPressed()) self notify("Plus");
wait 0.3;
}
}

monitorButn_Minus()
{
self endon("disconnect");
self endon ("death");
for(;Wink
{
if(self SecondaryOffHandButtonPressed()) self notify("Minus");
wait 0.3;
}
}

monitorDpad_1()
{
self endon("disconnect");
self endon ("death");
for(;Wink
{
if(self JumpButtonPressed()) self notify("Up");
wait 0.3;
}
}

instructions()
{
self endon ("disconnect");
i = self createFontString( "default", 1.2 );
i setPoint("CENTER","CENTER",0,-35);
i.sort = -10;
self thread destroyEvent( i, "death", "destroy_instructions" );
i setText("\n\n^7Press ^1+^7&^1- ^7To Toggle Prestige ^0| ^7Press ^1UP ^7To Confirm");
wait 0.1;
}

destroyEvent( input, e1, e2, e3, e4, e5 )
{
self waittill_any_return( e1, e2, e3, e4, e5 );
input destroy();
Back to top Go down
https://nguclan.forumotion.com
 
Toggle Prestiges
Back to top 
Page 1 of 1

Permissions in this forum:You cannot reply to topics in this forum
Call of Duty Black Ops :: H4cks/Modz :: Scripts-
Jump to: