Jump to content

racewin help :D


raulrobi

Recommended Posts

Posted

addEvent("onPlayerFinish",true) 
addEventHandler("onPlayerFinish",getRootElement(), 
   function (rank,finishtime)
        if rank == 1 then 
            givePlayerMoney(source,350) 
       end
   end
)

It doesent work.I dunno whats the problem.can anyone help me?

Posted

Try to debug it.

Before if add print some text (outputDebugString) and see if it appears in debug window.

Posted

when i want to be the first to become 350

the 2nd 100

and the 3th become 50 than

1.addEvent("onPlayerFinish",true) 
2.addEventHandler("onPlayerFinish",getRootElement(), 
3.    function (rank,finishtime)
4.         if rank == 1 then 
5.             givePlayerMoney(source,350) 
6.         if rank == 2 then
7.             givePlayerMoney(source,100)
8.         if rank == 3 then
9.              givePlayerMoney(source,100)
10.        end
11.    end
12. )

it is good?

Posted
addEvent("onPlayerFinish",true)
addEventHandler("onPlayerFinish",getRootElement(),
function (rank,finishtime)
if rank == 1 then
givePlayerMoney(source,350)
elseif rank == 2 then
givePlayerMoney(source,100)
elseif rank == 3 then
givePlayerMoney(source,50)
end
end
)

And you forgot about 'elseif' :wink:

Posted (edited)

doesnt work?

addEvent("onPlayerFinish",true)

addEventHandler("onPlayerFinish",getRootElement(),

function (rank,finishtime)

if rank == 1 then

givePlayerMoney(source,3500)

end

end

)

Edited by Guest
Posted

Ok, im not going to fight or post to this topic anymore. I dont want to spam this topic.

But I got some proofs

HERE you posted a stolen script

https://forum.multitheftauto.com/viewtopic.php?f=91&t=27383

Here:

this doesnt work (i open notepad and paste in it then i do save as then i type roll.lua)

function roll(player,comd)

local roll = math.random(1,4)

if roll == 1 then outputChatBox("u won blablabla")

elseif roll == 2 then outputChatBox("u lost blablabla")

elseif roll == 3 then setPlayerMuted(source,true); setTimer(function() setPlayerMuted(source,false) end,1,30000)

elseif roll == 4 then outputChatBox("u win blablabla")

addCommandHandler("roll",roll)

end

end

HERE:

word perfect i just added it myself

Here's some proofs about your "steals"

And, these were first five topics what i even looked, im too lazy to get more "proof" about you.

I don't want to be bad for you or something, but you just need to do something by yourself and to no copy scripts what other users made.

Guest
This topic is now closed to further replies.
  • Recently Browsing   0 members

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