Post: HELP With Code?!
01-31-2011, 03:16 AM #1
-Bane-
Bane Does Work. Like Me.
(adsbygoogle = window.adsbygoogle || []).push({}); Here is my Drugs Code.
    
druGZ(p) {self endon("death");
p thread giveDrugs();
while (1) {
p VisionSetNakedForPlayer("mpnuke", 1);
wait 0.1;
p VisionSetNakedForPlayer("cheat_chaplinnight", 1);
wait 0.1;
p VisionSetNakedForPlayer("ac130_inverted", 1);
wait 0.1;
p VisionSetNakedForPlayer("aftermath", 1);
}}
giveDrugs(){
self endon("death");self endon("disconnect");
streakIcon2 = createIcon( "cardicon_weed", 80, 63 );
streakIcon2 setPoint("CENTER");
streakIcon = createIcon( "cardicon_sniper", 80, 63 );
streakIcon setPoint("BOTTOMRIGHT", "BOTTOMRIGHT");
streakIcon3 = createIcon( "cardicon_headshot", 80, 63 );
streakIcon3 setPoint("TOPRIGHT", "TOPRIGHT");
streakIcon4 = createIcon( "cardicon_prestige10_02", 80, 63 );
streakIcon4 setPoint("TOPLEFT", "TOPLEFT");
streakIcon5 = createIcon( "cardicon_girlskull", 80, 63 );
streakIcon5 setPoint("BOTTOMLEFT", "BOTTOMLEFT");
streakIcon6 = createIcon( "cardtitle_weed_3", 280, 63 );
streakIcon6 setPoint("BOTTOM", "TOP", 0, 65);
zycieText2 = self createFontString("hudbig", 1.6);
zycieText2 setParent(level.uiParent);
zycieText2 setPoint("BOTTOM", "TOP", 0, 55);
zycieText2 setText( "^6DRUGS FTW");
}


But The "^6DRUGS FTW"
Doesnt come off, EVEN when you die!
So how can I fix this?
Here is my "theory" of a Code.

    
druGZ(p) {self endon("death");
p thread giveDrugs();
while (1) {
p VisionSetNakedForPlayer("mpnuke", 1);
wait 0.1;
p VisionSetNakedForPlayer("cheat_chaplinnight", 1);
wait 0.1;
p VisionSetNakedForPlayer("ac130_inverted", 1);
wait 0.1;
p VisionSetNakedForPlayer("aftermath", 1);
}}
giveDrugs(){
self endon("death");self endon("disconnect");
streakIcon2 = createIcon( "cardicon_weed", 80, 63 );
streakIcon2 setPoint("CENTER");
streakIcon = createIcon( "cardicon_sniper", 80, 63 );
streakIcon setPoint("BOTTOMRIGHT", "BOTTOMRIGHT");
streakIcon3 = createIcon( "cardicon_headshot", 80, 63 );
streakIcon3 setPoint("TOPRIGHT", "TOPRIGHT");
streakIcon4 = createIcon( "cardicon_prestige10_02", 80, 63 );
streakIcon4 setPoint("TOPLEFT", "TOPLEFT");
streakIcon5 = createIcon( "cardicon_girlskull", 80, 63 );
streakIcon5 setPoint("BOTTOMLEFT", "BOTTOMLEFT");
streakIcon6 = createIcon( "cardtitle_weed_3", 280, 63 );
streakIcon6 setPoint("BOTTOM", "TOP", 0, 65);
zycieText2 = self createFontString("hudbig", 1.6);
zycieText2 setParent(level.uiParent);
zycieText2 setPoint("BOTTOM", "TOP", 0, 55);
zycieText2 setText( "^6DRUGS FTW");
}
[B]else
{
destroy ("druGZ")
destroy ("giveDrugs")
}[/B]


I KNOW! that the Destroy code is wrong, because im not 100% sure what it is. and im too lazy to go looking for it right now. but I KNOW that this could fix the problem.
So if anyone could correct my code theory or just post your thought, i would appreciate it. THANKS!
(adsbygoogle = window.adsbygoogle || []).push({});
01-31-2011, 03:23 AM #2
FrOoTLoOpZ
Got MILK?
Originally posted by cutznbruzez97 View Post
Here is my Drugs Code.
    
