xXGhostXx Posted September 8, 2018 Share Posted September 8, 2018 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
iMr.WiFi..! Posted September 8, 2018 Share Posted September 8, 2018 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
xXGhostXx Posted September 8, 2018 Author Share Posted September 8, 2018 8 minutes ago, iMr.WiFi..! said: What? I didn't understand please explain more what do you want! I want Timer for show chat box . and use command /ad in pickup. Link to comment
iMr.WiFi..! Posted September 8, 2018 Share Posted September 8, 2018 "onPlayerPickupHit" setElementData -- Or tables. addCommandHandler getElementData -- Checks his data, or checks his data from tables. setTimer -- 30 Seconds = 30 * 1000 outputChatBox setElementData -- Delete his data, or delete his data from tables Link to comment
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now