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