lol
function roll(player.comd)
local roll = math random(1.6)
if roll = 1 then u won blablabla
elseif roll = 2 then u lost blablabla
elseif roll = 3 then u r muted
elseif roll = 4 then u win blablabla
end
end
addCommandHandler(("roll",roll)
mayba
-- Not tested
function money(playerSource)
local money = getPlayerMoney(playerSource)
local x, y, z = getElementPosition(playerSource)
createPickup(x, y, z, 3, 1274, 0, money)
end
addEventHandler("onPlayerWasted", getRootElement(), money )
mayba
-- Not tested
function money(playerSource)
local money = getPlayerMoney(playerSource)
local x, y, z = getElementPosition(playerSource)
createPickup(x, y, z, 3, 1274, 0, money)
end
addEventHandler("onPlayerWasted", getRootElement(), money )
I have script
addCommandHandler("taxi",
function(playerSource)
outputChatBox("Gracz ktory potrzebuje taxi: "..getPlayerName(playerSource), playerSource, source)
end
)
Commands /taxi say text to player PM
As make say to all ?