Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local nPizzaPickup = {
- createPickup ( -1088.5999755859, 428.20001220703, 13.60000038147, 3, 1582 ),
- createPickup ( -1067.5, 407.20001220703, 13.60000038147, 3, 1582 )
- }
- --------------------------------------------------------------------------------------
- local nPizzaFound = { { } }-- is this possible?
- ----------------------
- function onPlayerPickupPizza ( thePickup )
- for iii = 1, #nPizzaPickup do--<<
- if thePickup == nPizzaPickup[source][iii] then--is this possible?
- if nPizzaFound[source][iii] == true then
- outputChatBox ( "* You already found this pizza.", source )
- return true
- end
- --
- outputChatBox ( "* You found the pizza " .. iii .. ". Here, have some money.", source )
- givePlayerMoney ( source, 500 )
- nPizzaFound[source][iii] = true
- end
- end
- end
- addEventHandler ( "onPlayerPickupHit", getRootElement(), onPlayerPickupPizza )
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement