Can anyone please tell me Something?

General talk about editing, cheating, and deprotecting maps.

Moderator: Cheaters

mysterio2910
Junior Member
Posts: 34
Joined: October 22nd, 2008, 11:31 am
Title: Yu-Gi-Oh Is Th3 BeSt
Location: Bintulu, Sarawak, Malaysia

Can anyone please tell me Something?

Post by mysterio2910 »

can i ask about how to add code that only can enable specific username? although i see the last post by mapler, but i still couldnt understand.. please teach me.....

ThX
I'm Playing Yu-Gi-Oh! OCG (Original Card Game). Anyone same interest with me can contact me through
My Hotmail: [email protected]
User avatar
Senethior459
Forum Staff
Posts: 2619
Joined: June 2nd, 2007, 6:53 pm
Title: I Just Lost the Game

Re: Can anyone please tell me Something?

Post by Senethior459 »

If you're using JJ's cheatpack, then scroll down to the last function in the endglobals, called CheatUse. You want to add the things in red, exactly where they are. Or just copy the whole function, and put it in instead of the normal one. Either way works.

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

Just replace NAME with whatever username you want. Make sure you keep 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
User avatar
zamundax
Forum Fanatic
Posts: 342
Joined: October 8th, 2008, 4:21 pm

Re: Can anyone please tell me Something?

Post by zamundax »

And this is going to work only for the "NAME" that we tipe there only he can activate the cheats?
And we put only the part in red write?



EDIT: NVM i anserd my own questions :)

THANK YOU!
Spoiler:
Image
Kidn
mysterio2910
Junior Member
Posts: 34
Joined: October 22nd, 2008, 11:31 am
Title: Yu-Gi-Oh Is Th3 BeSt
Location: Bintulu, Sarawak, Malaysia

Re: Can anyone please tell me Something?

Post by mysterio2910 »

senethior..

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<<<<<<<<<<<<this also need to put my username with quotes?
set p2p=null
endfunction



the username i put must in full name?

For example,
my username in Garena is [MyS]MySt3r|0 so i need put:

function CheatUse takes nothing returns nothing
local player p2p=GetTriggerPlayer()
local string q2q=GetPlayerName(GetTriggerPlayer())
if q2q=="[MyS]MySt3r|0" 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
[MyS]MySt3r|0
set p2p=null
endfunction


Like that is it?
I'm Playing Yu-Gi-Oh! OCG (Original Card Game). Anyone same interest with me can contact me through
My Hotmail: [email protected]
User avatar
Luciferianism
Senior Member
Posts: 112
Joined: November 8th, 2008, 4:38 am
Title: God

Re: Can anyone please tell me Something?

Post by Luciferianism »

mysterio2910 wrote:the username i put must in full name?

For example,
my username in Garena is [MyS]MySt3r|0 so i need put:

function CheatUse takes nothing returns nothing
local player p2p=GetTriggerPlayer()
local string q2q=GetPlayerName(GetTriggerPlayer())
if q2q=="[MyS]MySt3r|0" 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


Like that is it?


...Yes...

Otherwise it wouldn't work? lol...
Also, don't put your name at the bottom of "endif"... it's just....

Code: Select all

function CheatUse takes nothing returns nothing
local player p2p=GetTriggerPlayer()
local string q2q=GetPlayerName(GetTriggerPlayer())
if q2q=="[MyS]MySt3r|0" 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


Why is there two endif's?

Code: Select all

if q2q=="[MyS]MySt3r|0" then
if SubString(GetEventPlayerChatString(),0,100)==Activator and not IsPlayerInForce(p2p,CHEATER) then


There are TWO "if's", so you need to end both of them.
mysterio2910
Junior Member
Posts: 34
Joined: October 22nd, 2008, 11:31 am
Title: Yu-Gi-Oh Is Th3 BeSt
Location: Bintulu, Sarawak, Malaysia

Re: Can anyone please tell me Something?

Post by mysterio2910 »

Luciferianism wrote:
mysterio2910 wrote:the username i put must in full name?

For example,
my username in Garena is [MyS]MySt3r|0 so i need put:

function CheatUse takes nothing returns nothing
local player p2p=GetTriggerPlayer()
local string q2q=GetPlayerName(GetTriggerPlayer())
if q2q=="[MyS]MySt3r|0" 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


Like that is it?


...Yes...

Otherwise it wouldn't work? lol...
Also, don't put your name at the bottom of "endif"... it's just....

Code: Select all

function CheatUse takes nothing returns nothing
local player p2p=GetTriggerPlayer()
local string q2q=GetPlayerName(GetTriggerPlayer())
if q2q=="[MyS]MySt3r|0" 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


Why is there two endif's?

Code: Select all

if q2q=="[MyS]MySt3r|0" then
if SubString(GetEventPlayerChatString(),0,100)==Activator and not IsPlayerInForce(p2p,CHEATER) then


