Jump to content

Help


golanu21

Recommended Posts

Like that? :

local Pickup = createPickup (....); 
  
addEventHandler("onPickupHit",Pickup, 
    function ( player ) 
        if ( getElementType ( player ) == "player" ) then 
            outputChatBox("* Press F To...",player,255,0,0,true); 
                end 
            end 
        ); 

._.

Link to comment
Like that? :

local Pickup = createPickup (....); 
  
addEventHandler("onPickupHit",Pickup, 
    function ( player ) 
        if ( getElementType ( player ) == "player" ) then 
            outputChatBox("* Press F To...",player,255,0,0,true); 
                end 
            end 
        ); 

._.

i want to : when i am in the pickup and i press F THEN etc... ,, this i dont know

Link to comment

You can do some thing like that : P

local Pickup = createPickup (....); 
  
addEventHandler("onClientPickupHit",Pickup, 
    function ( player ) 
        if ( player == localPlayer ) then 
            bindKey ("F","down",xxx); 
            outputChatBox("* Press F To Play Music!",255,0,0,true); 
            end 
        end 
    ); 
             
             
function xxx( ) 
        playSound("FilePath",true); 
    end 
     
Link to comment
You can do some thing like that : P

local Pickup = createPickup (....); 
  
addEventHandler("onClientPickupHit",Pickup, 
    function ( player ) 
        if ( player == localPlayer ) then 
            bindKey ("F","down",xxx); 
            outputChatBox("* Press F To Play Music!",255,0,0,true); 
            end 
        end 
    ); 
             
             
function xxx( ) 
        playSound("FilePath",true); 
    end 
     

Aha, thanx very mutch man :D

Link to comment

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...