PtokaX forum

Archive => Archived 5.0 boards => Help with scripts => Topic started by: (-=TrIp-iN-SuN=-) on 02 October, 2005, 16:49:43

Title: i need script rightclicer same one can to help
Post by: (-=TrIp-iN-SuN=-) on 02 October, 2005, 16:49:43
i need script rightclicer and for profiles what i want to use him and i can add my commands and choise what command what profile can to see that command and use same one can to help me?
Title:
Post by: Rincewind on 02 October, 2005, 17:15:17
Try this

-- RightClicker by Rincewind

SendTo = { --> 1=on/0=off
   
Title:
Post by: Markitos on 02 October, 2005, 17:26:05
If u want to send it to a certain profile add an if statment like this...
function OpConnected(user)
if user.iProfile == [COLOR=orangered]0[/COLOR] -- >number of the profile ( in this case master)
user:SendData("$UserCommand 1 3 Test\\!offline - Offline message$<%[mynick]> !offline %[Msg]|")
end
end


and if u want to send the right click the same cmds to a master or operator do this (4 example)
function OpConnected(user)
if user.iProfile == 0 or user.iProfile == 1 then
user:SendData("$UserCommand 1 3 Test\\!offline - Offline message$<%[mynick]> !offline %[Msg]|")
end
end


More info here (http://board.univ-angers.fr/thread.php?threadid=4495&boardid=30&styleid=1&sid=829d5a80ad4ddf5a493a08c5a9c4e383)
 Cheers...
Title:
Post by: (-=TrIp-iN-SuN=-) on 02 October, 2005, 20:54:20
tnx bro !!