Jump to content

Advertise System


xXGhostXx

Recommended Posts

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 )

 

Link to comment
2 minutes ago, xXGhostXx said:

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 )

 

What?
I didn't understand please explain more what do you want!

Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...