Jump to content

racewin DD/DM


kevin11

Recommended Posts

Posted (edited)

hey i found this script here in forums few days ago and that topic was locked so i was wondering why it didnt work

also i wanna know what line i need to add so DD/DM last alive will be awarded too

Edited by Guest
Posted
i wanna know what line i need to add so all youre wins will be saved (maybe cash too)

well, this on not LINE.. not one..

you wanna learn scripting or do us the job for you (i think if you choose 2nd answer noone will do it)?

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
ok but how about the racewin ?? what is wrong with it

this should work, are you sure you added it correctly,on the server side?

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

" type="server" />

this is wrong..

you closed the

replace that line with

<script src="racewin.lua" type="server" />

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 (edited)

you have to modify "race" resource

destructionderby.lua file:

--add this at the beggining of file:
addEvent("onPlayerDestructionDerbyWin")
 
--and somewhere near line 87 (im not sure this)
-- just after:
-- showMessage(getPlayerName(activePlayers([1])) .. ' is the final survivor!', 0, 255, 0)
-- add:
triggerEvent("onPlayerDestructionDerbyWin", getRootElement(), activePlayers[1])

then your script should look like:

addEvent("onPlayerDestructionDerbyWin",true)
addEventHandler("onPlayerDestructionDerbyWin",getRootElement(),
function (winner)
givePlayerMoney(winner, 350) -- there was a "bug" (used "winer" instead of "winner")
end
)

ps. i didnt test it :D

Edited by Guest

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

works? :P

well, there was a bug in line 4

look at my post above

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

i think he fixed my little typo

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)!

  • 1 month later...
Posted
must I add code in acl ?

hahaahah wtf? no, u have to make a folder and make a lua file and a meta.xml and is done :P

San Andreas Utopia RPG (SAUR) Owner & Developer.

560x95_FFFFFF_FF9900_000000_000000.png

Education is the most powerful weapon which you can use to change the world.

  • 8 years later...

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

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