Escolar Documentos
Profissional Documentos
Cultura Documentos
new paste
Guest User
-
Public Pastes
Untitled9 sec ago
Untitled13 sec ago
UntitledC | 21 sec ago
Untitled22 sec ago
Untitled23 sec ago
TWITTER LEAKED D...27 sec ago
Untitled28 sec ago
Untitled33 sec ago
SHARE
TWEET
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
rawdownloadcloneembedreportprintLua 0.38 KB
1.
2. function pickupitem_main(e)
3. maxDist = 85
4. PlayerDist = GetPlayerDistance(e)
5. if PlayerDist < maxDist then
6. Prompt("Press 'E' To PickUp Item!")
7. key = GetInKey()
8. if key == "e" then
9. Collected(e)
10. Destroy(e)
11. PromptDuration('You Collected The Item!',7)
12. elseif key == "l" then
13. SetPlayerLives(e,5)
14. PromptDuration('You Now Have 5 Lives!',7)
15. end
16. end
17. end