SHOW:
|
|
- or go back to the newest paste.
1 | system.disableChatCommandDisplay("aide") | |
2 | system.disableChatCommandDisplay("vampire") | |
3 | system.disableChatCommandDisplay("chamane") | |
4 | system.disableChatCommandDisplay("respawn") | |
5 | system.disableChatCommandDisplay("mort") | |
6 | system.disableChatCommandDisplay("fromage") | |
7 | system.disableChatCommandDisplay("meep") | |
8 | system.disableChatCommandDisplay("lock") | |
9 | ||
10 | code = "Set your code here !" | |
11 | - | version = "version beta-3-v1" |
11 | + | version = "v1" |
12 | ||
13 | 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) | |
14 | ||
15 | ui.addTextArea(0, "<b><font size='14' face='Consolas' color='#000000' >TribeOS "..version.." - RUN</b></font>", all, 0, 20, 800, 20, 0x000000, 0x000000, 0) | |
16 | 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) | |
17 | ||
18 | function eventNewPlayer(playerName) | |
19 | ||
20 | tfm.exec.bindKeyboard(playerName,32,true,true) | |
21 | 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) | |
22 | ui.addPopup(102, 2, "<font size='15'><b>Insérez le code d'accées.</b></font>", playerName, 300, 150, 200) | |
23 | ui.addTextArea(0, "<b><font size='14' face='Consolas' color='#000000' >TribeOS "..version.." - RUN</b></font>", all, 0, 20, 800, 20, 0x000000, 0x000000, 0) | |
24 | 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) | |
25 | 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) | |
26 | ||
27 | end | |
28 | ||
29 | function eventEmotePlayed(playerName, emote) | |
30 | if emote==6 then | |
31 | 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) | |
32 | end | |
33 | end | |
34 | ||
35 | function eventPopupAnswer(id, playerName, answer) | |
36 | if id == 102 then | |
37 | if answer == code then | |
38 | ui.addPopup(101, 0, "<font size='15'><b>Le code est correct.</b></font>", playerName, 300, 150, 200) | |
39 | else | |
40 | ui.addPopup(102, 2, "<font size='15'><b>Insérez le code d'accées.</b></font>", playerName, 300, 150, 200) | |
41 | end | |
42 | end | |
43 | ||
44 | if id == 111 then | |
45 | print("<font color='#009D9D'>["..playerName.."]</font> <font color='#C2C2DA'>"..answer.."</font>") | |
46 | ui.addPopup(112, 0, "<font color='#009D9D' size='15'>["..playerName.."]</font> <font size='15'>"..answer.."</font>", nil, 0, 24, 800) | |
47 | end | |
48 | end | |
49 | ||
50 | function eventChatCommand(playerName, message) | |
51 | if message=="aide" then | |
52 | 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>", playerName, 200, 50, 400) | |
53 | end | |
54 | if message=="vampire" then | |
55 | tfm.exec.setVampirePlayer(playerName) | |
56 | end | |
57 | if message=="chamane" then | |
58 | tfm.exec.setShaman(playerName) | |
59 | end | |
60 | if message=="respawn" then | |
61 | tfm.exec.respawnPlayer(playerName) | |
62 | end | |
63 | if message=="mort" then | |
64 | tfm.exec.killPlayer(playerName) | |
65 | end | |
66 | if message=="fromage" then | |
67 | tfm.exec.giveCheese(playerName) | |
68 | end | |
69 | if message=="meep" then | |
70 | tfm.exec.giveMeep(playerName) | |
71 | end | |
72 | if message=="lock" then | |
73 | 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) | |
74 | ui.addPopup(102, 2, "<font size='15'><b>Insérez le code d'accées.</b></font>", all, 300, 150, 200) | |
75 | end | |
76 | end | |
77 | ||
78 | for playerName,player in pairs(tfm.get.room.playerList) do | |
79 | eventNewPlayer(playerName) | |
80 | end | |
81 | ||
82 | function eventKeyboard(playerName,key,down,x,y) | |
83 | if key==32 then | |
84 | tfm.exec.movePlayer(playerName,0,0,true,0,-50,false) | |
85 | end | |
86 | end |