Can anyone please tell me Something?
Moderator: Cheaters
-
- 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?
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
ThX
I'm Playing you-Gi-Oh! OCG (Original Card Game). Anyone same interest with me can contact me through
My Hotmail: [email protected]
My Hotmail: [email protected]
-
- Forum Staff
- Posts: 2618
- Joined: June 2nd, 2007, 6:53 pm
- Title: I Just Lost the Game
Re: Can anyone please tell me Something?
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!
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
If you want to chat/game with me:
Blizzard: Senethior459#1962
Discord: Kyle#7409
Steam: Spacekidkyle
-
- Forum Fanatic
- Posts: 342
- Joined: October 8th, 2008, 4:21 pm
Re: Can anyone please tell me Something?
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!
And we put only the part in red write?
EDIT: NVM i anserd my own questions
THANK YOU!
Spoiler:
-
- 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?
senethior..
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=="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:
Like that is it?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
I'm Playing you-Gi-Oh! OCG (Original Card Game). Anyone same interest with me can contact me through
My Hotmail: [email protected]
My Hotmail: [email protected]
-
- Senior Member
- Posts: 112
- Joined: November 8th, 2008, 4:38 am
- Title: God
Re: Can anyone please tell me Something?
...Yes...mysterio2910 wrote: the username i put must in full name?
For example,
my username in Garena is [MyS]MySt3r|0 so i need put:
Like that is it?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
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
Code: Select all
if q2q=="[MyS]MySt3r|0" then
if SubString(GetEventPlayerChatString(),0,100)==Activator and not IsPlayerInForce(p2p,CHEATER) then
-
- 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?
Can i ask?Luciferianism wrote:...Yes...mysterio2910 wrote: the username i put must in full name?
For example,
my username in Garena is [MyS]MySt3r|0 so i need put:
Like that is it?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
Otherwise it wouldn't work? lol...
Also, don't put your name at the bottom of "endif"... it's just....
Why is there two endif's?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
There are TWO "if's", so you need to end both of them.Code: Select all
if q2q=="[MyS]MySt3r|0" then if SubString(GetEventPlayerChatString(),0,100)==Activator and not IsPlayerInForce(p2p,CHEATER) then
Y ur copy only gt One [MyS]MySt3r|0?
And my copy
LOLXQuote:
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
Then i should follow which?
another thing is what do u mean by
please explain more..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.
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 you-Gi-Oh! OCG (Original Card Game). Anyone same interest with me can contact me through
My Hotmail: [email protected]
My Hotmail: [email protected]
-
- Forum Staff
- Posts: 2618
- Joined: June 2nd, 2007, 6:53 pm
- Title: I Just Lost the Game
Re: Can anyone please tell me Something?
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!
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
If you want to chat/game with me:
Blizzard: Senethior459#1962
Discord: Kyle#7409
Steam: Spacekidkyle
-
- Forum Staff
- Posts: 1400
- Joined: March 17th, 2008, 12:07 am
Re: Can anyone please tell me Something?
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.
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.
Made by the late ILikeHacking
My quote from SKillER
Spoiler:
-
- 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?
I start to know something...
But if there are more then a username
Then how to add the code?
Thankz
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 you-Gi-Oh! OCG (Original Card Game). Anyone same interest with me can contact me through
My Hotmail: [email protected]
My Hotmail: [email protected]
-
- Forum Staff
- Posts: 1400
- Joined: March 17th, 2008, 12:07 am
Re: Can anyone please tell me Something?
No clue what you just said.
Made by the late ILikeHacking
My quote from SKillER
Spoiler: