-
Posts
4,961 -
Joined
-
Last visited
Everything posted by Jaysds1
-
ummm, I see you have a windows Vista, but in the SS, it looks like a windows 98. Try taking off the Compatible Mode.
-
ok, if your server is open and you have access to and you're not in-game then type in update, but if you're in-game, you can't type in /update , you have to type in /refresh or /refreshall .
-
well, you get the element that made contact with the vehicle and check if it's a player, and if it is, check what team they're on, if they're in the mech team then set the player's element data (the mech) to the vehicle, example: setElementData(source,"MechCloseVeh",theVehcile) after that, set a timer to set the player's element data to nil or false, but while the timer is going, add the command and when they type in the command, check if the "MechCloseVeh" is a veh not nil or false, if it is, then fix the vehicle.
-
lol, ok, you could use: OnClientVehicleCollision
-
ummm, The server could be anything, all you have to do is stop any resource that has a main core for your server. Example Freeroam is a resource but has a core, meaning that it runs with everyone spawning etc.... Play is a gamemode and starts any resources that it needs, but this isn't the core because it includes the Freeroam resource.
-
You could use a colshape and for every mech, create a col for every vehicle
-
ya, but you could try setting them in different dimensions instead.
-
lol, thanks oh, @Tails, try this: local DieingPed1 = createPed (0,2336.5439453125, -1172.0966796875, 1031.96875)--the skin is the first argument function deathCheck ( ) local x,y,z = getElementPosition ( source ) outputChatBox ("Type /respawn to respawn immediately.",source, 255,0,0 ) setTimer (function() setElementInterior( source, 5 ) spawnPlayer(source, 2000.9599609375, -1402.8125, 17.690458297729, 0, 0) setElementFrozen(source, true ) end, 3000, 1) setPedAnimation(source,"GANGS","leanIDLE",12000,true,false,true,false) setTimer (function() setElementPosition(source, 2030.2861328125, -1418.5458984375, 16.9921875) setElementFrozen(source, false) end, 12000, 1) fadeCamera( source, true, 3) setCameraTarget( source, source ) end addEventHandler ( "onPlayerWasted", root, deathCheck )
-
Did you got any debug error?
-
try this: local DieingPed1 = createPed (mySkin,2336.5439453125, -1172.0966796875, 1031.96875)--the skin is the first argument function deathCheck ( ) local x,y,z = getElementPosition ( source ) outputChatBox ("Type /respawn to respawn immediately.", getRootElement ( ), 255,0,0,true ) setTimer ( setElementInterior, 2900, 1, source, 5 ) setTimer ( spawnPlayer, 3000, 1, source, 2000.9599609375, -1402.8125, 17.690458297729, 0, mySkin ) setTimer ( setElementFrozen, 3000, 1, source, true ) setPedAnimation( source, "GANGS", "leanIDLE",-1,true,false,false ) setTimer ( setElementPosition, 12000, 1, source, 2030.2861328125, -1418.5458984375, 16.9921875 ) setTimer ( setElementFrozen, 12000, 1, source, false ) fadeCamera ( source, true, 3, 0,0,0 ) setCameraTarget ( source, source ) end addEventHandler ( "onPlayerWasted", root, deathCheck )
-
http://ts3.mm.bing.net/th?id=I4728669470327074&pid=1.1
-
Actually, this would be based on your idea, Most servers use setElementData for storing the player's stars.
-
ummm, Where is this showing? Please make sure you downloaded this MTA Irc: https://wiki.multitheftauto.com/wiki/Resource:Irc
-
but if the timer has it's own function: setTimer(function()end,ms,exec) then you don't really have to pass the argument through. example: function Starve ( ) setTimer(function() if ( source and isElement ( source ) ) then setElementHealth ( source, getElementHealth ( source ) - 2 ) end end,1000, 0) end addEventHandler ( "onPlayerSpawn", getRootElement(), Starve )
-
try this: local nonKillables = { --this is easier [287]=true, [285]=true, [193]=true, [192]=true, [191]=true, [294]=true; } safecol = createColCuboid ( 95.974617004395, 1751.3895263672, 17.640625, 255, 255, 255 ) safeZoneRadar = createRadarArea ( 95.974617004395, 1751.3895263672, 255, 255, 91, 127, 0, 100 ) -- 200 = alpha. setElementData (safeZoneRadar, "zombieProof", true) function enterZone(hitPlayer,thePlayer) local skin = getElementModel (hitPlayer) if nonKillables[skin] then toggleControl (hitPlayer, "fire", true ) toggleControl (hitPlayer, "aim_weapon", true) toggleControl (hitPlayer, "vehicle_fire", true) --outputChatBox("INFO: You have entered Area 69/51!", hitPlayer, 0, 255, 0) else killPed (hitPlayer) end end addEventHandler( "onColShapeHit", safecol, enterZone ) function leaveZone(hitPlayer,thePlayer) local skin = getElementModel (hitPlayer) toggleControl (hitPlayer, "fire", true) toggleControl (hitPlayer, "aim_weapon", true) toggleControl (hitPlayer, "vehicle_fire", true) --outputChatBox("INFO: You have left Area 69/51!", hitPlayer, 255, 0, 0) if not nonKillables[skin] then killPed (hitPlayer) outputChatBox("INFO: You are not allowed to enter Area 69/51!", hitPlayer, 240, 0, 0) end end addEventHandler( "onColShapeLeave", safecol, leaveZone ) and next time please use the ['lua'][/lua] tags.
-
can you post your mtaserver.conf please.
-
lol, I keep coming on and no one posts nothing here, this is the only reason why i post after every post the person makes my CTRL+V:
-
well, I'm not sure where it would be you could try looking in your MTA Folder: 'MTA San Andreas 1.x\MTA'
-
wait, who me or Town, if it's me then, 'Np'
-
well, it's easy, just set the car data using setElementData, after that, if the a player leaves/quit, check if he has a car by using getElementData, if he does then lock the car and set the players account data(setAccountData)(only if they was logged in). after each player login, and check if they have a car using getAccountData, if they do, then .... well that's up to you.