Jonas^ Posted August 26, 2018 Posted August 26, 2018 Olá pessoal, fiz um script simples para alterar skins, gostaria de saber como posso fazer uma verificação nesta função para que se o jogador já estiver clicado e a skin ter alterado e ele clicar de novo no mesmo botão enviar uma output avisando que ele já esta com tal skin ! Código: function skinv1 () setPedSkin ( source, 73 ) outputChatBox( "Teste skin1", source, 243, 219, 4, true ) end addEvent("Skin1",true) addEventHandler ( "Skin1", getRootElement(), skinv1 )
Gw8 Posted August 26, 2018 Posted August 26, 2018 function skinv1 () if getElementModel(source)==73 then return outputChatBox( "voce já esta com essa skin", source, 243, 219, 4, true ) end setPedSkin ( source, 73 ) outputChatBox( "Teste skin1", source, 243, 219, 4, true ) end addEvent("Skin1",true) addEventHandler ( "Skin1", getRootElement(), skinv1 ) 1
Jonas^ Posted August 26, 2018 Author Posted August 26, 2018 (edited) 51 minutes ago, Gw8 said: function skinv1 () if getElementModel(source)==73 then return outputChatBox( "voce já esta com essa skin", source, 243, 219, 4, true ) end setPedSkin ( source, 73 ) outputChatBox( "Teste skin1", source, 243, 219, 4, true ) end addEvent("Skin1",true) addEventHandler ( "Skin1", getRootElement(), skinv1 ) Vlw estava precisando desta função ;D Edited August 26, 2018 by OverKILL
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