golanu21 Posted February 28, 2013 Share Posted February 28, 2013 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
PaiN^ Posted February 28, 2013 Share Posted February 28, 2013 "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
golanu21 Posted February 28, 2013 Author Share Posted February 28, 2013 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
PaiN^ Posted February 28, 2013 Share Posted February 28, 2013 (edited) 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 February 28, 2013 by Guest Link to comment
iPrestege Posted February 28, 2013 Share Posted February 28, 2013 You Can't Use #Code Color Use r,g,b. Link to comment
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now