KainDepZai Posted April 5, 2015 Posted April 5, 2015 function sexo() showCursor(true) wal = guiCreateStaticImage(0, 0, 1, 1, "images/wal.jpg", true) fundo = guiCreateStaticImage(0.15, 0.28, 0.72, 0.63, "images/fundo.png", true, wal) home = guiCreateStaticImage(0.2, 0.28, 0.2, 0.6, "images/Gunner.png", true,fundo) mulher = guiCreateStaticImage(0.6, 0.28, 0.2, 0.6, "images/Knifer.png", true,fundo) addEventHandler("onClientGUIClick", home, playersexo) addEventHandler("onClientGUIClick", mulher, playersexo) addEventHandler("onClientMouseEnter", home, false) addEventHandler("onClientMouseLeave", home, false) addEventHandler("onClientMouseEnter", mulher, false) addEventHandler("onClientMouseLeave", mulher, false) end function playersexo(source,theTeam,player) showCursor(false) destroyElement(wal) destroyElement(fundo) destroyElement(mulher) destroyElement(home) if(source ~= mulher) then local spawnTeam = createTeam ("Assasin") outputChatBox ("Chào mừng bạn đã đến với thành phố hỗn tạp này!! GOOD LUCK...", source, 255, 0, 0, false) outputChatBox ("Bạn đã có skill của 1 sát thủ!! Hãy ấn F7 để xem hỗ trợ", source, 255, 0, 0, false) spawnPlayer (source, 0, 0, 5, 0, math.random 28, 0, 0, spawnTeam) fadeCamera (source, true) setCameraTarget (source, source) giveWeapon(player, 8, 1) giveWeapon(player, 1, 1) end elseif(source ~= homem) then local spawnTeam = createTeam ("Gunner") outputChatBox ("Chào mừng bạn đã đến với thành phố hỗn tạp này!! GOOD LUCK...", source, 255, 0, 0, false) outputChatBox ("Bạn đã có skill của 1 Gunner!! Hãy ấn F7 để xem hỗ trợ", source, 255, 0, 0, false) spawnPlayer (source, 0, 0, 5, 0, math.random (0,288), 0, 0, spawnTeam) fadeCamera (source, true) setCameraTarget (source, source) giveWeapon(player, 8, 1) giveWeapon(player, 1, 1) end function home2() guiStaticImageLoadImage(home, "images/Guner.png")end function mulher2() guiStaticImageLoadImage(mulher, "images/Knifer.png")end
Tekken Posted April 5, 2015 Posted April 5, 2015 This code combine client and server, i tried to fix it but i don't understaind nothing from it. Server function playersexo(theTeam) showCursor(false) destroyElement(wal) destroyElement(fundo) destroyElement(mulher) destroyElement(home) if (client ~= mulher) then local spawnTeam = createTeam ("Assasin") outputChatBox ("Chào mừng bạn đã đến với thành phố hỗn tạp này!! GOOD LUCK...", client, 255, 0, 0, false) outputChatBox ("Bạn đã có skill của 1 sát thủ!! Hãy ấn F7 để xem hỗ trợ", client, 255, 0, 0, false) spawnPlayer (client, 0, 0, 5, 0, math.random(0, 288), 0, 0, spawnTeam) fadeCamera (client, true) setCameraTarget (client, client) giveWeapon(client, 8, 1) giveWeapon(client, 1, 1) elseif(client ~= homem) then local spawnTeam = createTeam ("Gunner") outputChatBox ("Chào mừng bạn đã đến với thành phố hỗn tạp này!! GOOD LUCK...", client, 255, 0, 0, false) outputChatBox ("Bạn đã có skill của 1 Gunner!! Hãy ấn F7 để xem hỗ trợ", client, 255, 0, 0, false) spawnPlayer (client, 0, 0, 5, 0, math.random (0,288), 0, 0, spawnTeam) fadeCamera (client, true) setCameraTarget (client, client) giveWeapon(client, 8, 1) giveWeapon(client, 1, 1) end end addEvent("PlayerSexo", true) addEventHandler("PlayerSexo", root, playersexo) Client function sexo() showCursor(true) wal =guiCreateStaticImage(0, 0, 1, 1, "images/wal.jpg", true) fundo =guiCreateStaticImage(0.15, 0.28, 0.72, 0.63, "images/fundo.png", true, wal) home =guiCreateStaticImage(0.2, 0.28, 0.2, 0.6, "images/Gunner.png", true,fundo) mulher =guiCreateStaticImage(0.6, 0.28, 0.2, 0.6, "images/Knifer.png", true,fundo) end addEventHandler ( "onClientGUIClick", getResourceRootElement(getThisResource()), function() if (source == home) then triggerServerEvent("PlayerSexo", localPlayer) elseif (source == mulher) then triggerServerEvent("PlayerSexo", localPlayer) end end ) addEventHandler("onClientMouseEnter", home, false) addEventHandler("onClientMouseLeave", home, false) addEventHandler("onClientMouseEnter", mulher, false) addEventHandler("onClientMouseLeave", mulher, false) function home2() guiStaticImageLoadImage(home, "images/Guner.png") end function mulher2() guiStaticImageLoadImage(mulher, "images/Knifer.png") end
KainDepZai Posted April 5, 2015 Author Posted April 5, 2015 http://i.imgur.com/f1ILziK.png it said this
Et-win Posted April 5, 2015 Posted April 5, 2015 addEventHandler("onClientMouseEnter", home, false) addEventHandler("onClientMouseLeave", home, false) addEventHandler("onClientMouseEnter", mulher, false) addEventHandler("onClientMouseLeave", mulher, false) On the place where 'false' is must be a function, eh.
KainDepZai Posted April 5, 2015 Author Posted April 5, 2015 function home() guiStaticImageLoadImage(home, "images/Guner.png") end function mulher() guiStaticImageLoadImage(mulher, "images/Knifer.png") end this funtion ?? still not working
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