Jump to content

help please


golanu21

Recommended Posts

function blipcol ( thePlayer ) 
  
local playerBlip = getBlipAttachetTo ( thePlayer ) 
wantedlevel = getPlayerWantedLevel ( ) 
if wantedlevel == 1 then 
setBlipColor ( playerBlip , #FF9900 ) 
if wantedlevel == 0 then 
setBlipColor ( playerBlip , #FFFFFF ) 
        end 
    end 
end 

and i don't know what event ...

Link to comment
"onResourceStart" 

+

-- Line 3 
local playerBlip = getBlipAttachedTo ( thePlayer ) 
-- Not 
local playerBlip = getBlipAttachetTo ( thePlayer ) 

And i doubt it still a function

This page has been deleted. The deletion and move log for the page are provided below for reference
Link to comment
function pizaveh ( player, command ) 
local player = getLocalPlayer () 
local x, y, z = getElementPosition ( player )  
if(getPlayerTeam(player) == getTeamFromName("PizzaBoy")) then 
pizveh = createVehicle ( 448, x - 10, y, z ) 
else 
outputChatBox ( "Nu esti vanzator de pizza", player, 255, 0, 0 ) 
return 
end 
end 
addCommandHandler ( "pizveh", pizaveh ) 

1. i can't enter in vehicle ( pizveh )

2. i want to delete it , and create again, when the command is used again.

Link to comment

Not sure it'll work, But try :

function pizaveh ( player, command ) 
    local x, y, z = getElementPosition ( player ) 
    if(getPlayerTeam(localPlayer) == getTeamFromName("PizzaBoy")) then 
        for _,cars in ipairs(getElementsByType("vehicle")) do 
            local car = getElementModel( cars ) 
            if (car == 448) then 
                destroyElement(cars) 
            end 
        end 
        pizveh = createVehicle ( 448, x - 10, y, z ) 
    else 
        outputChatBox ( "Nu esti vanzator de pizza", player, 255, 0, 0, true ) 
    return  end 
end 
addCommandHandler ( "pizveh", pizaveh ) 

Edited :

@Mr.Pres[T]ege

You're right, I edited it so he can ..!

Edited by Guest
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...