Jump to content

outputting


roaddog

Recommended Posts

Posted

Hello guys, I had no idea, why if I the function executed, I got many messages show up in a row, Then what would i do to make it 1 message only. I need an information about it, because I got 2 scripts which have same issue.

I hope you guys understand what Im trying to do.

function callPetrolBlips (thePlayer) 
     if getElementType(thePlayer) == "player" and (thePlayer) then 
        gasStationsBlip[name] = createBlip(x,y,z,48,0,0,0,0,0,0,450); 
        setTimer (destroyPetrolBlips, 60000, 1 ) 
        outputChatBox("Streaming for gasstations, press F11!", thePlayer, 255, 100, 0, true) 
    end 
end 
addCommandHandler("station", callPetrolBlips)  
  
function destroyPetrolBlips (thePlayer ) 
    blips = getElementsByType("blip") 
    for i, v in ipairs (blips) do 
       blipIcon = getBlipIcon ( v ) 
       if (blipIcon == 48) then 
          destroyElement(v) 
          outputChatBox("gasstations's blips have been removed, type /station !", thePlayer , 255, 100, 0, true, 5) 
       end 
    end 
end 
addCommandHandler("ok", destroyPetrolBlips)      
  

Thank you.

You gone learn today.

I work my ass off, but I still can't pay tho.

Posted
  
function callPetrolBlips (thePlayer) 
     if getElementType(thePlayer) == "player" and (thePlayer) then 
        gasStationsBlip[name] = createBlip(x,y,z,48,0,0,0,0,0,0,450); 
        setTimer (destroyPetrolBlips, 60000, 1 ) 
        outputChatBox("Streaming for gasstations, press F11!", thePlayer, 255, 100, 0, true) 
    end 
end 
addCommandHandler("station", callPetrolBlips) 
  
function destroyPetrolBlips (thePlayer ) 
    blips = getElementsByType("blip") 
    for i, v in ipairs (blips) do 
       blipIcon = getBlipIcon ( v ) 
       if (blipIcon == 48) then 
          destroyElement(v) 
       end 
       end 
          outputChatBox("gasstations's blips have been removed, type /station !", thePlayer , 255, 100, 0, true, 5) 
end 
addCommandHandler("ok", destroyPetrolBlips)     
  
  

Posted

Still the same.

this has been fixed.

outputChatBox("gasstations's blips have been removed, type /station !", thePlayer , 255, 100, 0, true) 
end 

but this one still giving many messages

  outputChatBox("Streaming for gasstations, press F11!", thePlayer, 255, 100, 0, true) 

could you explain what was the problem?

You gone learn today.

I work my ass off, but I still can't pay tho.

Posted

your problem is it flooding the chat 2 times ?

- New , Kill System

- New, GameMode Intro

- Leve / Exp System

- New nametag showing style

- New , Hud For Players

- Skin Selection from SA-MP

- Money System / Buy Weapons

- Drop Weapons

- New, Flood System

- New , Group Assign

- Gun license For Weapons

- Random Rule System For Money

Posted
your problem is it flooding the chat 2 times ?

Yes

Edit: Nvm, I fixed it by myself, thank you anyway.

You gone learn today.

I work my ass off, but I still can't pay tho.

Posted (edited)

,

Edited by Guest

- New , Kill System

- New, GameMode Intro

- Leve / Exp System

- New nametag showing style

- New , Hud For Players

- Skin Selection from SA-MP

- Money System / Buy Weapons

- Drop Weapons

- New, Flood System

- New , Group Assign

- Gun license For Weapons

- Random Rule System For Money

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...