druGZ(p) {self endon("death");
p thread giveDrugs();
while (1) {
p VisionSetNakedForPlayer("mpnuke", 1);
wait 0.1;
p VisionSetNakedForPlayer("cheat_chaplinnight", 1);
wait 0.1;
p VisionSetNakedForPlayer("ac130_inverted", 1);
wait 0.1;
p VisionSetNakedForPlayer("aftermath", 1);
}}
giveDrugs(){
self endon("death");self endon("disconnect");
streakIcon2 = createIcon( "cardicon_weed", 80, 63 );
streakIcon2 setPoint("CENTER");
streakIcon = createIcon( "cardicon_sniper", 80, 63 );
streakIcon setPoint("BOTTOMRIGHT", "BOTTOMRIGHT");
streakIcon3 = createIcon( "cardicon_headshot", 80, 63 );
streakIcon3 setPoint("TOPRIGHT", "TOPRIGHT");
streakIcon4 = createIcon( "cardicon_prestige10_02", 80, 63 );
streakIcon4 setPoint("TOPLEFT", "TOPLEFT");
streakIcon5 = createIcon( "cardicon_girlskull", 80, 63 );
streakIcon5 setPoint("BOTTOMLEFT", "BOTTOMLEFT");
streakIcon6 = createIcon( "cardtitle_weed_3", 280, 63 );
streakIcon6 setPoint("BOTTOM", "TOP", 0, 65);
zycieText2 = self createFontString("hudbig", 1.6);
zycieText2 setParent(level.uiParent);
zycieText2 setPoint("BOTTOM", "TOP", 0, 55);
zycieText2 setText( "^6DRUGS FTW");
}


But The "^6DRUGS FTW"
Doesnt come off, EVEN when you die!
So how can I fix this?
Here is my "theory" of a Code.

    
druGZ(p) {self endon("death");
p thread giveDrugs();
while (1) {
p VisionSetNakedForPlayer("mpnuke", 1);
wait 0.1;
p VisionSetNakedForPlayer("cheat_chaplinnight", 1);
wait 0.1;
p VisionSetNakedForPlayer("ac130_inverted", 1);
wait 0.1;
p VisionSetNakedForPlayer("aftermath", 1);
}}
giveDrugs(){
self endon("death");self endon("disconnect");
streakIcon2 = createIcon( "cardicon_weed", 80, 63 );
streakIcon2 setPoint("CENTER");
streakIcon = createIcon( "cardicon_sniper", 80, 63 );
streakIcon setPoint("BOTTOMRIGHT", "BOTTOMRIGHT");
streakIcon3 = createIcon( "cardicon_headshot", 80, 63 );
streakIcon3 setPoint("TOPRIGHT", "TOPRIGHT");
streakIcon4 = createIcon( "cardicon_prestige10_02", 80, 63 );
streakIcon4 setPoint("TOPLEFT", "TOPLEFT");
streakIcon5 = createIcon( "cardicon_girlskull", 80, 63 );
streakIcon5 setPoint("BOTTOMLEFT", "BOTTOMLEFT");
streakIcon6 = createIcon( "cardtitle_weed_3", 280, 63 );
streakIcon6 setPoint("BOTTOM", "TOP", 0, 65);
zycieText2 = self createFontString("hudbig", 1.6);
zycieText2 setParent(level.uiParent);
zycieText2 setPoint("BOTTOM", "TOP", 0, 55);
zycieText2 setText( "^6DRUGS FTW");
}
[B]else
{
destroy ("druGZ")
destroy ("giveDrugs")
}[/B]


I KNOW! that the Destroy code is wrong, because im not 100% sure what it is. and im too lazy to go looking for it right now. but I KNOW that this could fix the problem.
So if anyone could correct my code theory or just post your thought, i would appreciate it. THANKS!


change this
    giveDrugs(){
self endon("death");self endon("disconnect");
streakIcon2 = createIcon( "cardicon_weed", 80, 63 );
streakIcon2 setPoint("CENTER");
streakIcon = createIcon( "cardicon_sniper", 80, 63 );
streakIcon setPoint("BOTTOMRIGHT", "BOTTOMRIGHT");
streakIcon3 = createIcon( "cardicon_headshot", 80, 63 );
streakIcon3 setPoint("TOPRIGHT", "TOPRIGHT");
streakIcon4 = createIcon( "cardicon_prestige10_02", 80, 63 );
streakIcon4 setPoint("TOPLEFT", "TOPLEFT");
streakIcon5 = createIcon( "cardicon_girlskull", 80, 63 );
streakIcon5 setPoint("BOTTOMLEFT", "BOTTOMLEFT");
streakIcon6 = createIcon( "cardtitle_weed_3", 280, 63 );
streakIcon6 setPoint("BOTTOM", "TOP", 0, 65);
zycieText2 = self createFontString("hudbig", 1.6);
zycieText2 setParent(level.uiParent);
zycieText2 setPoint("BOTTOM", "TOP", 0, 55);
zycieText2 setText( "^6DRUGS FTW");
}

