baba Posted April 27, 2017 Share Posted April 27, 2017 addEventHandler ( "onPlayerSpawn", root, function ( ) if getTeamName( getPlayerTeam ( source ) ) == "Cz" and getElementData ( source, "Group" ) == "1108" then setTimer(setElementPosition, 500, 1, source,1200.87915, -1654.25281, 1052) setElementInterior(source, 20) setElementDimension ( source, 20 ) setPedSkin(source, 287) setElementHealth ( source, 150 ) setPedArmor ( source, 100 ) end end ) سلام عليكم ذا كود حق رسباون انا محدد الشخصيه الي ابيها بس المشكله انو لما اموت ارسبن في شخصيه غير ومو محدده كل شويه تتغير الشخصيه ارجو المساعده في ذا الكود محتاجه ضروري و يعطيكم العافيه Link to comment
Adham Posted April 27, 2017 Share Posted April 27, 2017 (edited) استعمل بدل setPedSkin setElementModel Edited April 27, 2017 by Deativated Link to comment
baba Posted April 27, 2017 Author Share Posted April 27, 2017 19 minutes ago, Deativated said: استعمل بدل setPedSkin setElementModel addEventHandler ( "onPlayerSpawn", root, function ( ) if getTeamName( getPlayerTeam ( source ) ) == "Police" and getElementData ( source, "Group" ) == "SWAT" then setTimer(setElementPosition, 500, 1, source,1200.87915, -1654.25281, 1052) setElementInterior(source, 20) setElementDimension ( source, 20 ) setElementModel(source, 287) setElementHealth ( source, 150 ) setPedArmor ( source, 100 ) end end ) نفس المشكله Link to comment
^iiEcoo'x_) Posted April 27, 2017 Share Posted April 27, 2017 addEventHandler ( "onPlayerSpawn", root, function ( ) if getTeamName( getPlayerTeam ( source ) ) == "Police" and getElementData ( source, "Group" ) == "SWAT" then setTimer(function () setElementPosition( source,1200.87915, -1654.25281, 1052) setElementInterior(source, 20) setElementDimension ( source, 20 ) setElementModel(source, 287) setElementHealth ( source, 150 ) setPedArmor ( source, 100 ) end , 500 , 1 ) end end ) Link to comment
baba Posted April 27, 2017 Author Share Posted April 27, 2017 16 hours ago, #_iMr.[E]coo said: addEventHandler ( "onPlayerSpawn", root, function ( ) if getTeamName( getPlayerTeam ( source ) ) == "Police" and getElementData ( source, "Group" ) == "SWAT" then setTimer(function () setElementPosition( source,1200.87915, -1654.25281, 1052) setElementInterior(source, 20) setElementDimension ( source, 20 ) setElementModel(source, 287) setElementHealth ( source, 150 ) setPedArmor ( source, 100 ) end , 500 , 1 ) end end ) بطل يرسبني في المكان الي انا محدده ونفس الشي الشخصيه مو ثابته حد يساعدني لو سمحتو Link to comment
^iiEcoo'x_) Posted April 28, 2017 Share Posted April 28, 2017 استعمل 'onPlayerJoin' 'onPlayerQuit' spawnPlayer Link to comment
F_F Posted April 28, 2017 Share Posted April 28, 2017 addEventHandler ( "onPlayerSpawn", root, function ( ) if getTeamName( getPlayerTeam ( source ) ) == "Police" and getElementData ( source, "Group" ) == "SWAT" then setTimer(function () setElementPosition( source,1200.87915, -1654.25281, 1052) setElementInterior(source, 20) setElementDimension ( source, 20 ) setElementModel(source, 287) setElementHealth ( source, 150 ) setPedArmor ( source, 100 ) end , 1000 , 0 ) end end ) Link to comment
^iiEcoo'x_) Posted April 28, 2017 Share Posted April 28, 2017 5 minutes ago, F_F said: addEventHandler ( "onPlayerSpawn", root, function ( ) if getTeamName( getPlayerTeam ( source ) ) == "Police" and getElementData ( source, "Group" ) == "SWAT" then setTimer(function () setElementPosition( source,1200.87915, -1654.25281, 1052) setElementInterior(source, 20) setElementDimension ( source, 20 ) setElementModel(source, 287) setElementHealth ( source, 150 ) setPedArmor ( source, 100 ) end , 1000 , 0 ) end end ) تخبيص ي مختم اللغة Link to comment
iMr.WiFi..! Posted April 28, 2017 Share Posted April 28, 2017 function Spawn( ) if getTeamName( getPlayerTeam ( source ) ) == "Police" and getElementData ( source, "Group" ) == "SWAT" then setTimer(function () spawnPlayer( source,1200.87915, -1654.25281, 1052,0,287,20,20) end , 500 , 1 ) end addEventHandler ("onPlayerLogin", root, Spawn) addEventHandler ("onPlayerWasted", root, Spawn) Link to comment
baba Posted April 28, 2017 Author Share Posted April 28, 2017 1 hour ago, iMr.WiFi..! said: function Spawn( ) if getTeamName( getPlayerTeam ( source ) ) == "Police" and getElementData ( source, "Group" ) == "SWAT" then setTimer(function () spawnPlayer( source,1200.87915, -1654.25281, 1052,0,287,20,20) end , 500 , 1 ) end addEventHandler ("onPlayerLogin", root, Spawn) addEventHandler ("onPlayerWasted", root, Spawn) ما يرسبني في المقر Link to comment
iMr.WiFi..! Posted April 28, 2017 Share Posted April 28, 2017 عدل عالاحداثيات + تأكد من اخر ارمقمنتين الي هم Interior Dimension Link to comment
baba Posted April 28, 2017 Author Share Posted April 28, 2017 4 minutes ago, iMr.WiFi..! said: عدل عالاحداثيات + تأكد من اخر ارمقمنتين الي هم Interior Dimension هو اصلن ما يرسبني في اي مكان اصلن يعني اكني حاذفه رح اتعبك معي معلش ولله انك تستاهل الشكر Link to comment
iMr.WiFi..! Posted April 28, 2017 Share Posted April 28, 2017 function Spawn( ) if getTeamName( getPlayerTeam ( source ) ) == "Police" and getElementData ( source, "Group" ) == "SWAT" then spawnPlayer( source,1200.87915, -1654.25281, 1052,0,287) end addEventHandler ("onPlayerLogin", root, Spawn) addEventHandler ("onPlayerWasted", root, Spawn) Link to comment
baba Posted April 28, 2017 Author Share Posted April 28, 2017 5 minutes ago, iMr.WiFi..! said: function Spawn( ) if getTeamName( getPlayerTeam ( source ) ) == "Police" and getElementData ( source, "Group" ) == "SWAT" then spawnPlayer( source,1200.87915, -1654.25281, 1052,0,287) end addEventHandler ("onPlayerLogin", root, Spawn) addEventHandler ("onPlayerWasted", root, Spawn) addEventHandler ( "onPlayerSpawn", root, function ( ) if getTeamName( getPlayerTeam ( source ) ) == "Police" and getElementData ( source, "Group" ) == "SWAT" then setTimer(setElementPosition, 500, 1, source,1200.87915, -1654.25281, 1052) setElementInterior(source, 20) setElementDimension ( source, 20 ) setElementModel(source, 287) setElementHealth ( source, 150 ) setPedArmor ( source, 100 ) end end ) اخوي الكود ذا زباط بلرسباون بس المشكله انو ما يثبت على شخصيه وحده كل شويه انزل بشخصيه غير انا ابيه يثبت على الشخصيه الي انا حاطها Link to comment
#BrosS Posted April 28, 2017 Share Posted April 28, 2017 11 minutes ago, baba said: addEventHandler ( "onPlayerSpawn", root, function ( ) if getTeamName( getPlayerTeam ( source ) ) == "Police" and getElementData ( source, "Group" ) == "SWAT" then setTimer(setElementPosition, 500, 1, source,1200.87915, -1654.25281, 1052) setElementInterior(source, 20) setElementDimension ( source, 20 ) setElementModel(source, 287) setElementHealth ( source, 150 ) setPedArmor ( source, 100 ) end end ) اخوي الكود ذا زباط بلرسباون بس المشكله انو ما يثبت على شخصيه وحده كل شويه انزل بشخصيه غير انا ابيه يثبت على الشخصيه الي انا حاطها يمكن بالقيم مود حقك او مركب مود يحط شخصيات عشوائية Link to comment
baba Posted April 28, 2017 Author Share Posted April 28, 2017 انا مو مركب قيم مود بشتغل على الهوست قيم Link to comment
Master_Ali Posted April 28, 2017 Share Posted April 28, 2017 10 hours ago, baba said: انا مو مركب قيم مود بشتغل على الهوست قيم وقف الفري روم او جيم مود play Link to comment
baba Posted April 28, 2017 Author Share Posted April 28, 2017 19 minutes ago, Master_Ali said: وقف الفري روم او جيم مود play لما اسكرهم ما يرسبن Link to comment
Master_Ali Posted April 28, 2017 Share Posted April 28, 2017 10 hours ago, baba said: لما اسكرهم ما يرسبن وش الايفينت اللي حطيته؟ Link to comment
baba Posted April 28, 2017 Author Share Posted April 28, 2017 3 minutes ago, Master_Ali said: وش الايفينت اللي حطيته؟ function Spawn( ) if getTeamName( getPlayerTeam ( source ) ) == "Police" and getElementData ( source, "Group" ) == "SWAT" then spawnPlayer( source,1200.87915, -1654.25281, 1052,0,287) end addEventHandler ("onPlayerLogin", root, Spawn) addEventHandler ("onPlayerWasted", root, Spawn) Link to comment
Master_Ali Posted April 28, 2017 Share Posted April 28, 2017 (edited) بعطيك مثال بسيط addEventHandler ( "onPlayerWasted", root, function ( ) if getTeamName( getPlayerTeam ( source ) ) == "Police" and getElementData ( source, "Group" ) == "SWAT" then setElementInterior(source, 20,1200.87915, -1654.25281, 1052) setElementDimension ( source, 20 ) setElementModel(source, 287) setElementHealth ( source, 150 ) setPedArmor ( source, 100 ) setCameraTarget(source,source) end end ) اول ما تموت راح يرشبنس معليش لابتوب جديد مب متعوذ على الكتابة بيه لا تنسى تطفي play & freeroam Edited April 28, 2017 by Master_Ali نسيت شي Link to comment
baba Posted April 28, 2017 Author Share Posted April 28, 2017 28 minutes ago, Master_Ali said: بعطيك مثال بسيط addEventHandler ( "onPlayerWasted", root, function ( ) if getTeamName( getPlayerTeam ( source ) ) == "Police" and getElementData ( source, "Group" ) == "SWAT" then setElementInterior(source, 20,1200.87915, -1654.25281, 1052) setElementDimension ( source, 20 ) setElementModel(source, 287) setElementHealth ( source, 150 ) setPedArmor ( source, 100 ) setCameraTarget(source,source) end end ) اول ما تموت راح يرشبنس معليش لابتوب جديد مب متعوذ على الكتابة بيه لا تنسى تطفي play & freeroam يعطيك العافيه اخوي اول ما موت نفسي نقلني على عالم وهني بس مو الي انا محدده و سحب الدم حقي خله 0 واذا مت وانا مسكر الل play ما يرسبني مرره ثانيه Link to comment
Master_Ali Posted April 28, 2017 Share Posted April 28, 2017 10 hours ago, baba said: يعطيك العافيه اخوي اول ما موت نفسي نقلني على عالم وهني بس مو الي انا محدده و سحب الدم حقي خله 0 واذا مت وانا مسكر الل play ما يرسبني مرره ثانيه تاكد انك مب مركب مودات بالسيرفر تحتوي على ايفينت onplayerspawn Link to comment
baba Posted April 28, 2017 Author Share Posted April 28, 2017 3 minutes ago, Master_Ali said: تاكد انك مب مركب مودات بالسيرفر تحتوي على ايفينت onplayerspawn السيرفر ذا خاص ما يقدر حد يدخل عليه و يركب شي انا بشتغل على الهوست قيم الي بتكون في بدايت العبه هوست قيم 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