-
Posts
21,935 -
Joined
-
Last visited
-
Days Won
6
Everything posted by Castillo
-
You're wrong, Melvin was kicked from SAUR for being annoying and inmature, so, he has nothing to do with SAUR. Oh and, he even used the password of an administrator to ban our users, luckyli we catch him and banned his serial.
-
Gothem, el script funciona perfectamente, lo estoy usando en un servidor, ademas, mira esto: The model id that should be associated with the dff, when loading a vehicle. Always specify 0 if you are replacing something else than a vehicle.
-
Estas usando el MTA 1.1.1 verdad? no el MTA 1.1.
-
Que es lo que no anda? local skins = {{"ichigo", 46}, {"naruto", 53}} function load() for index, skin in pairs(skins) do txd = engineLoadTXD ( skin[1].. ".txd" ) engineImportTXD ( txd, skin[2] ) dff = engineLoadDFF ( skin[1].. ".dff", 0 ) engineReplaceModel ( dff, skin[2] ) end end addEventHandler("onClientResourceStart",resourceRoot, function () local version = getVersion() if string.find(version.mta, "1.1.1") then setTimer ( load, 1000, 1) end end) Deberia funcionar, ami me funciona.
-
Mira, el script ese cargara todos los archivos que estan en la tabla (skins). homero = el nombre del archivo, 46 = el skin que remplaza. No toques nada aparte de esa tabla, el resto lo hace el script.
-
Would you stop creating topics in every section? I've answered your question in your other topic(s).
-
Yes, it's true, in MTA 1.1.1 (not 1.1) you can replace Weapons and Skin models. An example: local skins = {{"homero", 46}, {"pikachu", 53}} function load() for index, skin in pairs(skins) do txd = engineLoadTXD ( skin[1].. ".txd" ) engineImportTXD ( txd, skin[2] ) dff = engineLoadDFF ( skin[1].. ".dff", 0 ) engineReplaceModel ( dff, skin[2] ) end end addEventHandler("onClientResourceStart",resourceRoot, function () local version = getVersion() if version.mta == "1.1.1" then setTimer ( load, 1000, 1) end end) And the meta.xml should look this: <file src="homero.txd" type="client" /> <file src="homero.dff" type="client" /> <file src="pikachu.txd" type="client" /> <file src="pikachu.dff" type="client" />
-
Si, es cierto, en el MTA 1.1.1 (no 1.1) podes remplazar los modelos de las Armas y Skins. Un ejemplo: local skins = {{"homero", 46}, {"pikachu", 53}} function load() for index, skin in pairs(skins) do txd = engineLoadTXD ( skin[1].. ".txd" ) engineImportTXD ( txd, skin[2] ) dff = engineLoadDFF ( skin[1].. ".dff", 0 ) engineReplaceModel ( dff, skin[2] ) end end addEventHandler("onClientResourceStart",resourceRoot, function () local version = getVersion() if version.mta == "1.1.1" then setTimer ( load, 1000, 1) end end) En el meta.xml tenes que tener asi: <file src="homero.txd" type="client" /> <file src="homero.dff" type="client" /> <file src="pikachu.txd" type="client" /> <file src="pikachu.dff" type="client" />
-
function onPlayerWasted() local x = 1742.47546 local y = -1861.00513 local z = 13.57804 setTimer(spawnPlayer, 5000, 1, source, x, y, z) fadeCamera(source, true) setCameraTarget(source, source) outputChatBox("You've been respawned as a result of your death.", source) end addEventHandler("onPlayerWasted", getRootElement(), onPlayerWasted)
-
That's because "player" is not a player element, "source" is the player element of onPlayerVehicleEnter. function giveMoneyToTaxi(veh, seat, jacked) local seat = getPedOccupiedVehicleSeat(source) local occupants = getVehicleOccupants(veh) local driver = getVehicleOccupant(veh) taxi = {[420]=true, [438]=true} skin = {[253]=true, [255]=true} if (driver) and (taxi[getElementModel(veh]) and (not skin[getElementModel(source)]) and (not seat == 0) then givePlayerMoney(source, 1) else return false end end addEventHandler("onPlayerVehicleEnter", rElement, giveMoneyToTaxi) Try with that.
-
El GTA tiene dos banderas que yo sepa, o por lo menos estan en algunos game modes.
-
function checkClass(hitElement, matchingDimension) if ( getElementType(hitElement) == "vehicle" ) then hitElement = getVehicleController(hitElement) end for i=0,#gateList do if not getPlayerTeam(hitElement) then return end local name = getTeamName(getPlayerTeam(hitElement)) if(name == false) then name = "false" end if ( name == team[i] or name == "false") then detection = isElementWithinColShape ( hitElement, shapes[i] ) if detection == true then move(i, false) end end end end Try that.
-
I don't get anything of your post, what do you have to do with SAUR? why do you waste your time spying us? I suggest a Administrator to close down this topic, I fell like it's going to end into a flame war.
-
getPlayerSerial is also client side, so you don't need to send it from the server side.
-
Very nice, I like them both. Good job, keep up the good work Aibo!
-
I don't know, I didn't test it on race, I think I'd enough giving you the script, now you'll have to find out why it bugs.
-
getPlayerMoney setAccountData getAccountData setPlayerMoney onPlayerQuit onPlayerLogin onPlayerLogout
-
engineImportTXD(engineLoadTXD("models/tommy.txd"), 43) engineReplaceModel(engineLoadDFF("models/tommy.dff", 0), 43) engineLoadDFF has to be 0, not the skin ID.
-
You're welcome. P.S: I made a shop resource a long time ago: https://community.multitheftauto.com/index.php?p= ... ils&id=720
-
MTA 1.1.1 doesn't has the weapon models replacement, does it?
-
Make a new resource? don't you know how resource system works? If your scoreboard is called "dxscoreboard" then you need to change call(getResourceFromName("scoreboard"),"addScoreboardColumn","Money") to call(getResourceFromName("dxscoreboard"),"addScoreboardColumn","Money")
-
-- server side addEventHandler("onResourceStart",resourceRoot, function() call(getResourceFromName("scoreboard"),"addScoreboardColumn","Money") end ) -- client side local starttick, currenttick local player = getLocalPlayer() addEventHandler("onClientResourceStart",resourceRoot, function () setTimer(updateMoney, 1000000, 0) addEventHandler("onClientRender",root,moneyRender) end) function moneyRender() if not starttick then starttick = getTickCount() end currenttick = getTickCount() if currenttick - starttick >= 1000 then setElementData(player,"Money",getPlayerMoney( player )) starttick = getTickCount() end end function updateMoney() for k, v in ipairs(getElementsByType('player')) do local money = getPlayerMoney(v) setElementData(v,"Money", money) end end
-
CaPy, he's asking how to make it stop the effect when he stops pressing the button, not that he has a bug in the script.
-
Well, where do you save the gangs? you have to save them somewhere, right?
