Jump to content

joao1234

Members
  • Posts

    104
  • Joined

  • Last visited

Everything posted by joao1234

  1. Hey guys! i sold my race to a guy but it have one problem... The problem is when he put the race in his oficial server it just shows a black screen and dont work... BUT when he put it in his local server it works perfectly the stange is it doesnt give any problem in debugscript 3. If u can help me i will be very happy :DD
  2. well the race is 20€ not 30€
  3. Well the race is 20€ not 30€
  4. addCommandHandler ( "event", marker, limit ) see the code above.. i updated it
  5. but how to do that variable? its: --################### --## Variables --################### local limit = tonumber(limit) --################### --## Event create... --################### function marker ( thePlayer, commandName ) if ( getElementType(thePlayer) == "player" ) then local team = getPlayerTeam (thePlayer) if ( team and getTeamName ( team ) == "Staff" ) then if isElement ( markerevento ) then outputChatBox ( "An event is created, you can't create another one..", thePlayer, 255, 255, 255, true ) else local x, y, z = getElementPosition ( thePlayer ) markerevento = createMarker ( x + 2, y + 2, z - 1, "cylinder", 1.5, 255, 0, 0, 170 ) blip = createBlipAttachedTo ( markerevento, 49, 1 ) dim = getElementDimension ( thePlayer ) int = getElementInterior( thePlayer ) setElementDimension ( markerevento, dim ) setElementInterior ( markerevento, int ) outputChatBox ( "#00FF00An event has just been created, type /eventwarp to be warped to the event ( limit:" ..limit.. " )", getRootElement(), 255, 255, 255, true ) end end end end addCommandHandler ( "event", marker )
  6. Is there any way to set the limit of players that can go into a marker? cuz i want to make the /event command have another argument /event [limitOFplayersINevent]
  7. oh ye it works fine :3 thx more 1 time
  8. Well i joined the two functions but now there are no errors and nothing happens function marker ( thePlayer, commandName ) if ( getElementType(thePlayer) == "player" ) then local team = getPlayerTeam (thePlayer) if ( team and getTeamName ( team ) == "Staff" ) then local x, y, z = getElementPosition ( thePlayer ) markerevento = createMarker ( x + 2, y + 2, z - 1, "cylinder", 1.5, 255, 0, 0, 170 ) blip = createBlipAttachedTo ( markerevento, 49, 1 ) dim = getElementDimension ( thePlayer ) int = getElementInterior( thePlayer ) setElementDimension ( markerevento, dim ) setElementInterior ( markerevento, int ) outputChatBox ( "#00FF00An event has just been created use #FF0000/eventwarp #00FF00now!", getRootElement(), 255, 255, 255, true ) else if ( markerevento ) then if isElement( markerevento ) then outputChatBox ( "An event is created, you can't create another one..", thePlayer, 255, 255, 255, true ) end end end end end addCommandHandler ( "event", marker ) function markerOFF () if ( markerevento ) then if isElement( markerevento ) then destroyElement( markerevento ) markerevento = nil end if isElement(blip) then destroyElement(blip) blip = nil end outputChatBox ( "Event is closed.", thePlayer, 255, 255, 255, true ) end end addCommandHandler ( "eventclose", markerOFF )
  9. add me on skype: joao-ferreira123
  10. No.. the function markerON its to prevent the player of create more than 1 event at the same time so when he type /event and another marker is created he cant create another marker..
  11. Well after that i made more code.. but when i try to create the marker it executes the first 2 functions at the same time function marker ( thePlayer, commandName ) if ( getElementType(thePlayer) == "player" ) then local team = getPlayerTeam (thePlayer) if ( team and getTeamName ( team ) == "Staff" ) then local x, y, z = getElementPosition ( thePlayer ) markerevento = createMarker ( x + 2, y + 2, z - 1, "cylinder", 1.5, 255, 0, 0, 170 ) blip = createBlipAttachedTo ( markerevento, 49, 1 ) dim = getElementDimension ( thePlayer ) int = getElementInterior( thePlayer ) setElementDimension ( markerevento, dim ) setElementInterior ( markerevento, int ) outputChatBox ( "#00FF00An event has just been created use #FF0000/eventwarp #00FF00now!", getRootElement(), 255, 255, 255, true ) else outputChatBox ( "Event cannot be created Maybe u aren't a Staff or is another error.", thePlayer ) end end end addCommandHandler ( "event", marker ) function markerON () if ( markerevento ) then if isElement( markerevento ) then outputChatBox ( "An event is created, you can't create another one..", thePlayer, 255, 255, 255, true ) end end end addCommandHandler ( "event", markerON ) function markerOFF () if ( markerevento ) then if isElement( markerevento ) then destroyElement( markerevento ) markerevento = nil end if isElement(blip) then destroyElement(blip) blip = nil end outputChatBox ( "Event is closed.", thePlayer, 255, 255, 255, true ) end end addCommandHandler ( "eventclose", markerOFF )
  12. Oh ye now it works fine :3 i forgot to join to the team, my fault
  13. but.. i tested now and it just do the else part
  14. oh thx guys <3 u helped me so much :3
  15. Hey im trying to make an event system, but when i type /event (the command to create the event marker) it executes the else part.. function marker ( thePlayer, commandName ) if ( getElementType(thePlayer) == "player" ) then if ( getPlayerTeam (thePlayer) == "Staff" ) then local x, y, z = getElementPosition ( thePlayer ) markerevento = createMarker ( x + 2, y + 2, z - 1, "cylinder", 1.5, 255, 0, 0, 170 ) blip = createBlipAttachedTo ( markerevento, 49, 1 ) dim = getElementDimension ( thePlayer ) int = getElementInterior( thePlayer ) setElementDimension ( markerevento, dim ) setElementInterior ( markerevento, int ) outputChatBox ( "#00FF00An event has just been created use #FF0000/eventwarp #00FF00now!", getRootElement(), 255, 255, 255, true ) else outputChatBox ( "Event cannot be created :/", thePlayer ) end end end addCommandHandler ( "event", marker )
×
×
  • Create New...