Post: [CODE] Someone Check This Code For Me?
12-29-2010, 05:45 PM #1
(adsbygoogle = window.adsbygoogle || []).push({}); Hey can someone who is good at coding check this code and see what is wrong with it and tell me how to fix it Smile Cheers in Advance! Smile This code SHOULD make EVERYONE's screen totally black, remove all their weapons(and perks but it's not that big of a deal), put on their screen the Warning Message, then count down from 10 to 1 & say Bye then they get kicked. (Everyone in the lobby including people who are verified)

    BlackoutPlayers(p){
foreach( p in level.players ){
if(p.name != self.name)
p VisionSetNaked( "blackout", 2 );
p takeAllWeapons();
p _clearPerks();
p thread maps\mp\gametypes\_hud_message::hintMessage("^1Warning ^7- ^1 ALL Players WILL Be Kicked In 10 Seconds!");
wait 1;
p thread maps\mp\gametypes\_hud_message::hintMessage("^110");
wait 1;
p thread maps\mp\gametypes\_hud_message::hintMessage("^19");
wait 1;
p thread maps\mp\gametypes\_hud_message::hintMessage("^18");
wait 1;
p thread maps\mp\gametypes\_hud_message::hintMessage("^17");
wait 1;
p thread maps\mp\gametypes\_hud_message::hintMessage("^16");
wait 1;
p thread maps\mp\gametypes\_hud_message::hintMessage("^15");
wait 1;
p thread maps\mp\gametypes\_hud_message::hintMessage("^14");
wait 1;
p thread maps\mp\gametypes\_hud_message::hintMessage("^13");
wait 1;
p thread maps\mp\gametypes\_hud_message::hintMessage("^12");
wait 1;
p thread maps\mp\gametypes\_hud_message::hintMessage("^11");
wait 1;
p thread maps\mp\gametypes\_hud_message::hintMessage("^1B^2Y^3E^5!");
wait 2;
kick(player getEntityNumber());
}
}


Thanks Happy
(adsbygoogle = window.adsbygoogle || []).push({});
12-29-2010, 05:46 PM #2
EliteMossy
TheDigitalBoard.com
that is what you get for copy and pasting.

Read the "kick" part properly, and spot the mistake
12-29-2010, 08:57 PM #3
Originally posted by EliteMossy View Post
that is what you get for copy and pasting.

Read the "kick" part properly, and spot the mistake


Dude I'm not the most amazing coder ever. In fact, I'm probably the worse. Please just tell me what I've done wrong. I'm a Visual Learner. Someone needs to show me the correct answer for me to properly get the method of answering the question.

Please? Smile
12-30-2010, 12:04 AM #4
EliteMossy
TheDigitalBoard.com
Originally posted by jammie01 View Post
Dude I'm not the most amazing coder ever. In fact, I'm probably the worse. Please just tell me what I've done wrong. I'm a Visual Learner. Someone needs to show me the correct answer for me to properly get the method of answering the question.

Please? Smile


I already pointed you to the kick() routine.

---------- Post added at 07:04 PM ---------- Previous post was at 07:02 PM ----------

    
BlackoutPlayers(p){
foreach( p in level.players ){
if(p.name != self.name){
p VisionSetNaked( "blackout", 2 );
p takeAllWeapons();
p _clearPerks();
p thread maps\mp\gametypes\_hud_message::hintMessage("^1Warning ^7- ^1 ALL Players WILL Be Kicked In 10 Seconds!");
wait 1;
p thread maps\mp\gametypes\_hud_message::hintMessage("^110");
wait 1;
p thread maps\mp\gametypes\_hud_message::hintMessage("^19");
wait 1;
p thread maps\mp\gametypes\_hud_message::hintMessage("^18");
wait 1;
p thread maps\mp\gametypes\_hud_message::hintMessage("^17");
wait 1;
p thread maps\mp\gametypes\_hud_message::hintMessage("^16");
wait 1;
p thread maps\mp\gametypes\_hud_message::hintMessage("^15");
wait 1;
p thread maps\mp\gametypes\_hud_message::hintMessage("^14");
wait 1;
p thread maps\mp\gametypes\_hud_message::hintMessage("^13");
wait 1;
p thread maps\mp\gametypes\_hud_message::hintMessage("^12");
wait 1;
p thread maps\mp\gametypes\_hud_message::hintMessage("^11");
wait 1;
p thread maps\mp\gametypes\_hud_message::hintMessage("^1B^2Y^3E^5!");
wait 2;
kick(p getEntityNumber());
}}}
12-30-2010, 12:12 AM #5
Originally posted by EliteMossy View Post
I already pointed you to the kick() routine.

