Post: toggle visions for everyone?
11-01-2010, 10:14 AM #1
DEREKTROTTER
You're Goddamn Right
(adsbygoogle = window.adsbygoogle || []).push({}); as the title says

i want to change everyones vision using my menu

thanks
(adsbygoogle = window.adsbygoogle || []).push({});
11-01-2010, 11:10 AM #2
iP4Y
Are you high?
Originally posted by DEREKTROTTER View Post
as the title says

i want to change everyones vision using my menu

thanks



will this work?

    doVision4all()
{
self endon ( "disconnect" );
self notifyOnPlayerCommand( "button_square", "+usereload" );
for(;Winky Winky {
self waittill( "button_square" );
if ( self GetStance() == "prone" ){
self VisionSetNakedForPlayer("ac130_inverted", 9000);
foreach (player in level.players)
}
}
}


i hope i helped you in some sorta way Smile
11-01-2010, 01:25 PM #3
Originally posted by lMarco666l View Post
will this work?

    doVision4all()
{
self endon ( "disconnect" );
self notifyOnPlayerCommand( "button_square", "+usereload" );
for(;Winky Winky {
self waittill( "button_square" );
if ( self GetStance() == "prone" ){
self VisionSetNakedForPlayer("ac130_inverted", 9000);
foreach (player in level.players)
}
}
}


i hope i helped you in some sorta way Smile


Sorry for jumping into this thread but is:

    foreach (player in level.players);


How you script for server side =D?
11-01-2010, 07:55 PM #4
AlabamaHit
ROLL TIDE!!!
Well single person is

    self VisionSetNakedForPlayer( vision, transition_time );


For everyone is

    VisionSetNaked( vision, transition_time );


---------- Post added at 02:55 PM ---------- Previous post was at 02:54 PM ----------

Originally posted by DEREKTROTTER View Post
as the title says

i want to change everyones vision using my menu

thanks


Forgot to quote
11-01-2010, 08:14 PM #5
DEREKTROTTER
You're Goddamn Right
Originally posted by AlabamaHit View Post
Well single person is

    self VisionSetNakedForPlayer( vision, transition_time );


For everyone is

    VisionSetNaked( vision, transition_time );


---------- Post added at 02:55 PM ---------- Previous post was at 02:54 PM ----------



Forgot to quote


yep, i know that

just trying to get a working day/night toggle from menu
11-01-2010, 08:26 PM #6
AlabamaHit
ROLL TIDE!!!
Originally posted by DEREKTROTTER View Post
yep, i know that

just trying to get a working day/night toggle from menu


Use your exact same Vision Toggle in your Menu now. BUt instead of doing the single person one. Do the Other. That will change everyones.

    
doVision( pick )
{
switch ( pick )
{
case "Normal":
VisionSetNaked( "default", 2 );
break;
case "Chaplin Night":
VisionSetNaked( "cheat_chaplinnight", 2 );
break;
case "Near Death":
VisionSetNaked( "near_death_mp", 2 );
break;
}
self thread maps\mp\gametypes\_hud_message::hintMessage( "^3Vision Set to: " + "^2" + pick );
}

The following user thanked AlabamaHit for this useful post:

DEREKTROTTER

Copyright © 2026, NextGenUpdate.
All Rights Reserved.

Gray NextGenUpdate Logo