Jump to content

LucasBaker

Members
  • Posts

    134
  • Joined

  • Last visited

Everything posted by LucasBaker

  1. yes wiki example , thanks
  2. I wish instead of skins were team, someone could help me? this script makes players who are not the team, do not enter the vehicle policeVehicles = { [598]=true,[596]=true,[597]=true,[599]=true } policeSkins = { [280]=true,[281]=true,[282]=true,[283]=true,[284]=true,[285]=true,[286]=true } function enterVehicle ( player, seat, jacked ) --when a player enters a vehicle if ( policeVehicles[getElementModel(source)] ) and ( not policeSkins[getElementModel(player)] ) then cancelEvent() outputChatBox ('#F08080[AVISO] #FF0000Este veículo pertence a Gang LEI!',getRootElement(),255,255,255,true) end end addEventHandler ( "onVehicleStartEnter", getRootElement(), enterVehicle )
  3. Well I made this script for when the player enter / repair, the script causes the vehicle to be repaired within 15 seconds, I would like to know what you want is wrong here -- Script Criado por Miller function repararVeiculo(player, command, source) outputChatBox ( "Estamos reparando seu veículo aguarde 15 Segundos!", getRootElement(), 255, 0, 0, true ) setTimer(repararVeiculo, 15000, 1) player = getRandomPlayer() vehicles = getElementsByType ("vehicle") for vehicleKey, vehicleValue in ipairs(vehicles) do fixVehicle ( vehicleValue) end end addCommandHandler("reparar",repararVeiculo)
  4. Well, I'm trying to create a script eg / hitman $ name value, and kill that player earns a certain amount of money, but I am not able to finish it someone could help me, what functions I use for such a script, the script I have done below hitherto and still not working must have done something wrong function assassino (thePlayer) local money = getPlayerMoney(thePlayer) if (money > 1000) then takePlayerMoney ( thePlayer, tonumber(1000) ) outputChatBox ('[CONTRATOS] O Player ' ..getPlayerName(thePlayer) .. ' botou um contrato no Player', root, 221, 160, 221, true) end addCommandHandler ( "hitman", assassino )
  5. was missing the command in chat, thanks
  6. Are you sure it's server side? Post the meta.xml file . <meta> <info name="ForumINFO" author="Miller" version="1.0" type="script" /> <script src="main.lua" type="server"/> </meta>
  7. DNL291 I type /vincular and nothing appears
  8. I wonder why this script is not showing the name of the player who typed "/vincular" and the message is also not appearing for all function vincular () outputChatBox ('[Forum] O Player ".. getPlayerName(getPlayerName(player)).."', root, 255, 255, 255, true) end addCommandHandler ( "vincular", vincular)
×
×
  • Create New...