Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- imageID = 0
- resources = {{"naruto","aa52f32e6b5a11e78ef9109836a51f7d.png",-80},{"goku","3a5267126b5a11e78ef9109836a51f7d.png",-80},{"goku black","7527e8906b5911e78ef9109836a51f7d.png",-80},{"ash ketchup","b9fccfc46b5b11e78ef9109836a51f7d.png",-60},{"kaneki","fffec41e6b5b11e78ef9109836a51f7d.png",-60},{"saitama","0f3d26086b5e11e78ef9109836a51f7d.png",-100},{"stingy","ce0413266b5e11e78ef9109836a51f7d.png",-120},{"ram","21cb43166e8a11e78ef9109836a51f7d.png",-100},{"izuku","65a962ce6e8b11e78ef9109836a51f7d.png",-100},{"sasuke","4ae6ba086e8c11e78ef9109836a51f7d.png",-75}}
- function eventChatCommand(playerName,command)
- local counter = 1
- local found = false
- repeat
- if (counter == 11) then
- break
- end
- if (command == resources[counter][1]) then
- tfm.exec.removeImage(imageID)
- imageID = tfm.exec.addImage(resources[counter][2],"%"..playerName,-35,resources[counter][3])
- system.disableChatCommandDisplay(resources[counter][1])
- found = true
- else
- counter = counter + 1
- end
- until (found == true)
- end
- for (i=1,#resources,1) do
- system.disableChatCommandDisplay(resources[i][1])
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement