SHOW:
|
|
- or go back to the newest paste.
1 | fly = false -- false : fly désactivé par défaut, true : fly activé par defaut | |
2 | teleport = false -- false : tpclick désactivé par défaut, true : tpclick activé par defaut. | |
3 | code = "MotDePasse" -- Mot de passe dès l'entrée d'un joueur | |
4 | demandeCode = false -- Demander le code ? true : oui, false : non | |
5 | owner = "PseudoAdmin" -- Pseudo de l'administrateur. | |
6 | owner2 = "PseudoAdmin2" -- Pseudo du deuxième administrateur | |
7 | - | version = "v3.0" -- Ne pas toucher |
7 | + | owner3 = "PseudoAdmin3" -- Pseudo du troisième administrateur. |
8 | version = "v3.1" -- Ne pas toucher | |
9 | ||
10 | for name in pairs(tfm.get.room.playerList) do | |
11 | system.bindMouse(name, true) | |
12 | end | |
13 | system.disableChatCommandDisplay("aide") | |
14 | system.disableChatCommandDisplay("vampire") | |
15 | system.disableChatCommandDisplay("chamane") | |
16 | system.disableChatCommandDisplay("respawn") | |
17 | system.disableChatCommandDisplay("mort") | |
18 | system.disableChatCommandDisplay("fromage") | |
19 | system.disableChatCommandDisplay("meep") | |
20 | system.disableChatCommandDisplay("lock") | |
21 | system.disableChatCommandDisplay("unlock") | |
22 | system.disableChatCommandDisplay("unlockP") | |
23 | system.disableChatCommandDisplay("tp") | |
24 | system.disableChatCommandDisplay("all-fly") | |
25 | system.disableChatCommandDisplay("all-fly false") | |
26 | system.disableChatCommandDisplay("tpclick") | |
27 | system.disableChatCommandDisplay("tpclick false") | |
28 | system.disableChatCommandDisplay("aideADM") | |
29 | system.disableChatCommandDisplay("time") | |
30 | system.disableChatCommandDisplay("couleur") | |
31 | system.disableChatCommandDisplay("spawnobject") | |
32 | system.disableChatCommandDisplay("lockP") | |
33 | system.disableChatCommandDisplay("couleurP") | |
34 | ||
35 | ||
36 | print("<font color='#FFFF00'>TribeOS "..version.." started.</font>") | |
37 | print("") | |
38 | print("<font color='#C2C2DA'><font color='#FFFF00'><b>!aideADM</b></font> : Liste des commandes ADMIN !</font>") | |
39 | print("<font color='#C2C2DA'>Faites l'émote <font color='#FFFF00'><b>dormir</b></font>, fonction cachée :D") | |
40 | print("") | |
41 | ui.addPopup(0, 0, "<p align='center'><font size='15'><b>Bienvenue sur TribeOS "..version.." !</b></font></p><br><font size='12'>Les commandes sont disponibles en tapant !aide.<br><br><b><font size='14' face='Consolas'>TribeOS "..version.." - RUN</b></font><br><b><font size='8' face='Comic Sans MS'>Coded by Nathaan</b></font>", playerName, 200, 100, 400) | |
42 | ||
43 | ui.addTextArea(0, "<b><font size='14' face='Consolas' color='#000000' >TribeOS "..version.." - RUN</b></font>", all, 0, 20, 800, 20, 0x000000, 0x000000, 0) | |
44 | ui.addTextArea(1, "<b><font size='8' face='Comic Sans MS' color='#000000' >Coded by Nathaan</b></font>", all, 0, 38, 800, 20, 0x000000, 0x000000, 0) | |
45 | ||
46 | function eventNewPlayer(playerName) | |
47 | ||
48 | for name in pairs(tfm.get.room.playerList) do | |
49 | system.bindMouse(name, true) | |
50 | end | |
51 | tfm.exec.bindKeyboard(playerName,32,true,true) | |
52 | if demandeCode then | |
53 | ui.addPopup(101, 0, "<br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br>", playerName, -1000, -1000, 1000000) | |
54 | ui.addPopup(102, 2, "<font size='15'><b>Insérez le code d'accées.</b></font>", playerName, 300, 150, 200) | |
55 | end | |
56 | ui.addTextArea(0, "<b><font size='14' face='Consolas' color='#000000' >TribeOS "..version.." - RUN</b></font>", all, 0, 20, 800, 20, 0x000000, 0x000000, 0) | |
57 | ui.addTextArea(1, "<b><font size='8' face='Comic Sans MS' color='#000000' >Coded by Nathaan</b></font>", all, 0, 38, 800, 20, 0x000000, 0x000000, 0) | |
58 | ui.addPopup(0, 0, "<p align='center'><font size='15'><b>Bienvenue sur TribeOS "..version.." !</b></font></p><br><font size='12'>Les commandes sont disponibles en tapant !aide.<br><br><b><font size='14' face='Consolas'>TribeOS "..version.." - RUN</b></font><br><b><font size='8' face='Comic Sans MS'>Coded by Nathaan</b></font>", playerName, 200, 100, 400) | |
59 | if playerName == owner then | |
60 | tfm.exec.setNameColor(playerName, 0x0FFFFF) | |
61 | end | |
62 | if playerName == owner2 then | |
63 | tfm.exec.setNameColor(playerName, 0x0FFFFF) | |
64 | end | |
65 | if playerName == owner3 then | |
66 | tfm.exec.setNameColor(playerName, 0x0FFFFF) | |
67 | end | |
68 | end | |
69 | ||
70 | function eventEmotePlayed(playerName, emote) | |
71 | if emote==6 then | |
72 | ui.addPopup(111,2,"<p align='center'><font size='30'><b><font face='Time Sans MS'>Special Agents Mices</font></b><br></font><font size='15'>Votre message special",playerName,200,50,400) | |
73 | end | |
74 | end | |
75 | ||
76 | function eventPopupAnswer(id, playerName, answer) | |
77 | if id == 102 then | |
78 | if answer == code then | |
79 | ui.addPopup(101, 0, "<font size='15'><b>Le code est correct.</b></font>", playerName, 300, 150, 200) | |
80 | else | |
81 | ui.addPopup(102, 2, "<font size='15'><b>Insérez le code d'accées.</b></font>", playerName, 300, 150, 200) | |
82 | end | |
83 | end | |
84 | ||
85 | if id == 111 then | |
86 | print("<font color='#009D9D'>["..playerName.."]</font> <font color='#C2C2DA'>"..answer.."</font>") | |
87 | ui.addPopup(112, 0, "<font color='#009D9D' size='15'>["..playerName.."]</font> <font size='15'>"..answer.."</font>", nil, 0, 24, 800) | |
88 | end | |
89 | end | |
90 | ||
91 | function eventChatCommand(playerName, message) | |
92 | local arg = {} | |
93 | for argument in message:gmatch ("[^%s]+") do | |
94 | table.insert (arg, argument); | |
95 | end | |
96 | if arg[1] == "tp" then | |
97 | tfm.exec.movePlayer(arg[2], arg[3], arg[4]) | |
98 | end | |
99 | if arg[1] == "time" then | |
100 | tfm.exec.setGameTime(arg[2]) | |
101 | end | |
102 | if arg[1] == "spawnobject" then | |
103 | tfm.exec.addShamanObject(arg[2],tfm.get.room.playerList[playerName].x,tfm.get.room.playerList[playerName].y) | |
104 | end | |
105 | if arg[1] == "couleur" then | |
106 | tfm.exec.setNameColor(playerName, "0x"..arg[2]) | |
107 | end | |
108 | if message=="aide" then | |
109 | ui.addPopup(1, 0, "<p align='center'><font size='16' color='#FF0000'><b>Commandes</b></font></p><br><font size='12' color='#C2C2DA'><font color='#EB1D51'><b>!vampire</b></font> : Se transformer en vampire.<br><font color='#EB1D51'><b>!chamane</b></font> : Devenir un chamane (sans compétences)<br><font color='#EB1D51'><b>!respawn</b></font> : Respawn dans les maps ou des joueurs sont encore présents.<br><font color='#EB1D51'><b>!mort</b></font> : Similaire à la commande /mort.<br><font color='#EB1D51'><b>!fromage</b></font> : Vous donne le fromage.<br><font color='#EB1D51'><b>!meep</b></font> : Vous donne le droit de meep..<br><font color='#EB1D51'><b>!tp [JOUEUR] [X] [Y]</b></font> : Téléporter un joueur aux coordonées demandés.<br><font color='#EB1D51'><b>!couleur ABCDEF</b></font> : Choisir la couleur de son pseudo, NE PAS METTRE LE # !<br><font color='#EB1D51'><b>!spawnobject</b></font> : Faire apparaître l'objet voulu à coté de soi. Marquez l'ID de l'objet.", playerName, 200, 50, 400) | |
110 | end | |
111 | if message=="vampire" then | |
112 | tfm.exec.setVampirePlayer(playerName) | |
113 | end | |
114 | if message=="chamane" then | |
115 | tfm.exec.setShaman(playerName) | |
116 | end | |
117 | if message=="respawn" then | |
118 | tfm.exec.respawnPlayer(playerName) | |
119 | end | |
120 | if message=="mort" then | |
121 | tfm.exec.killPlayer(playerName) | |
122 | end | |
123 | if message=="fromage" then | |
124 | tfm.exec.giveCheese(playerName) | |
125 | end | |
126 | if message=="meep" then | |
127 | tfm.exec.giveMeep(playerName) | |
128 | end | |
129 | if playerName == owner then | |
130 | if message=="unlock" then | |
131 | ui.addPopup(101, 0, "<font size='15'><b>Deverouille par un admin.</b></font>", all, 300, 150, 200) | |
132 | ui.addPopup(102, 0, "<font size='15'><b>Vous devez fermer cette fenêtre..</b></font>", all, 90, 150, 200) | |
133 | end | |
134 | if message=="lock" then | |
135 | ui.addPopup(101, 0, "<br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br>", all, -1000, -1000, 1000000) | |
136 | ui.addPopup(102, 2, "<font size='15'><b>Insérez le code d'accées.</b></font>", all, 300, 150, 200) | |
137 | end | |
138 | if message=="all-fly" then | |
139 | fly = true | |
140 | end | |
141 | if message=="aideADM" then | |
142 | ui.addPopup(1, 0, "<p align='center'><font size='16' color='#FF0000'><b>Commandes admin</b></font></p><br><font size='12' color='#C2C2DA'><font color='#EB1D51'><b>!unlock</b></font> : Dévérouiller pour tout le monde.<br><font color='#EB1D51'><b>!unlockP [PlayerName]</b></font> : Dévérouiller pour un joueur précis.<br><font color='#EB1D51'><b>!lock</b></font> : Bloquer à tout le monde.<br><font color='#EB1D51'><b>!lockP</b></font> : Bloquer pour un joueur précis.<br><font color='#EB1D51'><b>!all-fly (false)</b></font> : Donner l'autorisation à tout le monde de voler (false pour désactiver)<br><font color='#EB1D51'><b>!tpclick (false)</b></font> : Donne l'autorisation à tout le monde de se téléporter en cliquant. (false pour désactiver)<br><font color='#EB1D51'><b>!couleurP [PSEUDO] [COULEUR SANS LE #]</b></font> : Mettre le pseudo de quelqu'un en couleur.", playerName, 200, 50, 400) | |
143 | end | |
144 | if message=="all-fly false" then | |
145 | fly = false | |
146 | end | |
147 | local UP = {} | |
148 | for argument in message:gmatch ("[^%s]+") do | |
149 | table.insert (UP, argument); | |
150 | end | |
151 | ||
152 | if UP[1] == "unlockP" then | |
153 | ui.addPopup(101, 0, "<font size='15'><b>Deverouille par un admin.</b></font>", UP[2], 300, 150, 200) | |
154 | ui.addPopup(102, 0, "<font size='15'><b>Vous devez fermer cette fenêtre..</b></font>", UP[2], 90, 150, 200) | |
155 | end | |
156 | if UP[1] == "couleurP" then | |
157 | tfm.exec.setNameColor(arg[2], "0x"..arg[3]) | |
158 | end | |
159 | - | end |
159 | + | |
160 | ui.addPopup(101, 0, "<br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br>", arg[2], -1000, -1000, 1000000) | |
161 | ui.addPopup(102, 2, "<font size='15'><b>Insérez le code d'accées.</b></font>", arg[2], 300, 150, 200) | |
162 | if message=="tpclick" then | |
163 | teleport = true | |
164 | end | |
165 | if message=="tpclick false" then | |
166 | teleport = false | |
167 | end | |
168 | end | |
169 | end | |
170 | if playerName == owner2 then | |
171 | if message=="unlock" then | |
172 | ui.addPopup(101, 0, "<font size='15'><b>Deverouille par un admin.</b></font>", all, 300, 150, 200) | |
173 | ui.addPopup(102, 0, "<font size='15'><b>Vous devez fermer cette fenêtre..</b></font>", all, 90, 150, 200) | |
174 | end | |
175 | if message=="lock" then | |
176 | ui.addPopup(101, 0, "<br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br>", all, -1000, -1000, 1000000) | |
177 | ui.addPopup(102, 2, "<font size='15'><b>Insérez le code d'accées.</b></font>", all, 300, 150, 200) | |
178 | end | |
179 | if message=="all-fly" then | |
180 | fly = true | |
181 | end | |
182 | if message=="aideADM" then | |
183 | ui.addPopup(1, 0, "<p align='center'><font size='16' color='#FF0000'><b>Commandes admin</b></font></p><br><font size='12' color='#C2C2DA'><font color='#EB1D51'><b>!unlock</b></font> : Dévérouiller pour tout le monde.<br><font color='#EB1D51'><b>!unlockP [PlayerName]</b></font> : Dévérouiller pour un joueur précis.<br><font color='#EB1D51'><b>!lock</b></font> : Bloquer à tout le monde.<br><font color='#EB1D51'><b>!lockP</b></font> : Bloquer pour un joueur précis.<br><font color='#EB1D51'><b>!all-fly (false)</b></font> : Donner l'autorisation à tout le monde de voler (false pour désactiver)<br><font color='#EB1D51'><b>!tpclick (false)</b></font> : Donne l'autorisation à tout le monde de se téléporter en cliquant. (false pour désactiver)<br><font color='#EB1D51'><b>!couleurP [PSEUDO] [COULEUR SANS LE #]</b></font> : Mettre le pseudo de quelqu'un en couleur.", playerName, 200, 50, 400) | |
184 | end | |
185 | if message=="all-fly false" then | |
186 | fly = false | |
187 | end | |
188 | local UP = {} | |
189 | for argument in message:gmatch ("[^%s]+") do | |
190 | table.insert (UP, argument); | |
191 | end | |
192 | ||
193 | if UP[1] == "unlockP" then | |
194 | ui.addPopup(101, 0, "<font size='15'><b>Deverouille par un admin.</b></font>", UP[2], 300, 150, 200) | |
195 | ui.addPopup(102, 0, "<font size='15'><b>Vous devez fermer cette fenêtre..</b></font>", UP[2], 90, 150, 200) | |
196 | end | |
197 | if UP[1] == "couleurP" then | |
198 | tfm.exec.setNameColor(arg[2], "0x"..arg[3]) | |
199 | end | |
200 | if UP[1] == "lockP" then | |
201 | ui.addPopup(101, 0, "<br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br>", arg[2], -1000, -1000, 1000000) | |
202 | ui.addPopup(102, 2, "<font size='15'><b>Insérez le code d'accées.</b></font>", arg[2], 300, 150, 200) | |
203 | if message=="tpclick" then | |
204 | teleport = true | |
205 | end | |
206 | if message=="tpclick false" then | |
207 | teleport = false | |
208 | end | |
209 | end | |
210 | if playerName == owner3 then | |
211 | if message=="unlock" then | |
212 | ui.addPopup(101, 0, "<font size='15'><b>Deverouille par un admin.</b></font>", all, 300, 150, 200) | |
213 | ui.addPopup(102, 0, "<font size='15'><b>Vous devez fermer cette fenêtre..</b></font>", all, 90, 150, 200) | |
214 | end | |
215 | if message=="lock" then | |
216 | ui.addPopup(101, 0, "<br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br>", all, -1000, -1000, 1000000) | |
217 | ui.addPopup(102, 2, "<font size='15'><b>Insérez le code d'accées.</b></font>", all, 300, 150, 200) | |
218 | end | |
219 | if message=="all-fly" then | |
220 | fly = true | |
221 | end | |
222 | if message=="aideADM" then | |
223 | ui.addPopup(1, 0, "<p align='center'><font size='16' color='#FF0000'><b>Commandes admin</b></font></p><br><font size='12' color='#C2C2DA'><font color='#EB1D51'><b>!unlock</b></font> : Dévérouiller pour tout le monde.<br><font color='#EB1D51'><b>!unlockP [PlayerName]</b></font> : Dévérouiller pour un joueur précis.<br><font color='#EB1D51'><b>!lock</b></font> : Bloquer à tout le monde.<br><font color='#EB1D51'><b>!lockP</b></font> : Bloquer pour un joueur précis.<br><font color='#EB1D51'><b>!all-fly (false)</b></font> : Donner l'autorisation à tout le monde de voler (false pour désactiver)<br><font color='#EB1D51'><b>!tpclick (false)</b></font> : Donne l'autorisation à tout le monde de se téléporter en cliquant. (false pour désactiver)<br><font color='#EB1D51'><b>!couleurP [PSEUDO] [COULEUR SANS LE #]</b></font> : Mettre le pseudo de quelqu'un en couleur.", playerName, 200, 50, 400) | |
224 | end | |
225 | if message=="all-fly false" then | |
226 | fly = false | |
227 | end | |
228 | local UP = {} | |
229 | for argument in message:gmatch ("[^%s]+") do | |
230 | table.insert (UP, argument); | |
231 | end | |
232 | ||
233 | if UP[1] == "unlockP" then | |
234 | ui.addPopup(101, 0, "<font size='15'><b>Deverouille par un admin.</b></font>", UP[2], 300, 150, 200) | |
235 | ui.addPopup(102, 0, "<font size='15'><b>Vous devez fermer cette fenêtre..</b></font>", UP[2], 90, 150, 200) | |
236 | end | |
237 | if UP[1] == "couleurP" then | |
238 | tfm.exec.setNameColor(arg[2], "0x"..arg[3]) | |
239 | end | |
240 | if UP[1] == "lockP" then | |
241 | ui.addPopup(101, 0, "<br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br>", arg[2], -1000, -1000, 1000000) | |
242 | ui.addPopup(102, 2, "<font size='15'><b>Insérez le code d'accées.</b></font>", arg[2], 300, 150, 200) | |
243 | if message=="tpclick" then | |
244 | teleport = true | |
245 | end | |
246 | if message=="tpclick false" then | |
247 | teleport = false | |
248 | end | |
249 | end | |
250 | end | |
251 | end | |
252 | end | |
253 | ||
254 | for playerName,player in pairs(tfm.get.room.playerList) do | |
255 | eventNewPlayer(playerName) | |
256 | end | |
257 | ||
258 | function eventKeyboard(playerName,key,down,x,y) | |
259 | if fly then | |
260 | if key==32 then | |
261 | tfm.exec.movePlayer(playerName,0,0,true,0,-50,false) | |
262 | end | |
263 | end | |
264 | end | |
265 | ||
266 | function eventMouse(playerName, x, y) | |
267 | if teleport then | |
268 | tfm.exec.movePlayer(playerName,x,y) | |
269 | end | |
270 | end |