Post: How to use setclientnumlives?
10-04-2014, 06:08 PM #1
(adsbygoogle = window.adsbygoogle || []).push({}); How exactly would I use setclientnumlives? Would it be setgametypesetting(setclientnumlives, 1) for 1 life? Would I need parentheses so it would be setgametypesetting("setclientnumlives, 1")? Any help is appreciated! And I would also like to know how to bind a button to activate things as well.
if(self sprintbuttonpressed())
{
self iprintln("SPRINT");
}
Doesn't work for me. :(
Last edited by iknownothing ; 10-05-2014 at 03:11 AM.
10-07-2014, 02:00 AM #2
bump
(10 char)
10-09-2014, 11:38 AM #3
Taylor
Former Black Knight.
Originally posted by iknownothing View Post
How exactly would I use setclientnumlives? Would it be setgametypesetting(setclientnumlives, 1) for 1 life? Would I need parentheses so it would be setgametypesetting("setclientnumlives, 1")? Any help is appreciated! And I would also like to know how to bind a button to activate things as well.
if(self sprintbuttonpressed())
{
self iprintln("SPRINT");
}
Doesn't work for me. :(


This is all I found:
    
Taylors-MacBook-Pro:~ Taylor$ grep -Hrn 'setclientnumlives' /Users/Taylor/Downloads/Decompiled/patch_mp/
/Users/Taylor/Downloads/Decompiled/patch_mp//maps/mp/gametypes/_globallogic_player.gsc:125: self setclientnumlives( level.numlives );


Meaning that setClientNumLives is NOT a dvar, it is a function. So if you want to set it for all players it would be:
    
foreach(player in level.players)
{
player setclientnumlives( numberOfLives );
}
10-09-2014, 11:54 AM #4
ItzMatriix
Are you high?
To set a button bind you need to monitor it, because I'm assuming you want it to do whatever, whenever you press the button

so you need a loop

    
monitorMelee()
{
for(;Winky Winky
{
if(self meleeButtonPressed())
{
self iPrintln("Melee");
}
}
}

And I'm not sure about the set lives

The following user thanked ItzMatriix for this useful post:

iknownothing
10-09-2014, 01:49 PM #5
Originally posted by iknownothing View Post
How exactly would I use setclientnumlives? Would it be setgametypesetting(setclientnumlives, 1) for 1 life? Would I need parentheses so it would be setgametypesetting("setclientnumlives, 1")? Any help is appreciated! And I would also like to know how to bind a button to activate things as well.
if(self sprintbuttonpressed())
{
self iprintln("SPRINT");
}
Doesn't work for me. :(

    
setgametypesetting( "playerNumlives", Value );

Set "Value" to 0 for unlimited lives.

and for the other thing you could do something like this:
    
for(;Winky Winky
{
if(self sprintbuttonpressed())
self iprintln("SPRINT");
wait 0.05;
}

The following user thanked John for this useful post:

iknownothing

Copyright © 2025, NextGenUpdate.
All Rights Reserved.

Gray NextGenUpdate Logo