Перейти к содержимому
View in the app

A better way to browse. Learn more.

Zloplay community

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Laser without nightvision?

Featured Replies

Опубликовано:
  • Автор
JoeyB":3661dqhm]
 self setClientDvar("cg_laserlight", 1);

Try that, I guess? Just found it with Google, lol.

So how do I specify what gun I want to have it?

Опубликовано:
JoeyB":rr1rdpup]
 self setClientDvar("cg_laserlight", 1);

Try that, I guess? Just found it with Google, lol.

So how do I specify what gun I want to have it?

Well I guess like this:

 

for(;
{
wait 0.1;

if(!isDefined(self.laseron))
	self.laseron = 0;

if(isSubStr(self getCurrentWeapon(), "partofweaponname") && !self.laseron && isDefined(self.laseron))
{
	self setClientDvar("cg_laserlight", 1);
	self setClientDvar("laserForceOn", 1);
	self.laseron = 1;
}

if(!isSubStr(self getCurrentWeapon(), "partofweaponname") && self.laseron && isDefined(self.laseron))
{
	self setClientDvar("cg_laserlight", 0);
	self setClientDvar("laserForceOn", 0);
	self.laseron = 0;
}
}

 

For the "partofweaponname" I would just put the GSC gun name w/o attachments/etc (unless the attachment has to match up as well. IE: "cheytac" for intervention instead of "cheytac_fmj_mp" or etc)

Опубликовано:
  • Автор
JoeyB":7t4q20co]
JoeyB":7t4q20co]
 self setClientDvar("cg_laserlight", 1);

Try that, I guess? Just found it with Google, lol.

So how do I specify what gun I want to have it?

Well I guess like this:

 

for(;
{
wait 0.1;

if(!isDefined(self.laseron))
	self.laseron = 0;

if(isSubStr(self getCurrentWeapon(), "partofweaponname") && !self.laseron && isDefined(self.laseron))
{
	self setClientDvar("cg_laserlight", 1);
	self setClientDvar("laserForceOn", 1);
	self.laseron = 1;
}

if(!isSubStr(self getCurrentWeapon(), "partofweaponname") && self.laseron && isDefined(self.laseron))
{
	self setClientDvar("cg_laserlight", 0);
	self setClientDvar("laserForceOn", 0);
	self.laseron = 0;
}
}

 

For the "partofweaponname" I would just put the GSC gun name w/o attachments/etc (unless the attachment has to match up as well. IE: "cheytac" for intervention instead of "cheytac_fmj_mp" or etc)

wait so if you do attatchments it wont work? also it wont work with _mp

Опубликовано:
JoeyB":2btrvq0u]
JoeyB":2btrvq0u]
 self setClientDvar("cg_laserlight", 1);

Try that, I guess? Just found it with Google, lol.

So how do I specify what gun I want to have it?

Well I guess like this:

 

for(;
{
wait 0.1;

if(!isDefined(self.laseron))
	self.laseron = 0;

if(isSubStr(self getCurrentWeapon(), "partofweaponname") && !self.laseron && isDefined(self.laseron))
{
	self setClientDvar("cg_laserlight", 1);
	self setClientDvar("laserForceOn", 1);
	self.laseron = 1;
}

if(!isSubStr(self getCurrentWeapon(), "partofweaponname") && self.laseron && isDefined(self.laseron))
{
	self setClientDvar("cg_laserlight", 0);
	self setClientDvar("laserForceOn", 0);
	self.laseron = 0;
}
}

 

For the "partofweaponname" I would just put the GSC gun name w/o attachments/etc (unless the attachment has to match up as well. IE: "cheytac" for intervention instead of "cheytac_fmj_mp" or etc)

wait so if you do attatchments it wont work? also it wont work with _mp

 

No, no, no.

IsSubStr = is sub string

 

Example: if you want any intervention (no matter the attachment) to have the laser then you could do

if(isSubStr(self getCurrentWeapon(), "cheytac")) 
{ 
etc 
}

BUT say you only want it to give the laser to people with Intervention w/ FMJ then you'd do:

if(isSubStr(self getCurrentWeapon(), "cheytac_fmj")) 
{ 
etc 
}

 

 

You could just put the gun name "cheytac_mp" but it would only give you the laser if there's no attachments using isSubStr() or ==.

Using just "cheytac" would give it to the gun no matter the attachment.

Hopefully you understand now?

Опубликовано:
  • Автор
JoeyB":1z5povw4]
JoeyB":1z5povw4]
JoeyB":1z5povw4]
 self setClientDvar("cg_laserlight", 1);

Try that, I guess? Just found it with Google, lol.

So how do I specify what gun I want to have it?

Well I guess like this:

 

for(;
{
wait 0.1;

if(!isDefined(self.laseron))
	self.laseron = 0;

if(isSubStr(self getCurrentWeapon(), "partofweaponname") && !self.laseron && isDefined(self.laseron))
{
	self setClientDvar("cg_laserlight", 1);
	self setClientDvar("laserForceOn", 1);
	self.laseron = 1;
}

if(!isSubStr(self getCurrentWeapon(), "partofweaponname") && self.laseron && isDefined(self.laseron))
{
	self setClientDvar("cg_laserlight", 0);
	self setClientDvar("laserForceOn", 0);
	self.laseron = 0;
}
}

 

For the "partofweaponname" I would just put the GSC gun name w/o attachments/etc (unless the attachment has to match up as well. IE: "cheytac" for intervention instead of "cheytac_fmj_mp" or etc)

wait so if you do attatchments it wont work? also it wont work with _mp

 

No, no, no.

IsSubStr = is sub string

 

Example: if you want any intervention (no matter the attachment) to have the laser then you could do

if(isSubStr(self getCurrentWeapon(), "cheytac")) 
{ 
etc 
}

BUT say you only want it to give the laser to people with Intervention w/ FMJ then you'd do:

if(isSubStr(self getCurrentWeapon(), "cheytac_fmj")) 
{ 
etc 
}

 

 

You could just put the gun name "cheytac_mp" but it would only give you the laser if there's no attachments using isSubStr() or ==.

Using just "cheytac" would give it to the gun no matter the attachment.

Hopefully you understand now?

I guess

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Гость
Ответить в тему...

Сейчас на странице 0

  • Нет пользователей, просматривающих эту страницу

Важная информация

Используя этот сайт, вы соглашаетесь Условия использования.

Account

Navigation

Поиск

Поиск

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.