Hello guys .
i have problem in my script .
1. i want use /ad in pickup position !
2. setTimer for show ChatBox for all players .
function Advertise ( thePlayer, _, ... )
local message = table.concat ( { ... }, " " )
if ... then
for index, allpl in ipairs(getElementsByType("player")) do
outputChatBox ( "Tabligh Az ".. getPlayerName ( thePlayer ) ..": #FFFFFF".. message.." #F39C12**", allpl,255, 255, 255, true )
takePlayerMoney(thePlayer,500)
end
else
outputChatBox ( "#F39C12Bezan : /ad <Tabligh>", thePlayer, 255, 255, 255, true )
end
end
addCommandHandler ( "ad", Advertise )
this is my code
and pick up code :
createPickup( 1113.7177734375, -1836.0322265625, 16.599960327148, 3, 1239, 1 )