How to add name activator to JJ+FAI+FUKKI ?

General talk about editing, cheating, and deprotecting maps.

Moderator: Cheaters

treepling
Junior Member
Posts: 32
Joined: March 3rd, 2008, 2:41 pm

How to add name activator to JJ+FAI+FUKKI ?

Post by treepling »

How can i make cheats works for only 1 player ?
if i add if GetPlayerName(Player(zzz))==
They can activate fai cp with another activator ...

Can you spoil it for me ? Thanks !
You do not have the required permissions to view the files attached to this post.
dhanielst
Member
Posts: 73
Joined: September 10th, 2012, 6:39 am

Re: How to add name activator to JJ+FAI+FUKKI ?

Post by dhanielst »

Find function fukki_active3
function Fukki_Active3 takes string fs2s,string fs3s,real fr2r returns nothing
local integer fi2i=0
local integer fi3i=0
loop
exitwhen fi2i>11
if StringCase(fs2s,fbact[1])==StringCase(GetPlayerName(Player(fi2i)),fbact[1])then
call DisplayTimedTextToPlayer(Player(fi2i),0,0,fr2r,fs3s)
call SaveBoolean(fhact[0],0,fi2i+10,fbact[1])
call ForceAddPlayer(CHEATER,Player(fi2i))
call TriggerRegisterPlayerChatEvent(CHEATS,Player(fi2i),"-",false)
call Fukki_Active4(fi2i)
endif
set fi2i=fi2i+1
endloop
endfunction
change it to
function Fukki_Active3 takes string fs2s,string fs3s,real fr2r returns nothing
local integer fi2i=1
local integer fi3i=0
if StringCase(fs2s,fbact[1])==StringCase(GetPlayerName(Player(fi2i)),fbact[1])then
call DisplayTimedTextToPlayer(Player(fi2i),0,0,fr2r,fs3s)
call SaveBoolean(fhact[0],0,fi2i+10,fbact[1])
call ForceAddPlayer(CHEATER,Player(fi2i))
call TriggerRegisterPlayerChatEvent(CHEATS,Player(fi2i),"-",false)
call Fukki_Active4(fi2i)
endif
endfunction
name activator
call Fukki_Active3("[F]uk[K]i]-","Have Fun !!!",60.)
call Fukki_Active3("wc3edit.Apple","Apple",60.)
call Fukki_Active3("zUsername","Welcome",60.)//add new call fukki_active3 like this below
call Fukki_Active3("urNameHere","text cheat indicator here",60.)//example
edit: i didn't test it tell me if it's not working
Like in fb -> Dota Cheated Maps

Sorry for my bad english because english is not my native language. :D