مساء الخير ,
لو سمحتو انا كنت بعمل مود ماركر + سياره بـ تيم معين ,
الاكواد .:
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)
# ماركر خاصه لـ تيم معين + سياره لتيم معين ويمنع اللاعبين ركوبها الا الموجود في التيم هو يقدر يركبها #
اسف لو في اخطاء في السكربت , انا لسه مبتدئ في البرمجة
وشكرا لكم