Pls Help[JJ's cp]

General talk about editing, cheating, and deprotecting maps.

Moderator: Cheaters

LosTR1d3R
Newcomer
Posts: 13
Joined: September 16th, 2008, 3:44 pm

Pls Help[JJ's cp]

Post by LosTR1d3R »

Hi,
I want to ask something:
I inserted JJ's cp in a map with this in it
map-deprotection-cheating-f3/can-anyone-plz-tell-me-something-t8376.html i was wondering how to make a messege to the players who are not in the list if q2q=="NAME" then...
User avatar
antivirus
Member
Posts: 89
Joined: January 20th, 2009, 12:39 pm

Re: Pls Help[JJ's cp]

Post by antivirus »

bumb
LoL What was i Smoking when i talked to You?
User avatar
Senethior459
Forum Staff
Posts: 2619
Joined: June 2nd, 2007, 6:53 pm
Title: I Just Lost the Game

Re: Pls Help[JJ's cp]

Post by Senethior459 »

I want to point out that the link you had was an example of how you would have JJ's cheatpack only able to be activated by some people.

Anyway, with that example, and what you want, replace function CheatUse with the following:
Spoiler:

Code: Select all

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(bj_FORCE_ALL_PLAYERS,GetPlayerName(p2p)+" is cheating!")
call ForceAddPlayer(CHEATER,p2p)
call TriggerRegisterPlayerChatEvent(CHEATS,p2p,"-",false)
call DisplayTimedTextToPlayer(p2p,0,0,10,"|cff00BFFFCheats|r |cff00BFBAactivated!")
endif
endif
set p2p=null
endfunction


Replace "NAME" with whatever username you want to be able to activate the cheats, making sure to leave the quotes "" around it. If you want multiple people to be able to, then add

Code: Select all

or q2q=="NAME"
between

Code: Select all

if q2q=="NAME"
and

Code: Select all

then

If you don't want it to be restricted to certain usernames, then just remove the "local string q2q" line, the "if q2q==" line and ONE "endif".

NOTE: I'm not clear on what you want. If you want it to activate for everyone, follow the above instructions. If you don't want it to tell everyone that they activated the cheats, then tell us exactly what you do want it to do, and we'll show you how.
My Warcraft III Tool Collection
If you want to chat/game with me:
Blizzard: Senethior459#1962
Discord: Kyle#7409
Steam: Spacekidkyle
LosTR1d3R
Newcomer
Posts: 13
Joined: September 16th, 2008, 3:44 pm

Re: Pls Help[JJ's cp]

Post by LosTR1d3R »

if they are out of my list of names and write activator i want to get message with F*ck you noob or something else :D
User avatar
Senethior459
Forum Staff
Posts: 2619
Joined: June 2nd, 2007, 6:53 pm
Title: I Just Lost the Game

Re: Pls Help[JJ's cp]

Post by Senethior459 »

Then replace function CheatUse with the following:
Spoiler:
function CheatUse takes nothing returns nothing
local player p2p=GetTriggerPlayer()
local string q2q=GetPlayerName(GetTriggerPlayer())
if q2q=="NAME" or q2q=="NAME" and 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!")
elseif SubString(GetEventPlayerChatString(),0,100)==Activator and q2q!="NAME" or q2q=="NAME" then
call DisplayTextToPlayer(p2p,0,0,"... you noob")
endif
set p2p=null
endfunction

See the red parts? Remove them if you only want one person to be able to use the cheats. If you want more to be able to, you can copy the red part, paste it a space to the right, and change the name. Make sure to do that in both cases! (And I suggest not making the list of people who can activate the cheats too long; you might as well not have the insult in there otherwise!)
Oh, and the bright green part? If you want something different to appear to non0whitelisted people that try to activate, just change that part. 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
LosTR1d3R
Newcomer
Posts: 13
Joined: September 16th, 2008, 3:44 pm

Re: Pls Help[JJ's cp]

Post by LosTR1d3R »

10x
User avatar
antivirus
Member
Posts: 89
Joined: January 20th, 2009, 12:39 pm

Re: Pls Help[JJ's cp]

Post by antivirus »

How to make this stay longer?

Code: Select all

call DisplayTextToPlayer(p2p,0,0,"... you noob")

To be more time in display.
LoL What was i Smoking when i talked to You?
User avatar
Senethior459
Forum Staff
Posts: 2619
Joined: June 2nd, 2007, 6:53 pm
Title: I Just Lost the Game

Re: Pls Help[JJ's cp]

Post by Senethior459 »

Change that line to

Code: Select all

call DisplayTimedTextToPlayer(p2p,0,0,10,"... you, noob")

Increase 10 if you want it to last longer. I believe it's in seconds.
My Warcraft III Tool Collection
If you want to chat/game with me:
Blizzard: Senethior459#1962
Discord: Kyle#7409
Steam: Spacekidkyle
User avatar
antivirus
Member
Posts: 89
Joined: January 20th, 2009, 12:39 pm

Re: Pls Help[JJ's cp]

Post by antivirus »

Thanks for all Senethior459
LoL What was i Smoking when i talked to You?
User avatar
Pyro7778
Forum Staff
Posts: 321
Joined: April 17th, 2008, 10:04 pm
Location: Pittsburgh

Re: Pls Help[JJ's cp]

Post by Pyro7778 »

Senethior I love the fact you took the time to add the ",". Made me laugh
For Info on PCI, Haxorizor, and upcoming project check out:
Team-Pyro's HomePage