#DRAGON!FIRE Posted June 22, 2016 Share Posted June 22, 2016 Hello all .. I suggest to add new event "onPlayerMoneyChanged" i think it's will be useful .. that's it guys Thanks for reading ^ Link to comment
Me[Z]oO Posted June 22, 2016 Share Posted June 22, 2016 NOTE : هذا مو فنكشن لكنه ايفينت وما لقيت مواضيع وما يلزم موضوع جديد مشان ايفنت فقلت اطرححه هنا--------------------------- onClientPlayerMoneyChange ClientSide event الايفينت يتنفذ لما تتغير فلوس الاعب المحلي فيه Parameters _________________________________________________________ int OldMoney, int NewMoney • OldMoney : الفلوس اللي كانت مع الاعب قبل التغيير • NewMoney : الفلوس اللي مع الاعب بعد التغيير Source _________________________________________________________ (المصدرهو الاعب المحلي (اللي تغيرت فلوسه Source Code _________________________________________________________ local EventPlayerMoney = getPlayerMoney(localPlayer) addEventHandler("onClientRender", root, function () if EventPlayerMoney ~= getPlayerMoney(localPlayer) then triggerEvent("onClientPlayerMoneyChange", localPlayer, tonumber(EventPlayerMoney), tonumber(getPlayerMoney(localPlayer))) EventPlayerMoney = getPlayerMoney(localPlayer) end end ) addEvent "onClientPlayerMoneyChange" Example _________________________________________________________ المثال ذا يتحقق كل مرة لما تتغير فلوسه اذا كانت فوق 8000 ويطلع نص بلشات VehiclePrice = 8000 addEventHandler("onClientPlayerMoneyChange", root, function (OldMoney, NewMoney) if NewMoney >= VehiclePrice then outputChatBox("Now you can buy the vehicle !", 0, 255, 0) elseif OldMoney < VehiclePrice then outputChatBox("get more money to buy the vehicle", 255, 0, 0) end end ) Link to comment
Phrenetiick Posted June 27, 2016 Share Posted June 27, 2016 it's wrong bro ^ why ? because I like to keep it mello Link to comment
Jupi Posted June 28, 2016 Share Posted June 28, 2016 it's wrong bro ^ why ? because I like to keep it mello [✖‿✖] Link to comment
Recommended Posts