وعليكم السلام ..
createObject
moveObject
getPlayerTeam
getTeamName
حدد سباون وش
setVehiclePlateText
شكرأأأ
بس شوف الكود صح تبع البوابات
local x,y,z = 2096.3, 1721, 12.7
local easing = "OutBounce"
local time = 2000
local gate = createObject(980, x,y,z, 0, 0, 63)
local marker = createMarker(x,y,z, "cylinder", 12, 0, 0, 0, 0)
function moveGate(hitPlayer, matchingDimension)
moveObject(gate, time, x+4.9, y+9.6, z, 0, 0, 0, easing)
end
addEventHandler("onMarkerHit", marker, moveGate)
function moveBack()
moveObject(gate, time, x, y, z, 0, 0, 0, easing)
end
addEventHandler("onMarkerLeave", marker, moveBack)
function teamName ( source, key, newTeamName )
local playerTeam = getPlayerTeam ( source )
if ( playerTeam ) then
local oldTeamName = getTeamName ( playerTeam )
setTeamName ( playerTeam, newTeamName )
outputChatBox ( "Changed " .. getPlayerName ( source ).."'s team name from " .. oldTeamName .. " to " .. newTeamName )
else
outputChatBox ( getPlayerName ( source ) .. " isn't on a team" )
end
end
addCommandHandler ( "teamname", teamName ")
function whatTeamAmIOn ( source )
-- Get the player's team (source is the player who entered the command)
local playerTeam = getPlayerTeam ( source )
if ( playerTeam ) then -- if he was on a team
outputChatBox ( getPlayerName ( source ) .. " is on team: " .. getTeamName ( playerTeam ) )
else
outputChatBox ( getPlayerName ( source ) .. " isn't on a team" )
end
end
addCommandHandler ( "whatTeamAmIOn", whatTeamAmIOn )
ذا الكود تبع البوابة ممكن حد يشوفة