Jump to content

طلب كود ماركر اذا جيت عليه تجيك فلوس


Recommended Posts

شباب ابي كود ماركر اذا جيت عليه بسيارة

يعطيني فلوس

ويبدأ الماركر كل 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

هذي بعض الشيء غير موصى بها, الافضل انه يسوي جدول او متغير يعرف منه المعلومات 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
  
 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
  
 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

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