-
Posts
21,935 -
Joined
-
Last visited
-
Days Won
6
Everything posted by Castillo
-
I really doubt someone is going to give you the script, I gave you the hunter reward, later on, you uploaded it to the MTA community with you as the author. Start learning to script it yourself.
-
When you show the GUI, set the input to go to GUI. guiSetInputEnabled ( true )
-
Not sure if the script has a bind or a command to do it, check settings.
-
Add the resource to the acl group "Admin".
-
No, if ( hitElement == localPlayer ) then
-
It isn't, must be put it from habit.
-
You're not using a string. Should be. local Unemployed = createTeam ( "Unemployed" )
-
No, that one works, seems like color arguments aren't required, whoever made that wiki page for createTeam, should have set the color argments as optional.
-
You're welcome.
-
At createTeam you put Unemployed, which is not a string, you should've put "Unemployed", also, you had forgot to define the color arguments.
-
Again skin. No team.. Works perfect here.
-
Copy the client side again.
-
local Unemployed = createTeam ( "Unemployed", 255, 255, 255 ) function SetSkinAndTeam ( player ) setElementModel ( player, 239 ) setPlayerTeam ( player, Unemployed ) end addCommandHandler ( "resign", SetSkinAndTeam )
-
function enterVehicle2 ( thePlayer, seat, jacked ) local theVehicleID = getElementModel ( source ) if ( theVehicleID == 420 ) and ( seat ~= 0 ) then local driver = getVehicleOccupant ( source, 0 ) local money = getPlayerMoney ( thePlayer ) if ( money >= 1000 ) then if ( isTimer ( takeMoneyTimer ) ) then killTimer ( takeMoneyTimer ) end takeMoneyTimer = setTimer ( function ( ) local money = getPlayerMoney ( thePlayer ) if ( money >= 1000 ) then givePlayerMoney ( driver, 1000 ) takePlayerMoney ( thePlayer, 1000 ) outputChatBox ( "Se le ha cobrado $1000", thePlayer, 0, 255, 0, true ) else removePedFromVehicle ( thePlayer ) if ( isTimer ( takeMoneyTimer ) ) then killTimer ( takeMoneyTimer ) end end end , 30000, 0 ) destroyElement ( taxiOphaalBlip ) else removePedFromVehicle ( thePlayer ) destroyElement ( taxiOphaalBlip ) outputChatBox ( "No tienes dinero suficiente (minimo $1100)", thePlayer, 255, 0, 0, true ) end end end addEventHandler ( "onVehicleEnter", getRootElement(), enterVehicle2 )
-
You can't load them, you can maybe decompress the files and load them, but you can't load a .zip file.
-
You obviously did it wrong, because I just tested it and works. Here you can download the resource, since it seems that you can't even follow some simple steps: http://www.mediafire.com/?mv3ghpu1u7mjtdg
-
function guishow(hitPlayer) triggerClientEvent (hitPlayer,"guishowc",getRootElement(),hitPlayer) end addEventHandler("onMarkerHit",marker,guishow) Ahi tenes el error, pusiste "marker" y no "marker1".
-
You can use this function: function dxDrawBorderedText ( text, x, y, w, h, color, scale, font, alignX, alignY, clip, wordBreak, postGUI ) dxDrawText ( text, x - 1, y - 1, w - 1, h - 1, tocolor ( 0, 0, 0, 255 ), scale, font, alignX, alignY, clip, wordBreak, false ) -- black dxDrawText ( text, x + 1, y - 1, w + 1, h - 1, tocolor ( 0, 0, 0, 255 ), scale, font, alignX, alignY, clip, wordBreak, false ) dxDrawText ( text, x - 1, y + 1, w - 1, h + 1, tocolor ( 0, 0, 0, 255 ), scale, font, alignX, alignY, clip, wordBreak, false ) dxDrawText ( text, x + 1, y + 1, w + 1, h + 1, tocolor ( 0, 0, 0, 255 ), scale, font, alignX, alignY, clip, wordBreak, false ) dxDrawText ( text, x - 1, y, w - 1, h, tocolor ( 0, 0, 0, 255 ), scale, font, alignX, alignY, clip, wordBreak, false ) dxDrawText ( text, x + 1, y, w + 1, h, tocolor ( 0, 0, 0, 255 ), scale, font, alignX, alignY, clip, wordBreak, false ) dxDrawText ( text, x, y - 1, w, h - 1, tocolor ( 0, 0, 0, 255 ), scale, font, alignX, alignY, clip, wordBreak, false ) dxDrawText ( text, x, y + 1, w, h + 1, tocolor ( 0, 0, 0, 255 ), scale, font, alignX, alignY, clip, wordBreak, false ) dxDrawText ( text, x, y, w, h, color, scale, font, alignX, alignY, clip, wordBreak, postGUI ) end
-
function accept() if ( guiCheckBoxGetSelected ( checkboox ) ) then triggerServerEvent("sTeame", localPlayer, "teamSet") outputChatBox("Bienvenido al trabajo de Taxista!") guiSetVisible (ventana, not guiGetVisible ( ventana ) ) showCursor ( false ) else outputChatBox("Tu debes aceptar las reglas para entrar o no podras conseguir el trabajo") end end addEventHandler ( "onClientGUIClick", Aceptar, accept, false ) --Evento del boton aceptar
-
Postea la funcion "accept".
