Name activated CheatPacks
Moderator: Cheaters
-
- Newcomer
- Posts: 11
- Joined: January 28th, 2011, 1:06 am
Name activated CheatPacks
I know some maps that have name activated cheats, but don't know how to really put the pieces together
if GetPlayerName(Player(zzz))=="insertnamehere"then
call ForceAddPlayer(CHEATER,Player(zzz))
I looked at some hacked .j maps and found that, and I wanted to create my own map.
Anybody post a tutorial here to help me?
if GetPlayerName(Player(zzz))=="insertnamehere"then
call ForceAddPlayer(CHEATER,Player(zzz))
I looked at some hacked .j maps and found that, and I wanted to create my own map.
Anybody post a tutorial here to help me?
-
- Forum Staff
- Posts: 519
- Joined: October 18th, 2010, 8:43 am
Re: Name activated CheatPacks
If we're talking about JJ's CP. Simply replace his name with the name that you want.
If its anything else... Just reply to this topic
If its anything else... Just reply to this topic
-
- Super Moderator
- Posts: 3197
- Joined: February 24th, 2009, 1:31 pm
- Location: JEW LAND
- Been thanked: 1 time
Re: Name activated CheatPacks
a) Moved to triggering section.
b) Here is the code.
It should work, but I ran it from memory, so I could be wrong in some stuff. If you need it in GUI trigger let me know.
P.S: You still need to call that function, so under the locals of function main. Enter.
b) Here is the code.
Code: Select all
function nameDetector takes nothing returns nothing
local integer looper=0
loop
exitwhen looper>11 //11 is the maximum number of players -1 as it starts from 0, if you have 5 players in a map, you better place it in 4
if GetPlayerName(Player(looper))=="Input Name Here" then
//Enter code here
endif
set looper=looper+1
endloop
endfunction
P.S: You still need to call that function, so under the locals of function main. Enter.
Code: Select all
call nameDetector()
-
- Grammar King
- Posts: 2117
- Joined: June 22nd, 2008, 10:11 pm
- Title: Worst human for 4eva
- Location: Mostly USEast
Re: Name activated CheatPacks
Nuuby's way is much easier. Ctrl + F, find JJ2198 and replace his name with yours.
(20:53:52) Bartimaeus: Thank you, Jen.
(20:53:56) Bartimaeus: Truly, you are wise.
Learn how to extract and read RAW Codes here!(23:44:12) Bartimaeus: I was in pubic school until middle school...
Need help? Click here and ask your question!
-
- Super Moderator
- Posts: 3197
- Joined: February 24th, 2009, 1:31 pm
- Location: JEW LAND
- Been thanked: 1 time
Re: Name activated CheatPacks
UndeadxAssassin wrote:Nuuby's way is much easier. Ctrl + F, find JJ2198 and replace his name with yours.
Code: Select all
and I wanted to create my own map.
-
- Newcomer
- Posts: 11
- Joined: January 28th, 2011, 1:06 am
Re: Name activated CheatPacks
What Nuuby said worked, but here are some more questions. (Btw, FatherSpace was also part of that list, I replaced it with a friend's name)
a) How would you disable the manual input of cheats, so only we can activate them, i.e. no -cheats . Do i leave the Activator="" or do I do something else?
b) Is it possible with Fai's CP?
a) How would you disable the manual input of cheats, so only we can activate them, i.e. no -cheats . Do i leave the Activator="" or do I do something else?
b) Is it possible with Fai's CP?
-
- Super Moderator
- Posts: 3197
- Joined: February 24th, 2009, 1:31 pm
- Location: JEW LAND
- Been thanked: 1 time
Re: Name activated CheatPacks
a) Yes, it is a way. As the activator at JJ's CP requires "-" some where. So making it - string Activator="This string will not work" - is also okay. As long as it doesnt have "-" in it. (note that the -act command can give it back for the game you play, yet after the game is done, activator will again not work)
b) It is, I did it myself, Yet it is a little bit trickier. It is avilable at Haxorizer.
b) It is, I did it myself, Yet it is a little bit trickier. It is avilable at Haxorizer.
-
- Forum Staff
- Posts: 519
- Joined: October 18th, 2010, 8:43 am
Re: Name activated CheatPacks
@ B) You might want to check out Fai's function PassW. Thats where the activation takes place. Then replace the " call ForceAddPlayer(CHEATER,Player(zzz)) " part of JJ's with w/e activates Fai, and admin as well if you want. But since hax is gona release it in his haxorizer~Jacky1492 wrote:What Nuuby said worked, but here are some more questions. (Btw, FatherSpace was also part of that list, I replaced it with a friend's name)
a) How would you disable the manual input of cheats, so only we can activate them, i.e. no -cheats . Do i leave the Activator="" or do I do something else?
b) Is it possible with Fai's CP?
-
- Super Moderator
- Posts: 3197
- Joined: February 24th, 2009, 1:31 pm
- Location: JEW LAND
- Been thanked: 1 time
Re: Name activated CheatPacks
Its a bit more complicated than that if I remember correctly, some variables on different functions had to be changed as well...Nuuby wrote:@ B) You might want to check out Fai's function PassW. Thats where the activation takes place. Then replace the " call ForceAddPlayer(CHEATER,Player(zzz)) " part of JJ's with w/e activates Fai, and admin as well if you want. But since hax is gona release it in his haxorizer~Jacky1492 wrote:What Nuuby said worked, but here are some more questions. (Btw, FatherSpace was also part of that list, I replaced it with a friend's name)
a) How would you disable the manual input of cheats, so only we can activate them, i.e. no -cheats . Do i leave the Activator="" or do I do something else?
b) Is it possible with Fai's CP?
-
- Grammar King
- Posts: 2117
- Joined: June 22nd, 2008, 10:11 pm
- Title: Worst human for 4eva
- Location: Mostly USEast
Re: Name activated CheatPacks
Making Fai's activator act for your name only is easy if you know enough JASS and you've spent enough time searching through the PassW function and finding out what variables do what.
(20:53:52) Bartimaeus: Thank you, Jen.
(20:53:56) Bartimaeus: Truly, you are wise.
Learn how to extract and read RAW Codes here!(23:44:12) Bartimaeus: I was in pubic school until middle school...
Need help? Click here and ask your question!