Jump to content

x[ مشكلة ]x في مود سباق


Recommended Posts


مـود سـبـاق الدرجـات ,, تذهب للماركر تاخذ دراجة واول شخص يوصل  للماركر الاخـر ! يـاخذ فـلـوس
يـوجـد مـشـكـلـة ! اذا انت تدخل الماركر الاخـر! اكثير من مرة!! يعطيك فلـوس مرة اخري!! اريد فقط يعطي لكل شخص 1 مرة بعد كل نصف ساعة! اذا لاعب اخذ الان فلـوس! ثم دخل مرة اخـري للـمـاركـر! لا ياخذ شي وينتظر نصف ساعة حتي ياخذ مرة اخري,ارجو مساعدة


ألكـود1

local marker1 = createMarker( -3012.6000976563, 408.79998779297, 19.200000762939, "cylinder", 1.5, 0, 0, 0, 200)

Rumpo = {}

function spawn (source)
if Rumpo[source] and isElement(Rumpo[source]) then
destroyElement(Rumpo[source])
end
Rumpo[source] = createVehicle (481, -3017.203125, 408.78088378906, 20.176563262939)                                      
setElementRotation(Rumpo[source],0,0,90)
setVehicleColor (Rumpo[source], 0,0,0,0,0,0,0,0,0,0,0,0)
outputChatBox ('#868686Bicycle was given,#000000', root, 255, 255, 255, true)
outputChatBox ('#868686Finish up, Money is waiting for you.#000000', root, 255, 255, 255, true)
warpPedIntoVehicle (source, Rumpo[source])
end
addEventHandler ("onMarkerHit", marker1, spawn)



كود 2

addEventHandler("onResourceStart", getRootElement(), function () 
marker22 = createMarker ( -3062.3813476563, 410.49588012695, 20.18229675293, "checkpoint", 1.0, 0, 0, 0, 0, getRootElement() )

addEventHandler( "onMarkerHit", marker22, function()
local amount = math.random(100,1000)
for i, player in ipairs(getElementsByType("player")) do 
local accName = getAccountName( getPlayerAccount(player) )
if isObjectInACLGroup("user."..accName, aclGetGroup("Everyone")) then 
givePlayerMoney(player, amount) 
outputChatBox("* " .. getPlayerName(player) .. " #868686Here's the award: #FFFF00$"..amount.."#FFFFFF",player , 0, 255, 0, true) 
end 
end 
end) 

end)

شكراً

Link to comment
3 minutes ago, #BrosS said:

شكرا لأنك اعطيتنا المود الحين ناس ياخذوه

ومو شرط الداتا يقدر يستعمل المتغيرات ^

xD:PxD:lol::lol::lol::lol::lol::lol: موجود بالنت  بس انت ماتبحث عنة

Link to comment

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...