Jump to content

Arnold-1

Members
  • Posts

    249
  • Joined

  • Last visited

Posts posted by Arnold-1

  1.   
    letters = {"A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"} 
      
    function randomPlate (vehicle) 
    setVehiclePlateText(vehicle,letters[math.random(1,#letters)]..letters[math.random(1,#letters)]..letters[math.random(1,#letters)]..tostring(math.random(1,9))..tostring(math.random(1,9))..tostring(math.random(1,9)) 
    end 
      
    

  2. WAIT, i just got your problem...

    You should output that after the second dies,so, here's how it will go:

      
    function output (player) 
    all = getAlivePlayers() 
    if #all == 1 then 
    outputChatBox("You won as first",all[1]) 
    outputChatBox("You won as second",player) 
    end 
    end 
    addEventHandler("onPlayerWasted",root,output) 
      
      
    

    sorry, but i didn't read your script well earlier.

  3. i said add a little delay, add a little delay before you check how many players are alive, because as you know, after the player is wasted, it takes him a few seconds before he actually dies, his body remains on the ground, so add a little delay.

×
×
  • Create New...