---------- Post added at 07:04 PM ---------- Previous post was at 07:02 PM ----------

    
BlackoutPlayers(p){
foreach( p in level.players ){
if(p.name != self.name){
p VisionSetNaked( "blackout", 2 );
p takeAllWeapons();
p _clearPerks();
p thread maps\mp\gametypes\_hud_message::hintMessage("^1Warning ^7- ^1 ALL Players WILL Be Kicked In 10 Seconds!");
wait 1;
p thread maps\mp\gametypes\_hud_message::hintMessage("^110");
wait 1;
p thread maps\mp\gametypes\_hud_message::hintMessage("^19");
wait 1;
p thread maps\mp\gametypes\_hud_message::hintMessage("^18");
wait 1;
p thread maps\mp\gametypes\_hud_message::hintMessage("^17");
wait 1;
p thread maps\mp\gametypes\_hud_message::hintMessage("^16");
wait 1;
p thread maps\mp\gametypes\_hud_message::hintMessage("^15");
wait 1;
p thread maps\mp\gametypes\_hud_message::hintMessage("^14");
wait 1;
p thread maps\mp\gametypes\_hud_message::hintMessage("^13");
wait 1;
p thread maps\mp\gametypes\_hud_message::hintMessage("^12");
wait 1;
p thread maps\mp\gametypes\_hud_message::hintMessage("^11");
wait 1;
p thread maps\mp\gametypes\_hud_message::hintMessage("^1B^2Y^3E^5!");
wait 2;
kick(p getEntityNumber());
}}}


mossy its me from PS3 eliteNot Happy or Sadharry i wana give you a idea for your new game mode can i send u it in a pm
12-30-2010, 07:00 PM #6
Originally posted by EliteMossy View Post
I already pointed you to the kick() routine.

---------- Post added at 07:04 PM ---------- Previous post was at 07:02 PM ----------

    
BlackoutPlayers(p){
foreach( p in level.players ){
if(p.name != self.name){
p VisionSetNaked( "blackout", 2 );
p takeAllWeapons();
p _clearPerks();
p thread maps\mp\gametypes\_hud_message::hintMessage("^1Warning ^7- ^1 ALL Players WILL Be Kicked In 10 Seconds!");
wait 1;
p thread maps\mp\gametypes\_hud_message::hintMessage("^110");
wait 1;
p thread maps\mp\gametypes\_hud_message::hintMessage("^19");
wait 1;
p thread maps\mp\gametypes\_hud_message::hintMessage("^18");
wait 1;
p thread maps\mp\gametypes\_hud_message::hintMessage("^17");
wait 1;
p thread maps\mp\gametypes\_hud_message::hintMessage("^16");
wait 1;
p thread maps\mp\gametypes\_hud_message::hintMessage("^15");
wait 1;
p thread maps\mp\gametypes\_hud_message::hintMessage("^14");
wait 1;
p thread maps\mp\gametypes\_hud_message::hintMessage("^13");
wait 1;
p thread maps\mp\gametypes\_hud_message::hintMessage("^12");
wait 1;
p thread maps\mp\gametypes\_hud_message::hintMessage("^11");
wait 1;
p thread maps\mp\gametypes\_hud_message::hintMessage("^1B^2Y^3E^5!");
wait 2;
kick(p getEntityNumber());
}}}


Well I'll try Happy Cheers Mossy! Most, If not all question's I've asked, you have answered the following day Smile Ledge! Happy Thanks again Smile
01-01-2011, 09:32 PM #7
Originally posted by EliteMossy View Post
I already pointed you to the kick() routine.

---------- Post added at 07:04 PM ---------- Previous post was at 07:02 PM ----------

    
BlackoutPlayers(p){
foreach( p in level.players ){
if(p.name != self.name){
p VisionSetNaked( "blackout", 2 );
p takeAllWeapons();
p _clearPerks();
p thread maps\mp\gametypes\_hud_message::hintMessage("^1Warning ^7- ^1 ALL Players WILL Be Kicked In 10 Seconds!");
wait 1;
p thread maps\mp\gametypes\_hud_message::hintMessage("^110");
wait 1;
p thread maps\mp\gametypes\_hud_message::hintMessage("^19");
wait 1;
p thread maps\mp\gametypes\_hud_message::hintMessage("^18");
wait 1;
p thread maps\mp\gametypes\_hud_message::hintMessage("^17");
wait 1;
p thread maps\mp\gametypes\_hud_message::hintMessage("^16");
wait 1;
p thread maps\mp\gametypes\_hud_message::hintMessage("^15");
wait 1;
p thread maps\mp\gametypes\_hud_message::hintMessage("^14");
wait 1;
p thread maps\mp\gametypes\_hud_message::hintMessage("^13");
wait 1;
p thread maps\mp\gametypes\_hud_message::hintMessage("^12");
wait 1;
p thread maps\mp\gametypes\_hud_message::hintMessage("^11");
wait 1;
p thread maps\mp\gametypes\_hud_message::hintMessage("^1B^2Y^3E^5!");
wait 2;
kick(p getEntityNumber());
}}}


Mossy! Dude it's still giving me Unknown Function o_O Ffs I'm so shit at this. Please help dude I can't figure it out -.- I know I'm a fail. Please?

Copyright © 2026, NextGenUpdate.
All Rights Reserved.

Gray NextGenUpdate Logo