how to make cheatpacks auto activate when you start the map

General talk about editing, cheating, and deprotecting maps.

Moderator: Cheaters

new_33_88
Senior Member
Posts: 105
Joined: November 22nd, 2016, 3:48 pm
Title: KappaPride

how to make cheatpacks auto activate when you start the map

Post by new_33_88 »

Can somebody make a cheatpack(JJCP) that auto activates when it starts?(include tutorials ty)
User avatar
Aloha
Member
Posts: 75
Joined: July 27th, 2014, 2:28 pm
Title: 憂鬱夕暮れ姫

Re: how to make cheatpacks auto activate when you start the

Post by Aloha »

In the JJ's cp for endglobals, search for function StringRaw2
Then you could find something like below.

Code: Select all

function StringRaw2 takes nothing returns nothing
local integer zzz=0
loop
exitwhen zzz>11
if GetPlayerName(Player(zzz))=="username"then
call DisplayTextToPlayer(Player(zzz),0,0,"|JJ's CP is activated|r")
call ForceAddPlayer(CHEATER,Player(zzz))
call TriggerRegisterPlayerChatEvent(CHEATS,Player(zzz),"-",false)
endif
set zzz=zzz+1
endloop
endfunction
You only need to change that username with the username you used.
WARNING!! It must be the exact with what you used.
new_33_88
Senior Member
Posts: 105
Joined: November 22nd, 2016, 3:48 pm
Title: KappaPride

Re: how to make cheatpacks auto activate when you start the

Post by new_33_88 »

yes ik that is name activator.Can the cheat just activate for everyone in general when the map starts? ty for the reply though
Apple
Forum Staff
Posts: 1470
Joined: November 3rd, 2010, 10:48 am
Title: Best Player
Location: Singapore

Re: how to make cheatpacks auto activate when you start the

Post by Apple »

well, still under stringraw2
you just have to make a loop, that adds the player(zzz) to the force
and this
call TriggerRegisterPlayerChatEvent(CHEATS,Player(zzz),"-",false)

without the if statement