activation by a certain person

General talk about editing, cheating, and deprotecting maps.

Moderator: Cheaters

teino
Junior Member
Posts: 36
Joined: July 17th, 2007, 7:55 pm
Title: 3xp3r7 h4x0|2 :-)

activation by a certain person

Post by teino »

Hi,

i tried to learn some jass(but i just fail at it) and tried to edit the script for JJ's and the Cheat Menu so i am the only player who can enable the cheats, however, it just doesnt work, i tried to play with 2 of my own pc's and both player names can activate it, my name being Azzinoth82 and the other player's name being Lars. Is there any way to edit the script so i'm the only one who can activate it?

Thanks in advance

~Teino
User avatar
Lanaya
Banned-To-Be
Posts: 1378
Joined: July 28th, 2008, 6:28 pm
Title: Administrator

Re: activation by a certain person

Post by Lanaya »

Image
League of legends North America - Nietono
teino
Junior Member
Posts: 36
Joined: July 17th, 2007, 7:55 pm
Title: 3xp3r7 h4x0|2 :-)

Re: activation by a certain person

Post by teino »

Thank you Lanaya, that one works for JJ's cp, but it won't work for SGguy's cheta menu i think

~teino
User avatar
abc1337
Newcomer
Posts: 3
Joined: July 23rd, 2008, 9:44 pm

Re: activation by a certain person

Post by abc1337 »

I tried it with the new JJ's cp but it seems that q2q was removed from the function?

Spoiler:
function CheatUse takes nothing returns nothing
local player p2p=GetTriggerPlayer()
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 inserted by [email protected]|r ")
endif
set p2p=null
endfunction

Now what do you have to do (I'm not skilled in JASS at all)?
User avatar
Senethior459
Forum Staff
Posts: 2619
Joined: June 2nd, 2007, 6:53 pm
Title: I Just Lost the Game

Re: activation by a certain person

Post by Senethior459 »

q2q was never part of it; that local declaration had to be added, too. I guess I forgot to highlight that part as needing to be added. I fixed it now:

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

The red parts are what you add. Replace NAME inside quotes with the username that you need to be able to activate the cheats. The username is case-sensitive, and be sure to leave the quotes around it.
My Warcraft III Tool Collection
If you want to chat/game with me:
Blizzard: Senethior459#1962
Discord: Kyle#7409
Steam: Spacekidkyle