Joined: October 20th, 2008, 2:59 am Posts: 405 Location: Malaysia - Selangor
Title: Inactive Map Cheater
If I Had No Wrong :
Spoiler:
function CheatUse takes nothing returns nothing local player p2p=GetTriggerPlayer() local string q2q=GetPlayerName(GetTriggerPlayer()) if q2q=="NAME" or q2q=="NAME" or 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
And You Can Add More
Code:
or q2q=="NAME"
BEFORE THEthen Depends On How Many Name You Want....
Example You Need 5 Name, This Is The Code :
Spoiler:
Code:
if q2q=="NAME" or q2q=="NAME" or q2q=="NAME" or q2q=="NAME" or q2q=="NAME" then
function CheatUse takes nothing returns nothing local player p2p=GetTriggerPlayer() local string q2q=GetPlayerName(GetTriggerPlayer()) if q2q=="NAME" or q2q=="NAME" or 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
And You Can Add More
Code:
or q2q=="NAME"
BEFORE THEthen Depends On How Many Name You Want....
Example You Need 5 Name, This Is The Code :
Spoiler:
Code:
if q2q=="NAME" or q2q=="NAME" or q2q=="NAME" or q2q=="NAME" or q2q=="NAME" then
Joined: October 22nd, 2008, 11:31 am Posts: 34 Location: Bintulu, Sarawak, Malaysia
Title: Yu-Gi-Oh Is Th3 BeSt
Thankzz
I am now full with knowledge of cheating for specific user...
TQ..
Then how to close 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
function CheatUse takes nothing returns nothing local player p2p=GetTriggerPlayer() local string q2q=GetPlayerName(GetTriggerPlayer()) if sp7=="NAME" or sp7=="NAME" or sp7=="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
Joined: June 2nd, 2007, 6:53 pm Posts: 2732
Title: I Just Lost the Game
[quote="thanatos95"]
Spoiler:
function CheatUse takes nothing returns nothing local player p2p=GetTriggerPlayer() local string q2q=GetPlayerName(GetTriggerPlayer()) if q2q=="NAME" or q2q=="NAME" or 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
He was completely right. That's how you would do it.
The one you just posted is wrong, actually. The local statement that you added says q2q, yet the name check code you're using is sp7. Either change q2q in the local declaration to sp7, or change all the sp7 instances to q2q. Or just copy the above function that thanatos posted; it's correct.
_________________ My Warcraft III Tool Collection If you want to chat/game with me: Blizzard: Senethior459#1962 Discord: Kyle#7409 Steam: Spacekidkyle
Users browsing this forum: No registered users and 25 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