There are TWO "if's", so you need to end both of them.


Can i ask?

Y ur copy only gt One [MyS]MySt3r|0?

And my copy

Quote:
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
NAME
set p2p=null
endfunction


LOLX

Then i should follow which?

another thing is what do u mean by

Why is there two endif's?

Code: Select all

if q2q=="[MyS]MySt3r|0" then
if SubString(GetEventPlayerChatString(),0,100)==Activator and not IsPlayerInForce(p2p,CHEATER) then



There are TWO "if's", so you need to end both of them.


please explain more..

If u wan say IM a noob

I will not mind but please explain in details..


Or i hav a good idea..

Y dont u hack a map and give me see how u do it with the username [MyS]MySt3r|0

So i can revise the map

I will give u the map
You do not have the required permissions to view the files attached to this post.
I'm Playing Yu-Gi-Oh! OCG (Original Card Game). Anyone same interest with me can contact me through
My Hotmail: [email protected]
User avatar
Senethior459
Forum Staff
Posts: 2619
Joined: June 2nd, 2007, 6:53 pm
Title: I Just Lost the Game

Re: Can anyone please tell me Something?

Post by Senethior459 »

If you place an if, you need to end the if. Every if must have an endif, or it has errors. There's two ifs, so there's two endifs.

And I never posted it with endif and NAME, just two endifs. Look at my post!
My Warcraft III Tool Collection
If you want to chat/game with me:
Blizzard: Senethior459#1962
Discord: Kyle#7409
Steam: Spacekidkyle
User avatar
Kryptonyte
Forum Staff
Posts: 1400
Joined: March 17th, 2008, 12:07 am

Re: Can anyone please tell me Something?

Post by Kryptonyte »

NFjsdnfasjbdfkasnfkln932fhds8fg7832hbfisdfkisadhf8923hfosdf.

Kay.

Listen.

Closely.

The number of "if"s HAS TO equal the number of "endif"s.

So, if there are two "if"s, there are two "endif"s.

Also, you don't place your name after the endif.
No one ever said to do that, at all.
I don't know where/why you got the impression you were suppose to do that.
It was fail.
Image
Made by the late ILikeHacking

My quote from SKillER

Spoiler:
Chat wrote:(19:12:41) SKillER: newfags cant triforce
(19:20:30) SKillER: ▲
▲ ▲
(19:20:35) SKillER: aww
(19:20:37) FatherSpace: FAIL
(19:20:43) Kryptonyte: Wow stop failing.
(19:20:47) SKillER: ▲
▲ ▲
(19:21:41) Kryptonyte: .

. ▲
▲ ▲
(19:22:20) Kryptonyte: I guess you were right, newfags can't triforce.
(19:22:29) SKillER: . . ▲
▲ ▲
(19:23:04) SKillER: OMFG
(19:23:06) SKillER: ... THIS CHAT
(19:23:06) SKillER: !
(19:23:36) SKillER: ▲
▲ ▲
(19:23:46) SKillER: ▲
.▲ ▲


Apparently, SKillER is a newfag.
mysterio2910
Junior Member
Posts: 34
Joined: October 22nd, 2008, 11:31 am
Title: Yu-Gi-Oh Is Th3 BeSt
Location: Bintulu, Sarawak, Malaysia

Re: Can anyone please tell me Something?

Post by mysterio2910 »

I start to know something...

But if there are more then a username

Then how to add the code?


Thankz
Last edited by mysterio2910 on December 10th, 2008, 1:48 pm, edited 1 time in total.
I'm Playing Yu-Gi-Oh! OCG (Original Card Game). Anyone same interest with me can contact me through
My Hotmail: [email protected]
User avatar
Kryptonyte
Forum Staff
Posts: 1400
Joined: March 17th, 2008, 12:07 am

Re: Can anyone please tell me Something?

Post by Kryptonyte »

No clue what you just said.
Image
Made by the late ILikeHacking

My quote from SKillER

Spoiler:
Chat wrote:(19:12:41) SKillER: newfags cant triforce
(19:20:30) SKillER: ▲
▲ ▲
(19:20:35) SKillER: aww
(19:20:37) FatherSpace: FAIL
(19:20:43) Kryptonyte: Wow stop failing.
(19:20:47) SKillER: ▲
▲ ▲
(19:21:41) Kryptonyte: .

. ▲
▲ ▲
(19:22:20) Kryptonyte: I guess you were right, newfags can't triforce.
(19:22:29) SKillER: . . ▲
▲ ▲
(19:23:04) SKillER: OMFG
(19:23:06) SKillER: ... THIS CHAT
(19:23:06) SKillER: !
(19:23:36) SKillER: ▲
▲ ▲
(19:23:46) SKillER: ▲
.▲ ▲


Apparently, SKillER is a newfag.