MRThinker Posted April 26, 2018 Posted April 26, 2018 Hello everyone Please give me a system of advertising This system is such that the player displays a player with a command to advertise a car or a house for sale to other players for example : ad from MrThinker (123-2212): My Infernus For Sell The MrThinker phone number is 123-2212! Please help me on this script
5150 Posted April 27, 2018 Posted April 27, 2018 no one is going to just "give" you a system, unless it was already released on community, in which you could just search there instead of making a forum topic... your description sounds similar to the roleplay script version. maybe you could make one using ideas from RP.
PSWGM9100 Posted April 29, 2018 Posted April 29, 2018 adprice = 5 function Advertise(player,cmd,...) local parametersTable = {...} local stringWithAllParameters = table.concat( parametersTable, " " ) local money = getPlayerMoney(player) local pname = getPlayerName(player) if money >= adprice then outputChatBox("Ad from "..pname..": "..stringWithAllParameters,root,0,255,0) outputChatBox("Phone number: 123-2212",root,0,255,0) takePlayerMoney(player,adprice) else outputChatBox("A advertise costs "..adprice.."$ !",player,255,0,0) end end addCommandHandler("ad",Advertise) I didn't test it, but i think its working. "/ad [text]"
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