wc3edit.net

United Warcraft 3 map hacking!
It is currently April 28th, 2024, 8:01 am

All times are UTC




Post new topic This topic is locked, you cannot edit posts or make further replies.  [ 25 posts ]  Go to page 1, 2, 3  Next
Author Message
PostPosted: December 7th, 2008, 11:19 am 
Offline
Junior Member

Joined: October 22nd, 2008, 11:31 am
Posts: 34
Location: Bintulu, Sarawak, Malaysia
Title: Yu-Gi-Oh Is Th3 BeSt
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: ehdy_2910@hotmail.com


Top
 Profile  
 
PostPosted: December 7th, 2008, 2:29 pm 
Offline
Forum Staff
User avatar

Joined: June 2nd, 2007, 6:53 pm
Posts: 2732
Title: I Just Lost the Game
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


Top
 Profile  
 
PostPosted: December 7th, 2008, 2:33 pm 
Offline
Forum Fanatic
User avatar

Joined: October 8th, 2008, 4:21 pm
Posts: 367
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


Top
 Profile  
 
PostPosted: December 9th, 2008, 2:41 am 
Offline
Junior Member

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

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
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:

Quote:
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: ehdy_2910@hotmail.com


Top
 Profile  
 
PostPosted: December 9th, 2008, 2:44 am 
Offline
Senior Member
User avatar

Joined: November 8th, 2008, 4:38 am
Posts: 114
Title: God
mysterio2910 wrote:
the username i put must in full name?

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

Quote:
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:
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:
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.

_________________
Image
TCO Alpha v2.8 Hacked
TBR v1.34b (Winter Edition) Hacked
Requesting rules


Top
 Profile  
 
PostPosted: December 10th, 2008, 12:29 am 
Offline
Junior Member

Joined: October 22nd, 2008, 11:31 am
Posts: 34
Location: Bintulu, Sarawak, Malaysia
Title: Yu-Gi-Oh Is Th3 BeSt
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:

Quote:
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:
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:
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:
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

Quote:
Why is there two endif's?

Code:
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: ehdy_2910@hotmail.com


Top
 Profile  
 
PostPosted: December 10th, 2008, 12:58 am 
Offline
Forum Staff
User avatar

Joined: June 2nd, 2007, 6:53 pm
Posts: 2732
Title: I Just Lost the Game
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


Top
 Profile  
 
PostPosted: December 10th, 2008, 7:44 am 
Offline
Forum Staff
User avatar

Joined: March 17th, 2008, 12:07 am
Posts: 1488
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.


Top
 Profile  
 
PostPosted: December 10th, 2008, 8:20 am 
Offline
Junior Member

Joined: October 22nd, 2008, 11:31 am
Posts: 34
Location: Bintulu, Sarawak, Malaysia
Title: Yu-Gi-Oh Is Th3 BeSt
I start to know something...

But if there are more then a username

Then how to add the code?


Thankz

_________________
I'm Playing Yu-Gi-Oh! OCG (Original Card Game). Anyone same interest with me can contact me through
My Hotmail: ehdy_2910@hotmail.com


Last edited by mysterio2910 on December 10th, 2008, 1:48 pm, edited 1 time in total.

Top
 Profile  
 
PostPosted: December 10th, 2008, 8:25 am 
Offline
Forum Staff
User avatar

Joined: March 17th, 2008, 12:07 am
Posts: 1488
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.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic This topic is locked, you cannot edit posts or make further replies.  [ 25 posts ]  Go to page 1, 2, 3  Next

All times are UTC


Who is online

Users browsing this forum: No registered users and 22 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group

phpBB SEO


Privacy Policy Statement
Impressum (German)