Jump to content

x[ طلب ]x التعديل علي كود


Recommended Posts

مساء الخير ,

لو سمحتو انا كنت بعمل مود ماركر + سياره بـ تيم معين , 

الاكواد .: 

local cars = createMarker(x,y,z, "cylinder", 1 , 25, 156, 50, 200) 
  
addEventHandler("onClientMarkerHit", cars, 
    function(hitElement) 
       triggerServerEvent("setTeam", localPlayer) 
    end 
) 




function setTeamForPlayer() 

    local team = getTeamFromName("Wars") 
		local player = getElementsByType ( "player" ) 
    local x, y, z = getElementPosition (player) 
    if (team) then 
        setPlayerTeam(source, team1) 
        local vehicle = createVehicle ( 411, x+2, y+2, z ) 
        warpPlayerIntoVehicle ( player, vehicle) 
		        else 
        outputChatBox ( "سياره خاصه لتيم : Wars", 255, 255, 255, true ) 
    end 
end 

addEvent("setTeam", true) 
addEventHandler("setTeam", root, setTeamForPlayer) 

# ماركر خاصه لـ تيم معين + سياره لتيم معين ويمنع اللاعبين ركوبها الا الموجود في التيم هو يقدر يركبها #

اسف لو في اخطاء في السكربت , انا لسه مبتدئ في البرمجة

وشكرا لكم 

Edited by BlackLaser
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...