Jump to content

تصحيح كود تصليح السيآرة | تمت الإفآدة Thx To Mr.Pres[T]ege


Recommended Posts

شباب ابغى تصحيح للكود :roll:

Client Side !

marker = createMarker( 2033.6513671875,-1404.0823974609,17.268367767334 , "cylinder", 2, 0, 255, 0, 255 ) 
  
addEventHandler ( "onClientMarkerHit", marker, 
 function ( ) 
 if ( getElementType ( Vehicle ) == 'player' ) then 
 triggerServerEvent("set",localPlayer) 
 end,false) 

Server Side !

addEvent("set", true) 
addEventHandler("set", root, 
function () 
takePlayerMoney ( source, 500 ) 
fixVehicle ( Vehicle ) 
end,false) 

Edited by Guest
Link to comment

سؤال يطرح نفسة .. لية كلنت و سيرفر .. :mrgreen:

-- # Server Side : 
addEventHandler("onMarkerHit",marker, 
    function ( player )  
        if ( getElementType ( player ) == "player" and isPedInVehicle ( player ) ) then 
            takePlayerMoney ( player,500 ) 
            fixVehicle ( getPedOccupiedVehicle( player ) ) 
        end 
    end,false 
) 
Edited by Guest
Link to comment
؟Vehicle وين معرف

+ ناقص end

  
  
Server Side !  
  
addEvent("set", true) 
addEventHandler("set", root, 
function () 
local playervehicle = getPlayerOccupiedVehicle ( source ) 
        if ( playervehicle ) then 
takePlayerMoney ( source, 500 ) 
fixVehicle ( playervehicle ) 
end 
end,false) 

؟؟؟

Edited by Guest
Link to comment
؟Vehicle وين معرف

+ ناقص end

  
  
Server Side !  
  
addEvent("set", true) 
addEventHandler("set", root, 
function () 
local playervehicle = getPlayerOccupiedVehicle ( source ) 
        if ( playervehicle ) then 
takePlayerMoney ( source, 500 ) 
fixVehicle ( playervehicle ) 
end 
end,false) 

؟؟؟

Link to comment
صح كودكـ سيرفر كلنت ناقصكـ اند ذذ

والـ الالمنت مو معرف ذذ

Server Side ! 
  
addEvent("set", true) 
addEventHandler("set", root, 
function () 
if ( getElementType ( Vehicle ) == 'player' ) then 
local playervehicle = getPlayerOccupiedVehicle ( source ) 
        if ( playervehicle ) then 
takePlayerMoney ( source, 500 ) 
fixVehicle ( playervehicle ) 
end 
end,false) 

???

Link to comment

هذا كودك ي برستيجج :mrgreen:

Server Side !  
  
marker = createMarker( 2033.6513671875,-1404.0823974609,17.268367767334 , "cylinder", 2, 0, 255, 0, 255 ) 
  
addEventHandler("onMarkerHit",marker, 
    function ( player )  
        if ( getElementType ( player ) == "player" and isPedInVehicle ( player ) ) then 
            takePlayerMoney ( player,500 ) 
            fixVehicle ( getPedOccupiedVehicle( player ) ) 
        end 
    end,false 
) 

Link to comment

ي برستيج

إذا أبغى كل 30 ثانية يطلع كلام في الشات , اخليه كذآآ ؟؟

setTimer( outputChatBox("لإصلاح سيارتك .. اذهب لعلامة السيارة في الخريطة",0,255,0,true), 30000, 1, source ) 

:roll:

Edited by Guest
Link to comment
-- # Server Side : 
setTimer( 
    function ( ) 
        outputChatBox("لإصلاح سيارتك .. اذهب لعلامة السيارة في الخريطة",root,0,255,0) 
    end 
,3000,0 
) 

ثانكس ع التعديل ,

بس لو خليته

true راح يطلع للاعب .. ؟

طيب انا لما اجي بخلي اول ماأشغل المود يطلع كلام في الشات للاعبين كلهم

اخليه true

فعلاً يطلع للكل ..

هنا لي لازم root

?????

Link to comment
true = حق تفعيل اكواد الـ ( Hex )

root = getRootElement ( ) ( For All )

:mrgreen:

اها مشكور على الشرح

يعني لو ابي اخلي اللاعبين كامل يحصلو فلوس اخليه كذا

givePlayerMoney ( root, 1000 ) 

??

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