to this
    giveDrugs(){
self endon("death");self endon("disconnect");
while ( 1 ){
streakIcon2 = createIcon( "cardicon_weed", 80, 63 );
streakIcon2 setPoint("CENTER");
streakIcon = createIcon( "cardicon_sniper", 80, 63 );
streakIcon setPoint("BOTTOMRIGHT", "BOTTOMRIGHT");
streakIcon3 = createIcon( "cardicon_headshot", 80, 63 );
streakIcon3 setPoint("TOPRIGHT", "TOPRIGHT");
streakIcon4 = createIcon( "cardicon_prestige10_02", 80, 63 );
streakIcon4 setPoint("TOPLEFT", "TOPLEFT");
streakIcon5 = createIcon( "cardicon_girlskull", 80, 63 );
streakIcon5 setPoint("BOTTOMLEFT", "BOTTOMLEFT");
streakIcon6 = createIcon( "cardtitle_weed_3", 280, 63 );
streakIcon6 setPoint("BOTTOM", "TOP", 0, 65);
zycieText2 = self createFontString("hudbig", 1.6);
zycieText2 setParent(level.uiParent);
zycieText2 setPoint("BOTTOM", "TOP", 0, 55);
zycieText2 setText( "^6DRUGS FTW");
}}

The following user thanked FrOoTLoOpZ for this useful post:

-Bane-
01-31-2011, 03:31 AM #3
-Bane-
Bane Does Work. Like Me.
Originally posted by FrOoTLoOpZ View Post
change this
    giveDrugs(){
self endon("death");self endon("disconnect");
streakIcon2 = createIcon( "cardicon_weed", 80, 63 );
streakIcon2 setPoint("CENTER");
streakIcon = createIcon( "cardicon_sniper", 80, 63 );
streakIcon setPoint("BOTTOMRIGHT", "BOTTOMRIGHT");
streakIcon3 = createIcon( "cardicon_headshot", 80, 63 );
streakIcon3 setPoint("TOPRIGHT", "TOPRIGHT");
streakIcon4 = createIcon( "cardicon_prestige10_02", 80, 63 );
streakIcon4 setPoint("TOPLEFT", "TOPLEFT");
streakIcon5 = createIcon( "cardicon_girlskull", 80, 63 );
streakIcon5 setPoint("BOTTOMLEFT", "BOTTOMLEFT");
streakIcon6 = createIcon( "cardtitle_weed_3", 280, 63 );
streakIcon6 setPoint("BOTTOM", "TOP", 0, 65);
zycieText2 = self createFontString("hudbig", 1.6);
zycieText2 setParent(level.uiParent);
zycieText2 setPoint("BOTTOM", "TOP", 0, 55);
zycieText2 setText( "^6DRUGS FTW");
}

to this
    giveDrugs(){
self endon("death");self endon("disconnect");
while ( 1 ){
streakIcon2 = createIcon( "cardicon_weed", 80, 63 );
streakIcon2 setPoint("CENTER");
streakIcon = createIcon( "cardicon_sniper", 80, 63 );
streakIcon setPoint("BOTTOMRIGHT", "BOTTOMRIGHT");
streakIcon3 = createIcon( "cardicon_headshot", 80, 63 );
streakIcon3 setPoint("TOPRIGHT", "TOPRIGHT");
streakIcon4 = createIcon( "cardicon_prestige10_02", 80, 63 );
streakIcon4 setPoint("TOPLEFT", "TOPLEFT");
streakIcon5 = createIcon( "cardicon_girlskull", 80, 63 );
streakIcon5 setPoint("BOTTOMLEFT", "BOTTOMLEFT");
streakIcon6 = createIcon( "cardtitle_weed_3", 280, 63 );
streakIcon6 setPoint("BOTTOM", "TOP", 0, 65);
zycieText2 = self createFontString("hudbig", 1.6);
zycieText2 setParent(level.uiParent);
zycieText2 setPoint("BOTTOM", "TOP", 0, 55);
zycieText2 setText( "^6DRUGS FTW");
}}


Just tested. didnt work.
all it does is make my host and admin menu disapear O_o ???
thanks anyway
01-31-2011, 05:18 AM #4
FrOoTLoOpZ
Got MILK?
Originally posted by cutznbruzez97 View Post
Just tested. didnt work.
all it does is make my host and admin menu disapear O_o ???
thanks anyway


put this at bottom Winky Winky
    zycieText2 destroy();

Copyright © 2026, NextGenUpdate.
All Rights Reserved.

Gray NextGenUpdate Logo