-
Posts
21,935 -
Joined
-
Last visited
-
Days Won
6
Everything posted by Castillo
-
Si, pero para hacer que disparen es otra cosa.
-
Entonces tenes que obtener el colshape del marker primero con: getElementColShape.
-
As I said, that is a mess, go back to the wiki and read how to do it properly.
-
You're welcome.
-
To show the GUI again, you must use triggerClientEvent.
-
function onSetTeamColorToCar ( thePlayer ) local hisVehicle = getPedOccupiedVehicle ( thePlayer ) local hisTeam = getPlayerTeam ( thePlayer ) if ( hisTeam ) then local r, g, b = getTeamColor ( hisTeam ) setVehicleColor ( hisVehicle, r, g, b ) else -- if player not have team then local r, g, b = math.random ( 255 ), math.random ( 255 ), math.random ( 255 ) setVehicleColor ( hisVehicle, r, g, b ) end end addEventHandler ( "onVehicleEnter", getRootElement(), onSetTeamColorToCar ) addEvent ( "onPlayerPickUpRacePickup", true ) addEventHandler ( "onPlayerPickUpRacePickup", getRootElement(), function ( ) onSetTeamColorToCar ( source ) end ) addEvent ( "onPlayerReachCheckpoint", true ) addEventHandler ( "onPlayerReachCheckpoint", getRootElement(), function ( ) onSetTeamColorToCar ( source ) end ) The first argument of 'onPlayerPickUpRacePickup' is the pickup ID. The first argument 'onPlayerReachCheckpoint' is the checkpoint ID. You forgot about addEvent.
-
1: We don't accept requests here. 2: I don't know what is a "mike script".
-
outputChatBox(tostring(pname) .." has added '".. getPlayerName(player .."' to " .. groupname .. ".", getRootElement(), 0, 255 ,255 ) Te falta un parentesis en getPlayerName, ademas podrias usar directamente "pname", ya que la definiste anteriormente.
-
All GUI functions are client side, your script must be set as server side in the meta.xml, change it to client side.
-
'source' of onPlayerLogin is the player that logged in, not his/her account.
-
GUIEditor_Window = {} GUIEditor_TabPanel = {} GUIEditor_Tab = {} GUIEditor_Button = {} GUIEditor_Memo = {} GUIEditor_Radio = {} GUIEditor_Image = {} GUIEditor_Window[1] = guiCreateWindow(428,37,499,652,"Help Manager",false) guiWindowSetSizable(GUIEditor_Window[1],false) GUIEditor_TabPanel[1] = guiCreateTabPanel(21,120,469,523,false,GUIEditor_Window[1]) GUIEditor_Tab[1] = guiCreateTab("--------Server Info---------",GUIEditor_TabPanel[1]) GUIEditor_Image[1] = guiCreateStaticImage(4,1,464,491,"images/en.png",false,GUIEditor_Tab[1]) GUIEditor_Tab[2] = guiCreateTab("----------Server Rules----------",GUIEditor_TabPanel[1]) GUIEditor_Button[2] = guiCreateButton(11,10,182,44,"English",false,GUIEditor_Tab[2]) GUIEditor_Button[3] = guiCreateButton(267,13,191,44,"Arabic",false,GUIEditor_Tab[2]) GUIEditor_Image[2] = guiCreateStaticImage(9,61,452,427,"images/en.png",false,GUIEditor_Tab[2]) GUIEditor_Image[4] = guiCreateStaticImage(9,61,452,427,"images/en.png",false,GUIEditor_Tab[2]) GUIEditor_Tab[3] = guiCreateTab("-----Gamemode binds-----",GUIEditor_TabPanel[1]) GUIEditor_Memo[1] = guiCreateMemo(3,0,466,495,"arena [id] - for starting arenas\n/base [id] - for starting bases\n/end - for ending the round\n/add [id] - for adding the player to round\n/resetscore - restart all players and teams score\n/gunmenu [id] - for giving the gunmenu for the player\n/remove [id] - for removing the player from the round\n/screen id quaility(0-100) [taq] [width] [height] - for doing screenshot for the player\n/vote [base/arena] [id/ids] - for start the voting\n/car [id] - for get the vehicle in main lobby\n/clean - for restart the rounds history\n/pause - for pausing/repausing the round\n/swap - for change the teams sides\n/tp [id1] [id2] - for teleport the player1 to the player2\n/heal [id] - for heal the player\n/healall - for heal all players\n/startmatch [base/tdm] [rounds] - for starting the match\n/endmatch - for ending the match\n/gun - re weapon select\n/rsp - for re-sync\n/view - for viewing the mapst\n[edit]\nDefault binds\nF1 - configuration panel\nF3 - client panel\nF4 - re-select team\nH - call help\nR - Realod the weapon",false,GUIEditor_Tab[3]) GUIEditor_Image[3] = guiCreateStaticImage(10,21,480,91,"images/logo.png",false,GUIEditor_Window[1]) function infoShow ( ) guiSetVisible ( GUIEditor_Window[1], not guiGetVisible ( GUIEditor_Window[1] ) ) showCursor ( not isCursorShowing( ) ) end bindKey ( "F1","down", infoShow ) addEventHandler ( "onClientGUIClick", root, function ( ) if ( source == GUIEditor_Button[3] ) then guiSetVisible( GUIEditor_Image[4], true ) guiSetVisible( GUIEditor_Image[2], false ) elseif ( source == GUIEditor_Button[3] ) then guiSetVisible( GUIEditor_Image[2], true ) guiSetVisible( GUIEditor_Image[4], false ) end end ) Your text wasn't correct.
-
Lo que podes hacer es crear el objeto del cigarro y pegarlo con attachElements.
-
Maybe giving information of what is not working could help us help you? Does the script output errors in debugscript? ( /debugscript 3 in game ).
-
Es un marker no un colshape?
-
Topic locked. We don't help people who steal scripts.
-
Exactamente.
-
El primer argumento de addCommandHandler client side es el comando usado, borra 'thePlayer' del nombre de la funcion, y luego remplazalo en las otras funciones con 'localPlayer'.
-
getPlayerMoney
-
Cierro el tema.
-
Te olvidaste de definir: "thePlayer".
-
Usa esta funcion al usar el comando: isElementWithinColShape
-
Yes, this line: if ( thePlayer == theEstateEntrance ) then Should be: if ( source == theEstateEntrance ) then And this line: outputChatBox ( "You are entering the Estate!", getRootElement() ) Should be: outputChatBox ( "You are entering the Estate!", thePlayer )
