SHOW:
|
|
- or go back to the newest paste.
1 | - | local function EventOnTeleport_Chat(event, player, msg, Type, lang) |
1 | + | local function onCommand(event, player, cmd) |
2 | - | if (msg == ".mall") then |
2 | + | if cmd == "mall" then |
3 | - | player:Teleport(530, 4118.828125, 2944.462158, 354.522064, 4.702944) |
3 | + | player:Teleport(530, 4118.828125, 2944.462158, 354.522064, 4.702944) |
4 | - | elseif (msg == ".duel") then |
4 | + | elseif cmd == "duel" then |
5 | - | player:Teleport(530, -5205.934082, -1647.830078, 497.840637, 5.733436) |
5 | + | player:Teleport(530, -5205.934082, -1647.830078, 497.840637, 5.733436) |
6 | end | |
7 | end | |
8 | ||
9 | - | RegisterPlayerEvent(18, EventOnTeleport_Chat) |
9 | + | RegisterPlayerEvent(42, onCommand) |