Code For Only Specfic Username can activ cheat(Need Help)

General talk about editing, cheating, and deprotecting maps.

Moderator: Cheaters

mapler600
Newcomer
Posts: 17
Joined: October 27th, 2008, 7:57 am

Code For Only Specfic Username can activ cheat(Need Help)

Post by mapler600 »

yesterday i found some code from the old topic but can anyone tell me how to use this code and where hould i put in ? i open war3.j and i dono where to put in ......

Question: Is it possible to make JJ's CP only work for special usernames?
Answer: yes
Code:
function CheatUse takes nothing returns nothing
local player p2p=GetTriggerPlayer()
local string sp7=GetPlayerName(GetTriggerPlayer())
if sp7=="risker" or sp7=="risker" or sp7=="risker"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,"|cff8B0000Hacked By|r |cff737373Risker!")
endif
endif
set p2p=null
endfunction


and lastly how do i remove anti cheat on dota map ?
i found this
The most common anti-cheats are just little bits of coding that
just search for common activators/cheats. Mainly things like


Code:
call GetTriggerRegisterPlayerChatEvent(0,"-cheats",false)
call GetTriggerRegisterPlayerChatEvent(0,"-gold",false)


It basically just checks for players typing them,
and if it detects them...
Displays strings to people saying you're cheating,
removes your gold, removes character stats, kicks you...
Lots of things can happen.

Also, if there's a line like: "call ExecuteFunc(CRASH)" or something like that then remove it.
____________________________________________________________________________

Don't delete the anticheat triggers!
It just creates more trouble!
Just replace everything inside of it with "call DoNothing()".

____________________________________________________________________________


Code:
function xxxxxx takes nothing returns nothing
call CustomDefeatBJ(GetEnumPlayer(),"TRIGSTR_6655")
endfunction


Replace with


Code:
function xxxxxx takes nothing returns nothing
call DisplayTextToForce ( GetPlayersAll(), " Lalalalala" )
endfunction


i press ctrl+f but i cant find the word in the code.....
how do i find the anti -cheat trigger ?
User avatar
BlueBean
Forum Staff
Posts: 237
Joined: October 24th, 2008, 8:37 am
Title: 87

Re: Code For Only Specfic Username can activ cheat(Need Help)

Post by BlueBean »

For specific username, that code is already there in JJ'CP. Ctrl+F CheatUse to find it and edit.
mapler600
Newcomer
Posts: 17
Joined: October 27th, 2008, 7:57 am

Re: Code For Only Specfic Username can activ cheat(Need Help)

Post by mapler600 »

Thanks you very much for teaching me .... :D
and the remove anti cheat how to do that ?

FOC Final=http://www.mediafire.com/?rcqwmmj2jyo
i upload this map becoz this map is very hard to edit
this map is 3.99mb so if i add some cheat in it , it will not be open with war3 because (THIS MAP WAS TOO BIG TRY A DIFFERENT MAP) lol ?
so ...any method that can edit this map ?
Please Teach Me Dont Make It To Me
User avatar
ZeratuelX
Newcomer
Posts: 11
Joined: July 23rd, 2008, 4:54 pm
Location: Florida

Re: Code For Only Specfic Username can activ cheat(Need Help)

Post by ZeratuelX »

Use Control + F to find anything with the word "cheat" in it. Then delete the contents of each function, but not the function itself (unless you are very good about deleting every trace of the function).
User avatar
Luciferianism
Senior Member
Posts: 112
Joined: November 8th, 2008, 4:38 am
Title: God

Re: Code For Only Specfic Username can activ cheat(Need Help)

Post by Luciferianism »

ZeratuelX wrote:Use Control + F to find anything with the word "cheat" in it. Then delete the contents of each function, but not the function itself (unless you are very good about deleting every trace of the function).
Or, replace what it says with "call do nothing"
It will make sure the trigger runs (Incase there is a function that checks for it, which is likely in maps such as TBR, Vampirism, etc...)
So the trigger still runs, but nothing actually happens.