sajad Posted February 10, 2014 Share Posted February 10, 2014 (edited) السلام عليكم شباب شباب ابي منكم طلب ابي كود لبرمجة بوابة = ابي 2 بوابة لان المقر فية 2 بوابات وابي الكود يمشي على الشرطة بس وكود سباون وولوحة سيارات الله يخليكم الله يخليكم ساعدوووووني ممكن والله جازكم خير الجزاء edit: شباب ممكن رد Edited February 11, 2014 by Guest Link to comment
abu5lf Posted February 11, 2014 Share Posted February 11, 2014 السلام عليكم شباب ابي كود لبرمجة بوابة = ابي 2 بوابة لان المقر فية 2 بوابات وابي الكود يمشي على الشرطة بس وعليكم السلام .. createObject moveObject getPlayerTeam getTeamName وكود سباون حدد سباون وش وولوحة سيارات setVehiclePlateText Link to comment
The Killer Posted February 11, 2014 Share Posted February 11, 2014 وولوحة سيارات setVehiclePlateText -,- guiCreateWindow # Link to comment
sajad Posted February 11, 2014 Author Share Posted February 11, 2014 السلام عليكم شباب ابي كود لبرمجة بوابة = ابي 2 بوابة لان المقر فية 2 بوابات وابي الكود يمشي على الشرطة بس وعليكم السلام .. 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 ) ذا الكود تبع البوابة ممكن حد يشوفة Link to comment
The Killer Posted February 11, 2014 Share Posted February 11, 2014 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 ) Link to comment
KaduRo Posted February 11, 2014 Share Posted February 11, 2014 اخوي , جربت الكود اللي نزلته والكود سليم , إلا إنه المشكلة ان البوابة تفتح لجميع الاعضاء سواء شرطة او غيرهم ولو عندي خبره افضل لعطيتك كود الخاص بالتيم ولكن مازلت مبتدى ^^ ارجوا ان يفيدوك مبرمجين ! Link to comment
sajad Posted February 11, 2014 Author Share Posted February 11, 2014 اخوي , جربت الكود اللي نزلته والكود سليم , إلا إنه المشكلة ان البوابة تفتح لجميع الاعضاء سواء شرطة او غيرهم ولو عندي خبره افضل لعطيتك كود الخاص بالتيم ولكن مازلت مبتدى ^^ ارجوا ان يفيدوك مبرمجين ! زين اي سطر اكتب اسمم قروبي Link to comment
al-Kobra Posted February 11, 2014 Share Posted February 11, 2014 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) local mm = اسم القروب function moveGate(hitPlayer, matchingDimension) if getElementData ( source, gang ) == ""..mm.."" then moveObject(gate, time, x+4.9, y+9.6, z, 0, 0, 0, easing) else outputChatBox ( " You're Not in "..mm.." Group ! ", source, 255, 0, 0 ) end 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 ) جرب Link to comment
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now