BinSlayer1
Members-
Posts
491 -
Joined
-
Last visited
Everything posted by BinSlayer1
-
which line? post whole error..
-
hm make sure you changed the code entirely with mine.. there's no reason why it should "kick" you out of the car now that you're not using removePedFromVehicle anymore.. onVehicleStartEnter gets triggered when the player starts entering the vehicle and afterwards it's cancelled if conditions are matched.. there should be no more entering providing you do meet the "IF" requirements. make sure u changed the whole code again
-
copVehicles = { [523]=true,[598]=true[596]=true,[597]=true,[599]=true} copSkins = { [280]=true,[281]=true[282]=true,[283]=true,[284]=true,[288]=true } function copenterVehicle ( player, seat, jacked ) if ( copVehicles[getElementModel ( source )] ) and ( not copSkins[getElementModel ( player )] ) and ( seat == 0 ) then cancelEvent() outputChatBox ( "You aren't a Police Officer , you mayn't drive this.", player ) --and tell the player why end end addEventHandler ( "onVehicleStartEnter", getRootElement(), copenterVehicle )
-
pai si cine hosteaza? ca nu e asa usor sa tii 3 servere 24/7 online. mai bine 1 server , dar intrebarea ramane aceeasi.. cine hosteaza? )
-
Yes it appears you're right. Perhaps the only issue remains his setRandomVehicle function
-
i need this function for the race mode... i don't think that when the player spawns in the vehicle the onVehicleEnter event will be called... it will, and it's sure as hell better to use onVehicleEnter instead of onPlayerSpawn for the 'race' gamemode. When you die and respawn in race, your player actually doesn't die... Its position will be somewhere up in the sky so he will never "respawn" again hence onPlayerSpawn won't be triggered everytime you respawn in race and another problem i see is that math.min(#vehicleIDS) (and math.max) these math functions need a few numbers out of which they will decide which one is min or max. you're only passing #vehicleIDS which is ONE number, not two. I'm not entirely sure, but this is what I understand from here: http://lua-users.org/wiki/MathLibraryTutorial So you should think of another way to get that random number.. How about this one? function setRandomVehicle(theVehicle) setElementModel(theVehicle, vehicleIDS[math.random(1,#vehicleIDS)] end
-
try this instead of your triggerClientEvent triggerClientEvent (v,"showImage", getRootElement ()) btw, i saw you were passing 'object' as parameter for triggering the event showImage, but I don't see no object defined anywhere so I removed it from the above line
-
daca faceti server de romani ma bag si eu, sunt scripter cu cunostinte avansate de mta, joc din 2006 dati PM pe profilu meu sa vb
-
this might look dumb but i've had many problems with IF's when I wasn't using paranthesis so you might wanna try the following: if (state == "Running") or (state == "PostFinish") then
-
server? setElementCollisionsEnabled() is clientside only as well, at the moment. (until MTA 1.1 is released) How about you try using setElementCollidableWith in an ipairs FOR with all the objects and players?
-
there's 1 more function that handles collisions, try it: https://wiki.multitheftauto.com/wiki/Set ... idableWith let us know if it makes any difference
-
All I could find is this. https://community.multitheftauto.com/index.php?p= ... ils&id=953 Hope it helps
-
fileSetPos(fileElement, fileGetSize(fileElement)) I think ^ is what you are looking for. You should execute that line right after opening the file to write.
-
Well, since you're saying you've created the new chatbox, all you gotta do now is cancel the event onPlayerChat when it detects a team-message and use the dxDrawText function to draw the message gathered from onPlayerChat (that was cancelled) to your new chatbox
-
@qaisjp: Weird code. I don't know what it does, but as I see it, your script's messing clientside and serverside What should it be? Because bindKey doesn't have a player element therefore it looks clientside and addCommandHandler has the player element therefore it looks serverside And the myFriends table in ipairs isn't defined anywhere
-
Open: server\mods\deathmatch\resources\admin\client\gui\admin_main.lua Search for this keyword: "Give admin rights" . Under this line: aTab1.Admin = guiCreateButton ( 0.71, 0.305, 0.27, 0.04, "Give admin rights", true, aTab1.Tab, "setgroup" ) Add another line where you type: guiSetVisible(aTab1.Admin, false) Should do the trick on removing the button alone. Of course there are other ways, you could even remove the function that creates the button, but I'm unsure whether it'll break anything else in the code afterwards This way, you'll surely break nothing
-
exports.scoreboard:scoreboardAddColumn ( "Gesellschaftsstatus" ) exports.scoreboard:scoreboardAddColumn ( "Spielzeit" ) ^ Should be done server-side as far as i know
-
what do u think it is... his skype name of course
-
well that sucks i guess the function is broken then it would have been really useful for me to sort some maps now i gotta go through them 1 by 1..
-
well, math.random is obviously used to get a random number and it is possible to get the same number a few times in a row.. I suppose you could take them 1 by 1 instead of being all randomized. Try the following code, even though I didn't test it and I'm not sure if this is what you want to do.. function advert( ) nr = nr + 1 if nr == #adMessages then nr = 0 end outputChatBox( adMessages[nr], getRootElement(), 255, 255, 255, true ) end Right before this function, add the following line: nr = 0
-
Hi. I'm trying to make use of this function: https://wiki.multitheftauto.com/wiki/CopyResource I can't seem to get it to work. I've debugged it, no errors. The script outputs the correct information(chatbox stuff), except I cannot find the newly copied resources anywhere. Yes, I've given it admin rights and I've made sure the "admin" group has access to "function.copyResource" . Again, there are no errors shown. I tried the example script in the wiki and I've tried something of my own too. I'll post it for what it's worth: http://pastebin.com/SKfe89yq However, debugging the copyResource line itself shows me it's returning false. Why could this be? Thanks
-
not only that, but you also have a typo here: setTraffivLightState ( tostringĀ®, tostring(g) )
-
well yeah, but radio as in listen.pls radio. set up a nightly 1.1 server: https://nightly.multitheftauto.com/ and then you have to make a script using the playSound() function. And simply make it like playSound("http://radioURL")
-
Nice work guys still i wonder, what's actually the big deal with everyone trying to use dx functions over the mta gui? In what ways are the dx functions better? is it just for the looks, or is there actually any difference in performance?
-
dont mention it
