-
Posts
21,935 -
Joined
-
Last visited
-
Days Won
6
Everything posted by Castillo
-
1: triggerClientEvent 2: You mean on a wall? if so, you can use shaders.
-
That's right, I didn't notice. You're welcome.
-
function makeicon() local x,y = guiGetScreenSize() local iconimg = guiCreateStaticImage( (x/2)-25, y/15, 50, 50, "icon5.png", false ) end addEventHandler("onClientResourceStart", getResourceRootElement(getThisResource()), makeicon) function changeicon() guiStaticImageLoadImage ( iconimg, "icon2.png" ) end function trigger ( message ) outputChatBox ( "The server says: " .. message ) changeicon ( ) end addEvent( "triggered", true ) addEventHandler( "triggered", getRootElement(), trigger )
-
Sera porque "playerTeam" no esta definido en ninguna parte? y ademas en "playerJoin" usas "source" en lugar de un team?
-
Where do you store the class?
-
Max wanted level is 6, not 8, all you can do is create your own, you could use element data.
-
Post all the fr_server.lua content on pastebin.com and put the link here.
-
[Ayuda] Paradise RP UnBan (?)
Castillo replied to zero's topic in Ayuda relacionada al cliente/servidor
Donde guardas los bans? -
function warpStatus ( player ) if isObjectInACLGroup ( "user.".. getAccountName ( getPlayerAccount ( player ) ), aclGetGroup ( "Admin" ) ) then local status = ( not getElementData ( player, "warp.status" ) ) setElementData ( player, "warp.status", status ) outputChatBox ( "You have ".. ( status and "enabled" or "disabled" ) .." your warping", player ) end end addCommandHandler ( "nowarp", warpStatus ) function warpMe(targetPlayer) if (getElementData(targetPlayer,"warp.status") == false) then if isPedDead(source) then spawnMe() end local vehicle = getPedOccupiedVehicle(targetPlayer) if not vehicle then -- target player is not in a vehicle - just warp next to him local x, y, z = getElementPosition(targetPlayer) clientCall(source, 'setPlayerPosition', x + 2, y, z) else -- target player is in a vehicle - warp into it if there's space left if getPedOccupiedVehicle(source) then --removePlayerFromVehicle(source) outputChatBox('Get out of your vehicle first.', source) return end local numseats = getVehicleMaxPassengers(vehicle) for i=0,numseats do if not getVehicleOccupant(vehicle, i) then if isPedDead(source) then local x, y, z = getElementPosition(vehicle) spawnMe(x + 4, y, z + 1) end warpPedIntoVehicle(source, vehicle, i) return end end outputChatBox('No free seats left in ' .. getPlayerName(targetPlayer) .. 's vehicle.', source, 255, 0, 0) end local interior = getElementInterior(targetPlayer) setElementInterior(source, interior) setCameraInterior(source, interior) end You must replace the function "warpMe" at "freeroam/fr_server.lua" with that code.
-
Weapon ID's: https://wiki.multitheftauto.com/wiki/Weapons I don't know what could it be.
-
Try adding commas: [ [ 38, 35, 36 ] ]
-
These are functions, you need to learn Lua scripting to add it for admins only.
-
getPlayerAccount getAccountName isObjectInACLGroup
-
@zero: Where does the script store the bans?
-
"freeroam/fr_server.lua".
-
[ [ 38 ] ] 38 = minigun.
-
Try this: addEventHandler ( 'onColShapeHit', root, function ( pla ) if ( getElementType ( pla ) == "player" ) then if ( getPlayerTeam ( pla ) ) then setTimer ( function ( ) setRadarAreaFlashing ( Area, true ) setTimer ( function ( ) local r, g, b = getTeamColor ( getPlayerTeam ( pla ) ) if isRadarAreaFlashing ( Area ) then setRadarAreaFlashing ( Area, false ) givePlayerMoney ( pla, 5000 ) setRadarAreaColor ( Area, r, g, b, 125 ) end end ,5000, 1 ) end ,5000, 1 ) end end end )
-
You can't, you must map them on your own.
-
You must change the setting "weapons/disallowed" via admin panel.
-
So, that would be item data, try this: radios = { {"Hot 108 Jamz","http://scfire-dtc-aa01.stream.aol.com:80/stream/1038"} } function use2 ( ) local row, col = guiGridListGetSelectedItem ( rog_ucp_radio_grid) if ( row and col and row ~= -1 and col ~= -1 ) then local url = guiGridListGetItemData ( rog_ucp_radio_grid, row, 1 ) if ( url ~= "" ) then playSound ( url ) end end end addEventHandler ( "onClientGUIClick", rog_ucp_radio_button_stream, use2, false )
-
Podrias editar el script y agregarle para que use el color del team.
-
And, where do you save the URL at? grid list item data or item text?