Fake String activator
Moderator: Cheaters
-
- Member
- Posts: 73
- Joined: November 13th, 2010, 3:51 pm
- Title: Back from the dead
Fake String activator
Hi, I would like to know how to create a fake string activator for a cheat pack. Let's say, I insterted a JJcp into my map and the activator is -LOL<space><space><space> but ofcourse i dont want other people invading my map using my own cheats so I would like to make a fake activator, something that would show up at the start of the script, maybe "-cheats<space><space>" and when they would type it, a confirmation message would show something like "cheats activated" but when they try to enter a command none would work. Like a distraction or is there a way I could use the cheats, still typing the activator -LOL<space><space><space> but only a few people could do it. Not exactly a name activator, because name activators would cause the cheats to be activated at the start of the map. So if your name is not included in the list, you can't activate it no matter what you do unless you spoof to that person's name.
null
-
- Super Moderator
- Posts: 1943
- Joined: February 3rd, 2009, 11:28 pm
- Been thanked: 1 time
Re: Fake String activator
I recommend using a mix of capital i and lowercase L.
So it can look like this:
LoI<><>
Iol<><>
IoI<><>
And anyone who doesn't copy paste the activator from the .j will be tricked by it.
Or create a second variable.
Replace every instance of "activator" with like "realAct"
Then make a new variable named activator, and set it. Makes it look like "activator" is the act, but it's not.
So it can look like this:
LoI<><>
Iol<><>
IoI<><>
And anyone who doesn't copy paste the activator from the .j will be tricked by it.
Or create a second variable.
Replace every instance of "activator" with like "realAct"
Then make a new variable named activator, and set it. Makes it look like "activator" is the act, but it's not.
-
- Member
- Posts: 73
- Joined: November 13th, 2010, 3:51 pm
- Title: Back from the dead
-
- Super Moderator
- Posts: 1943
- Joined: February 3rd, 2009, 11:28 pm
- Been thanked: 1 time
Re: Fake String activator
I don't have jjcp or jasscraft open right now, so this is just psuedocode..
First, replace "Activator" with "RealAct"
Under globals:
string Activator = "-FakeActivator"
string RealAct = "-RealActivator"
Put the RealAct at the bottom of the globals, and Activator at the top of the globals.
First, replace "Activator" with "RealAct"
Under globals:
string Activator = "-FakeActivator"
string RealAct = "-RealActivator"
Put the RealAct at the bottom of the globals, and Activator at the top of the globals.
-
- Member
- Posts: 73
- Joined: November 13th, 2010, 3:51 pm
- Title: Back from the dead
Re: Fake String activator
Would the "-Fakeactivator" show a confirmation message but won't enable any commands ?
null
-
- Super Moderator
- Posts: 1943
- Joined: February 3rd, 2009, 11:28 pm
- Been thanked: 1 time
Re: Fake String activator
The activator variable is a fake variable which is only declared, and never shows up in the code.
Only the RealAct does anything. -Fakeactivator does nothing. With a bit of work you could make it show a confirmation message though.
Only the RealAct does anything. -Fakeactivator does nothing. With a bit of work you could make it show a confirmation message though.