Jump to content

طلب كود !


Kareem92

Recommended Posts

Posted

سلام عليكم

انا بدي كود يعمل في السكربت بتاعي السكن يبقي شخصي يعني السكن الشخصي يكون لواحد معين فقط والاعبين الاخرون يروا السكن الشخصي بتاعي لكن لا يستطيعوا ان يعملوه

السكربت بتاعي

function ResetModel (thePlayer) 
    engineRestoreModel ( 235 )  -- Object / Vehicle to restore to default GTA one. 
end 
addEvent ( "restoreClientModel", true ) 
addEventHandler ( "restoreClientModel", root, ResetModel ) 
addCommandHandler("remove", ResetModel) 
  
function applySkin(thePlayer) 
     
    txd = engineLoadTXD("swmori.txd", 235) 
     
    engineImportTXD(txd, 235) 
     
    dff = engineLoadDFF("swmori.dff", 235) 
     
    engineReplaceModel(dff, 235) 
     
end 
addEventHandler(resourceRoot, applySkin) 
addCommandHandler("add", applySkin) 

ارجوا الرد في اسرع وقت ممكن. شكرا

Posted

على dff ماينفع

لكن على txd

ينفع

استخدم الشادر

سوي ملف وسميه shader.fx

وحط فيه هذا

texture Tex0; 
  
technique simple { 
    pass P0 { 
        Texture[0] = Tex0; 
    } 
} 

حط بالميتا هكذا

<file src="shader.fx" /> 

وبعدين استخدم

dxCreateShader 
dxCreateTexture 
engineApplyShaderToWorldTexture 

Posted

على dff ماينفع

لكن على txd

ينفع

استخدم الشادر

سوي ملف وسميه shader.fx

وحط فيه هذا

texture Tex0; 
  
technique simple { 
    pass P0 { 
        Texture[0] = Tex0; 
    } 
} 

حط بالميتا هكذا

<file src="shader.fx" />

وبعدين استخدم


شكرا حبيبي الله يبارك فيك

  • 4 months later...

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...