Cristtk Posted June 25, 2020 Posted June 25, 2020 Ola como faço pra criar um ColCboid? Ja tentei usar as instruções do https://wiki.multitheftauto.com/wiki/CreateColCuboid e não consegui. Se alguem puder me ajudar agradeço.
Moderators Lord Henry Posted June 26, 2020 Moderators Posted June 26, 2020 Mostre o que você tentou fazer. Eu te ajudei ou achou meu comentário útil? Não esqueça de deixar um Thanks! Minhas contribuições para a comunidade: LordHenry - MTA Wiki Profile Inscreva-se no meu canal do YouTube: Lord Henry - Entertainment Discord Oficial do MTA: https://mtasa.com/discord Blacklist e Whitelist de Scripters: Planilha Por favor, não me envie mensagens privadas solicitando suporte. Crie um tópico no fórum em vez disso.
Cristtk Posted June 26, 2020 Author Posted June 26, 2020 Coloquei essa linha de codigo do lado serve. theZone = false function shapeHit ( thePlayer ) outputChatBox ( getPlayerName ( thePlayer ) .. " is in the zone!" ) end function setZone ( playerSource, commandName, fX, fY, fZ ) if ( fZ and fY and fX ) then local tempCol = createColCuboid ( fX, fY, fZ, 10.0, 10.0, 10.0 ) if ( tempCol == false ) then outputConsole ( "Syntax is: set_zone <X> <Y> <Z>" ) else if ( theZone ~= false ) then destroyElement ( theZone ) else addEventHandler ( "onColShapeHit", theZone, shapeHit ) end theZone = tempCol outputChatBox ( "Zone has moved!" ) end end end addCommandHandler ( "set_zone", setZone )
Moderators Lord Henry Posted June 26, 2020 Moderators Posted June 26, 2020 fX, fY, fZ são strings e não números. Em vez disso, experimente usar a posição do player em vez de declarar a posição no comando. 1 Eu te ajudei ou achou meu comentário útil? Não esqueça de deixar um Thanks! Minhas contribuições para a comunidade: LordHenry - MTA Wiki Profile Inscreva-se no meu canal do YouTube: Lord Henry - Entertainment Discord Oficial do MTA: https://mtasa.com/discord Blacklist e Whitelist de Scripters: Planilha Por favor, não me envie mensagens privadas solicitando suporte. Crie um tópico no fórum em vez disso.
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