darbka2002 Posted March 2, 2016 Share Posted March 2, 2016 hello can any one here help me to make a custom group skin shader ex: if a player in group DX he can get a custom skin and if player not in group DX he get a original skin plz help Link to comment
1LoL1 Posted March 2, 2016 Share Posted March 2, 2016 local players = getPlayerTeam(source) if players and getTeamFromName("DX") == players then setElementModel(source, id) else setElementModel(source, 0) Link to comment
darbka2002 Posted March 2, 2016 Author Share Posted March 2, 2016 this script make me a just normal skin not a custom i need script make a replace in server with png file not txd or dff if player in group DX get a custom skin id:288 and if player not in group DX get a original skin id:288 Link to comment
Nicktim. Posted March 2, 2016 Share Posted March 2, 2016 for Example and Use triggerClientEvent; function dxSkinTextureActive() shader = dxCreateShader("filenameis/bllabla.fx") image = dxCreateTexture("filenameis/texblabla.png") dxSetShaderValue(shader, "Tex0", image) engineApplyShaderToWorldTexture( shader, "textureName") end addEvent("onClientDxSkinCreate", true) addEventHandler("onClientDxSkinCreate", root, dxSkinTextureActive) Fx Code texture Tex0; texture Tex1; //-- Very simple technique technique simple { pass P0 { //-- Set up texture stage 0 Texture[0] = Tex0; ColorOp[0] = SelectArg1; ColorArg1[0] = Texture; AlphaOp[0] = SelectArg1; AlphaArg1[0] = Texture; //-- Disable texture stage 1 ColorOp[1] = Disable; AlphaOp[1] = Disable; } } Link to comment
darbka2002 Posted March 2, 2016 Author Share Posted March 2, 2016 ok see this a good script put my problem still work i just need a custom skin for group like cit or saur if a player not in group get him a original skin if a player in group ex:DX well get a custom skin 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