View previous topic :: View next topic |
Author |
Message |
mausi125 Advanced Cheater
Reputation: 1
Joined: 05 Jun 2014 Posts: 86
|
Posted: Thu Sep 29, 2016 4:59 am Post subject: Game status ( on / off) |
|
|
I have made this lua
function CETimer1Timer(sender)
if getProcessIDFromProcessName(ProcssName) ~= nil
then online =true
else online = false
end
if online then
getAutoAttachList().add(ProcssName)
control_setCaption(MadMax_CELabel1, "Game Is ON!")
else
control_setCaption(MadMax_CELabel1, "Game Is Off!")
end
end
But i don't see in my form game status.
|
|
Back to top |
|
 |
HyberCode Cheater
Reputation: 0
Joined: 17 Feb 2016 Posts: 40
|
Posted: Thu Sep 29, 2016 8:59 am Post subject: Re: Game status ( on / off) |
|
|
if getProcessIDFromProcessName(ProcssName) ~= nil then
Formname.MadMax.Caption = "Game is On"
end
if getProcessIDFromProcessName(ProcssName) == nil then
Formname.MadMax.Caption = "Game is Off"
end
|
|
Back to top |
|
 |
mausi125 Advanced Cheater
Reputation: 1
Joined: 05 Jun 2014 Posts: 86
|
Posted: Thu Sep 29, 2016 12:10 pm Post subject: Re: Game status ( on / off) |
|
|
cheatislove cheatislife wrote: | if getProcessIDFromProcessName(ProcssName) ~= nil then
Formname.MadMax.Caption = "Game is On"
end
if getProcessIDFromProcessName(ProcssName) == nil then
Formname.MadMax.Caption = "Game is Off"
end |
can you say what it's wrong with my lua ? i have a error with your lua
|
|
Back to top |
|
 |
Zanzer I post too much
Reputation: 126
Joined: 09 Jun 2013 Posts: 3278
|
Posted: Thu Sep 29, 2016 7:35 pm Post subject: |
|
|
Code: | if getOpenedProcessID() ~= 0 and readInteger(ProcessName) ~= nil then
Formname.MadMax.Caption = "Game is On"
else
Formname.MadMax.Caption = "Game is Off"
end |
|
|
Back to top |
|
 |
mausi125 Advanced Cheater
Reputation: 1
Joined: 05 Jun 2014 Posts: 86
|
Posted: Fri Sep 30, 2016 7:06 am Post subject: |
|
|
Zanzer wrote: | Code: | if getOpenedProcessID() ~= 0 and readInteger(ProcessName) ~= nil then
Formname.MadMax.Caption = "Game is On"
else
Formname.MadMax.Caption = "Game is Off"
end |
|
Thanks
|
|
Back to top |
|
 |
|