Stranger Posted May 28, 2013 Share Posted May 28, 2013 السلام عليكم شباب , الكود هذا لشخصية وحده بس انا ابيه لشخصيتين او اكثر يليت فهمتوني ا if ( skin == 287 ) Link to comment
iPrestege Posted May 28, 2013 Share Posted May 28, 2013 if ( skin == 287 or skin == id or skin == id or skin == id ) تيبل افضل ( جدول ) اقصد ذذ Link to comment
Stranger Posted May 28, 2013 Author Share Posted May 28, 2013 if ( skin == 287 or skin == id or skin == id or skin == id ) تيبل افضل ( جدول ) اقصد ذذ تسلم يلبى قلبك بس ابيه كذا انا مابي جدول Link to comment
Stranger Posted May 28, 2013 Author Share Posted May 28, 2013 طيب اسمع يلبى الحين هذا الكود اول ماتسجل دخولك يخلي شخصيتك معينه , تقدر تخليه اول ماتموت وترجع تكون شخصيتك نفس ماهي addEventHandler ( "onPlayerLogin", root, function ( _, Account ) if getAccountName ( Account ) == "Manster" or getAccountName ( Account ) == "danger" or getAccountName ( Account ) == "fhooody" or getAccountName ( Account ) == "sami" then setTimer ( setPedSkin,1100,1, source, 217 ) end end ) Link to comment
iPrestege Posted May 28, 2013 Share Posted May 28, 2013 Accounts = { "Manster", "fhooody", "danger", "sami" } addEventHandler ( "onPlayerLogin", root, function ( _, Account ) for k,v in ipairs ( Accounts ) do if getAccountName ( Account ) == v then setTimer ( setElementModel,1100,1, source, 217 ) end end end ) addEventHandler('onPlayerWasted',root, function ( ) local Account = getPlayerAccount ( source ) if Account and not isGuestAccount ( Account ) then for k,v in ipairs ( Accounts ) do if getAccountName ( Account ) == v then local ID = getElementModel ( source ) if ID then setElementModel ( source,ID ) end end end end end ) Link to comment
jafar Posted May 28, 2013 Share Posted May 28, 2013 طيب اسمع يلبى الحين هذا الكود اول ماتسجل دخولك يخلي شخصيتك معينه , تقدر تخليه اول ماتموت وترجع تكون شخصيتك نفس ماهي addEventHandler ( "onPlayerLogin", root, function ( _, Account ) if getAccountName ( Account ) == "Manster" or getAccountName ( Account ) == "danger" or getAccountName ( Account ) == "fhooody" or getAccountName ( Account ) == "sami" then setTimer ( setPedSkin,1100,1, source, 217 ) end end ) setPedSkin : This function is deprecated. This means that its use is discouraged and that it might not exist in future versions, but there should be an alternative (usually more generic) way of performing what it once did. addEventHandler ( "onPlayerLogin", root, function ( _, Account ) if getAccountName ( Account ) == "Manster" or getAccountName ( Account ) == "danger" or getAccountName ( Account ) == "fhooody" or getAccountName ( Account ) == "sami" then setTimer ( setElementModel,1100,1, source, 217 ) end end ) Link to comment
Stranger Posted May 28, 2013 Author Share Posted May 28, 2013 طيب اسمع يلبى الحين هذا الكود اول ماتسجل دخولك يخلي شخصيتك معينه , تقدر تخليه اول ماتموت وترجع تكون شخصيتك نفس ماهي addEventHandler ( "onPlayerLogin", root, function ( _, Account ) if getAccountName ( Account ) == "Manster" or getAccountName ( Account ) == "danger" or getAccountName ( Account ) == "fhooody" or getAccountName ( Account ) == "sami" then setTimer ( setPedSkin,1100,1, source, 217 ) end end ) setPedSkin : This function is deprecated. This means that its use is discouraged and that it might not exist in future versions, but there should be an alternative (usually more generic) way of performing what it once did. addEventHandler ( "onPlayerLogin", root, function ( _, Account ) if getAccountName ( Account ) == "Manster" or getAccountName ( Account ) == "danger" or getAccountName ( Account ) == "fhooody" or getAccountName ( Account ) == "sami" then setTimer ( setElementModel,1100,1, source, 217 ) end end ) Thanks for the information Link to comment
Stranger Posted May 28, 2013 Author Share Posted May 28, 2013 Accounts = { "Manster", "fhooody", "danger", "sami" } addEventHandler ( "onPlayerLogin", root, function ( _, Account ) for k,v in ipairs ( Accounts ) do if getAccountName ( Account ) == v then setTimer ( setElementModel,1100,1, source, 217 ) end end end ) addEventHandler('onPlayerWasted',root, function ( ) local Account = getPlayerAccount ( source ) if Account and not isGuestAccount ( Account ) then for k,v in ipairs ( Accounts ) do if getAccountName ( Account ) == v then local ID = getElementModel ( source ) if ID then setElementModel ( source,ID ) end end end end end ) مشكور لبى قلبك ا 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