ΞĪŚŚÀ Posted February 23, 2014 Share Posted February 23, 2014 شباب ابي كود ماركر اذا جيت عليه بسيارة يعطيني فلوس ويبدأ الماركر كل 10 دقايق Link to comment
abu5lf Posted February 23, 2014 Share Posted February 23, 2014 شباب ابي كود ماركر اذا جيت عليه بسيارةيعطيني فلوس ويبدأ الماركر كل 10 دقايق onMarkerHit givePlayerMoney setTimer setElementData getElementData Link to comment
al-Kobra Posted February 23, 2014 Share Posted February 23, 2014 'onMarkerHit' isPedInVehicle getVehicleController givePlayerMoney setTimer Link to comment
Tete omar Posted February 24, 2014 Share Posted February 24, 2014 شباب ابي كود ماركر اذا جيت عليه بسيارةيعطيني فلوس ويبدأ الماركر كل 10 دقايق onMarkerHit givePlayerMoney setTimer setElementData getElementData هذي بعض الشيء غير موصى بها, الافضل انه يسوي جدول او متغير يعرف منه المعلومات setElementData ( server أو client ) إلا إذا كنت بحاجة إلى انك تشارك معلومة بين الكلينت والسيرفر على مستوى السيرفر كله, أما إذا كانت المعلومة محدودة في نطاق مكان معين فالافضل ان تكون في جدول او متغير :وهذا الي اقصده As element data is synced to all clients, it can generate a lot of network traffic and consume server CPU. Events are much more efficient for sending data from a client to the server only, or from the server to a specific client. السيرفر CPU وتستهلك من network traffic مما يعني انها تولد الكثير من ال Link to comment
abu5lf Posted February 24, 2014 Share Posted February 24, 2014 هذي بعض الشيء غير موصى بها, الافضل انه يسوي جدول او متغير يعرف منه المعلومات setElementData ( server أو client ) إلا إذا كنت بحاجة إلى انك تشارك معلومة بين الكلينت والسيرفر على مستوى السيرفر كله, أما إذا كانت المعلومة محدودة في نطاق مكان معين فالافضل ان تكون في جدول او متغير :وهذا الي اقصده As element data is synced to all clients, it can generate a lot of network traffic and consume server CPU. Events are much more efficient for sending data from a client to the server only, or from the server to a specific client. السيرفر CPU وتستهلك من network traffic مما يعني انها تولد الكثير من ال الجداول صعبة عليه لذلك انا اساعد با اسهل طريقة لهم Link to comment
Vanlot Posted February 24, 2014 Share Posted February 24, 2014 function MarkerHit( hitElement, matchingDimension ) myMarker = createMarker(x,y,z, 'cylinder', size, r, g, b, alpha) if getElementType(hitElement) == 'Vehicle' then thePlayer = getVehicleController (hitElement) givePlayerMoney(thePlayer,amount) end end addEventHandler( "onMarkerHit", myMarker, MarkerHit ) addEventHandler( "onMarkerLeave", myMarker, function () destroyElement(myMarker ) end ) setTimer(MarkerHit,600000,0) Link to comment
TAPL Posted February 24, 2014 Share Posted February 24, 2014 function MarkerHit( hitElement, matchingDimension ) myMarker = createMarker(x,y,z, 'cylinder', size, r, g, b, alpha) if getElementType(hitElement) == 'Vehicle' then thePlayer = getVehicleController (hitElement) givePlayerMoney(thePlayer,amount) end end addEventHandler( "onMarkerHit", myMarker, MarkerHit ) addEventHandler( "onMarkerLeave", myMarker, function () destroyElement(myMarker ) end ) setTimer(MarkerHit,600000,0) تصنع هريس؟ إذا ما عندك خبره بالبرمجة لا تحاول تساعد Link to comment
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now