Page 1 of 2

Activation By A Certain Person(1.24b maps)

Posted: October 24th, 2009, 10:50 am
by angpenghian
Guys Can You Tell Me The Code For Activation Of Cheat By A Certain Person(1.24b maps)

Re: Activation By A Certain Person(1.24b maps)

Posted: October 24th, 2009, 10:56 am
by GeorgeMots
Use cheatpack detector.

Re: Activation By A Certain Person(1.24b maps)

Posted: October 24th, 2009, 11:41 am
by Lanaya
GeorgeMots wrote:Use cheatpack detector.


lol what?....

i think he's asking how to make activator work for a certain person

just search for "FatherSpace" in your endglobals,
Spoiler:
if GetPlayerName(Player(zzz))=="FatherSpace"then
call DisplayTextToPlayer(Player(zzz),0,0,"Cheated by you.")
call ForceAddPlayer(CHEATER,Player(zzz))
call TriggerRegisterPlayerChatEvent(CHEATS,Player(zzz),"-",false)
endif

replace the FatherSpace with your account name (CaSe SeNsItIvE)
and it'll automatically activate cheats when you play.

or ONLY for that person..
Spoiler:
scroll down to the last function in the endglobals, called CheatUse. You want to add the things in red, exactly where they are. Or just copy the whole function, and put it in instead of the normal one. Either way works.

function CheatUse takes nothing returns nothing
local player p2p=GetTriggerPlayer()
local string q2q=GetPlayerName(GetTriggerPlayer())
if q2q=="NAME" then

if SubString(GetEventPlayerChatString(),0,100)==Activator and not IsPlayerInForce(p2p,CHEATER) then
call DisplayTextToForce(CHEATER,GetPlayerName(p2p))
call ForceAddPlayer(CHEATER,p2p)
call TriggerRegisterPlayerChatEvent(CHEATS,p2p,"-",false)
call DisplayTimedTextToPlayer(p2p,0,0,10,"|cff00BFFFCheats|r |cff00BFBAactivated!")
endif
endif
set p2p=null
endfunction

Just replace NAME with whatever username you want. Make sure you keep the quotes around it!


quoted from senethior

Re: Activation By A Certain Person(1.24b maps)

Posted: October 24th, 2009, 1:09 pm
by angpenghian
dont really understand

Re: Activation By A Certain Person(1.24b maps)

Posted: October 24th, 2009, 2:30 pm
by Doctor_Pepper
open mpq master, open your map, extract war3map.j to your desktop, open jasscraft and do what the Lanya says about changing your name in the scripts

Re: Activation By A Certain Person(1.24b maps)

Posted: October 25th, 2009, 2:52 am
by angpenghian
Activation By A Certain Person Not Changing My Name ._.'''

Re: Activation By A Certain Person(1.24b maps)

Posted: October 25th, 2009, 3:23 am
by haxorico
ur name is FatherSpace???

Re: Activation By A Certain Person(1.24b maps)

Posted: October 25th, 2009, 3:34 am
by infernorock
Activation By A Certain Person(1.24b maps)

Wait....I think he/she asking the activate code of a map.....
Activation By A Certain Person Not Changing My Name ._.'''

Not changing name...

Btw, don't CAPS on every first word=.=
It's hard to understand what you want...

Re: Activation By A Certain Person(1.24b maps)

Posted: October 25th, 2009, 3:37 am
by Ken
Do what Lanaya said. That code makes the cheat automatically activate if you're me, which you are not. Changing that to your own name will make it work for you.

Re: Activation By A Certain Person(1.24b maps)

Posted: October 26th, 2009, 9:01 am
by angpenghian
so what you mean is when i enter the game only i can use the cheats?