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

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
doesnt work?

I'm pretty sure that you edited the code before putting it on server. I'm SURE!

Multi theft auto tools - replace cars and peds, move your map or compile your Lua files online!

programista php rzeszów

Need free webhosting for your small site? PM me. Need help with portforwarding? PM me. Do not PM me asking for help with scripting.

Having problems with port forwarding? Send me pm, I can do whole thing for you using TeamViewer (already helped about 20 people, no worries)!

Posted

Omg.. This COOKIE12 man is just copying every single script from every single topic and he always say "doesnt work"

Cookie12, cmon learn something.

http://www.wiki.multitheftauto.com

http://www.sincitygaming.net - The next generation of gaming!

SinCity Gaming | UltiRace 24/7 - 188.165.199.162:22003

SinCity Gaming | Roleplay Gaming - Beta soon!

SinCity Gaming | Zombie Mode + - 188.165.199.162:22005

Instead of using ip: 188.165.199.162 you can use: sincitygaming.net

Posted
nope

YES.

http://www.sincitygaming.net - The next generation of gaming!

SinCity Gaming | UltiRace 24/7 - 188.165.199.162:22003

SinCity Gaming | Roleplay Gaming - Beta soon!

SinCity Gaming | Zombie Mode + - 188.165.199.162:22005

Instead of using ip: 188.165.199.162 you can use: sincitygaming.net

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.

http://www.sincitygaming.net - The next generation of gaming!

SinCity Gaming | UltiRace 24/7 - 188.165.199.162:22003

SinCity Gaming | Roleplay Gaming - Beta soon!

SinCity Gaming | Zombie Mode + - 188.165.199.162:22005

Instead of using ip: 188.165.199.162 you can use: sincitygaming.net

Posted

/voteban COOKIE12

http://www.sincitygaming.net - The next generation of gaming!

SinCity Gaming | UltiRace 24/7 - 188.165.199.162:22003

SinCity Gaming | Roleplay Gaming - Beta soon!

SinCity Gaming | Zombie Mode + - 188.165.199.162:22005

Instead of using ip: 188.165.199.162 you can use: sincitygaming.net

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

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