-
Posts
21,935 -
Joined
-
Last visited
-
Days Won
6
Everything posted by Castillo
-
So, your problem is that they can create a gang that already exists, did I get it right?
-
Should work fine for 1.1, but now, you can use it server side also.
-
What is that? there's no such function loadData, importData.
-
Stop off-topic guys, this topic was not made for this. P.S: I doubt you'll get any free scripter, the best thing you can do is learn.
-
I don't understand, what's wrong with it? you don't give any explanation at all... all my 1.0 scripts are working in 1.1, only had to change a few things, but mainly they work without problems.
-
guiSetEnabled(getControl("weather"),false) Freeroam uses getControl to get the GUI elements, in this case buttons.
-
I think this is what you need: Handling lines to LUA converter: viewtopic.php?f=91&t=35846&p=370120&hilit=handling#p370120
-
Nice, I don't need it, but many ppl does I guess, good work.
-
I don't know much about PHP and so on, but maybe the url doesn't return anything at all?
-
These are custom made events, they don't exists.
-
That's because they don't exists. Where did you see them?
-
If you put the IP in the mtaserver.conf the server won't start. P.S: Tank07, that was my problem, I just allowed it in the Firewall.
-
What do you mean? I don't get it...
-
Agree, I like the design aswell. Good job, keep up the good work .
-
You have created the team already, right? if so, why don't you just check for the team name? policjabrama2 = createObject ( 980, 1545.7504882813, -1628.373046875, 15.156204223633 , 0, 0, 85 ) function policjaO2(thePlayer) local pTeam = getPlayerTeam(thePlayer) if not pTeam then return end if (getTeamName(pTeam) == "Policja") then moveObject ( policjabrama2, 3200, 1546.0052490234, -1618.1116943359, 15.327953338623) end end addCommandHandler("open7", policjaO2 ) function policjaC2(thePlayer) local pTeam = getPlayerTeam(thePlayer) if not pTeam then return end if (getTeamName(pTeam) == "Policja") then moveObject ( policjabrama2, 3200, 1545.7504882813, -1628.373046875, 15.156204223633 ) end end addCommandHandler("close7", policjaC2 ) Try that.
-
Your welcome.
-
function showintro1() fadeCamera(root,false,1 ) setTimer(fadeCamera,1000,1,root,true,5 ) setTimer(start,1500,1) end addEventHandler ( "onResourceStart", getResourceRootElement ( getThisResource () ),showintro1) function start() for index, player in pairs(getElementsByType("player")) do setElementFrozen(player, true) end setCameraMatrix(root,815,-1284.33,7.33,-40000,0,00) anchor1 = createPed(57,808.0,-1285.66,6.27) anchor2 = createPed(219,808.0,-1284.11,6.27) anchor3 = createPed(187,808.0,-1282.50,6.27) setPedFrozen(anchor1,true) setPedFrozen(anchor2,true) setPedFrozen(anchor3,true) setElementRotation(anchor1,0,0,270) setElementRotation(anchor2,0,0,270) setElementRotation(anchor3,0,0,270) setTimer(anims,1000,1) end function anims() setPedAnimation( anchor1,"INT_OFFICE", "OFF_Sit_Idle_Loop",5000,false,false,false) setPedAnimation( anchor2,"INT_OFFICE", "OFF_Sit_Idle_Loop",5000,false,false,false) setPedAnimation( anchor3,"INT_OFFICE", "OFF_Sit_Idle_Loop",5000,false,false,false) setTimer(floodmess,3000,1) end function floodmess() setPedAnimation( anchor2 ) setPedAnimation( anchor2,"GANGS", "prtial_gngtlkC",5000,false,false,false) triggerClientEvent(root,"flood1",root) setTimer(bye,4000,1) setTimer(beach,9000,1) end function bye() setPedAnimation( anchor1,"GANGS", "hndshkda",5000,false,false,false) setPedAnimation( anchor2,"GANGS", "hndshkaa",5000,false,false,false) setPedAnimation( anchor3,"GANGS", "hndshkba",5000,false,false,false) setTimer(anims1,4000,1) end function anims1() setPedAnimation( anchor1,"INT_OFFICE", "OFF_Sit_Idle_Loop",5000,false,false,false) setPedAnimation( anchor2,"INT_OFFICE", "OFF_Sit_Idle_Loop",5000,false,false,false) setPedAnimation( anchor3,"INT_OFFICE", "OFF_Sit_Idle_Loop",5000,false,false,false) end function anims2() setPedAnimation(carla,"GANGS", "prtial_gngtlkC",5000,false,false,false) setPedAnimation(carla1,"ped", "WOMAN_runpanic",5000,true,true,false) setTimer(setPedAnimation,6000,1,carla) end function beach() setCameraMatrix(root,923.71,-1846.40,10.627,0,-10000,00) newsvan = createVehicle(582,925.06,-1851.71,10.2375) setVehicleRotation(newsvan,0,0,36) setVehicleColor(newsvan,106,106,106,106) carla = createPed(141,921.89,-1849.92,10.121) carla1 = createPed(245,910.39,-1857.66,9.75) setElementRotation(carla,0,0,353.53) setElementRotation(carla1,0,0,263) triggerClientEvent(root,"flood2",root) setRainLevel(1) setTimer(anims2,1000,1) setTimer(byebeach,8000,1) end function byebeach() destroyElement(carla1) destroyElement(carla) destroyElement(newsvan) triggerClientEvent(root,"flood3",root) setCameraMatrix(root,815,-1284.33,7.33,-40000,0,00) setTimer(anims1,1000,1) setTimer(bye,4000,1) setTimer(back,6000,1) end function back() triggerClientEvent(root,"flood4",root) resetRainLevel() fadeCamera(root,false,1 ) setTimer(fadeCamera,1000,1,root,true,5 ) for index, player in pairs(getElementsByType("player")) do setCameraTarget(player, player) local x, y, z = getElementPosition ( player ) setElementPosition ( player, x , y , z + 1.5) setElementFrozen(player,false) end end
-
You never defined 'source' at 'back' function, that's why. function showintro1() fadeCamera(root,false,1 ) setTimer(fadeCamera,1000,1,root,true,5 ) setTimer(start,1500,1) end addEventHandler ( "onResourceStart", getResourceRootElement ( getThisResource () ),showintro1) function start() for index, player in pairs(getElementsByType("player")) do setElementFrozen(player, true) end setCameraMatrix(root,815,-1284.33,7.33,-40000,0,00) anchor1 = createPed(57,808.0,-1285.66,6.27) anchor2 = createPed(219,808.0,-1284.11,6.27) anchor3 = createPed(187,808.0,-1282.50,6.27) setPedFrozen(anchor1,true) setPedFrozen(anchor2,true) setPedFrozen(anchor3,true) setElementRotation(anchor1,0,0,270) setElementRotation(anchor2,0,0,270) setElementRotation(anchor3,0,0,270) setTimer(anims,1000,1) end function anims() setPedAnimation( anchor1,"INT_OFFICE", "OFF_Sit_Idle_Loop",5000,false,false,false) setPedAnimation( anchor2,"INT_OFFICE", "OFF_Sit_Idle_Loop",5000,false,false,false) setPedAnimation( anchor3,"INT_OFFICE", "OFF_Sit_Idle_Loop",5000,false,false,false) setTimer(floodmess,3000,1) end function floodmess() setPedAnimation( anchor2 ) setPedAnimation( anchor2,"GANGS", "prtial_gngtlkC",5000,false,false,false) triggerClientEvent(root,"flood1",root) setTimer(bye,4000,1) setTimer(beach,9000,1) end function bye() setPedAnimation( anchor1,"GANGS", "hndshkda",5000,false,false,false) setPedAnimation( anchor2,"GANGS", "hndshkaa",5000,false,false,false) setPedAnimation( anchor3,"GANGS", "hndshkba",5000,false,false,false) setTimer(anims1,4000,1) end function anims1() setPedAnimation( anchor1,"INT_OFFICE", "OFF_Sit_Idle_Loop",5000,false,false,false) setPedAnimation( anchor2,"INT_OFFICE", "OFF_Sit_Idle_Loop",5000,false,false,false) setPedAnimation( anchor3,"INT_OFFICE", "OFF_Sit_Idle_Loop",5000,false,false,false) end function anims2() setPedAnimation(carla,"GANGS", "prtial_gngtlkC",5000,false,false,false) setPedAnimation(carla1,"ped", "WOMAN_runpanic",5000,true,true,false) setTimer(setPedAnimation,6000,1,carla) end function beach() setCameraMatrix(root,923.71,-1846.40,10.627,0,-10000,00) newsvan = createVehicle(582,925.06,-1851.71,10.2375) setVehicleRotation(newsvan,0,0,36) setVehicleColor(newsvan,106,106,106,106) carla = createPed(141,921.89,-1849.92,10.121) carla1 = createPed(245,910.39,-1857.66,9.75) setElementRotation(carla,0,0,353.53) setElementRotation(carla1,0,0,263) triggerClientEvent(root,"flood2",root) setRainLevel(1) setTimer(anims2,1000,1) setTimer(byebeach,8000,1) end function byebeach() destroyElement(carla1) destroyElement(carla) destroyElement(newsvan) triggerClientEvent(root,"flood3",root) setCameraMatrix(root,815,-1284.33,7.33,-40000,0,00) setTimer(anims1,1000,1) setTimer(bye,4000,1) setTimer(back,6000,1) end function back() triggerClientEvent(root,"flood4",root) resetRainLevel() fadeCamera(root,false,1 ) setTimer(fadeCamera,1000,1,root,true,5 ) setCameraTarget(root,root) for index, player in pairs(getElementsByType("player")) do setElementFrozen(player,false) local x, y , z = getElementPosition ( player ) setElementPosition ( player, x , y , z + 1) end end
-
Try something like this: function showintro1() fadeCamera(root,false,1 ) setTimer(fadeCamera,1000,1,root,true,5 ) setTimer(start,1500,1) end addEventHandler ( "onResourceStart", getResourceRootElement ( getThisResource () ),showintro1) function start() for index, player in pairs(getElementsByType("player")) do setElementFrozen(player, true) end setCameraMatrix(root,815,-1284.33,7.33,-40000,0,00) anchor1 = createPed(57,808.0,-1285.66,6.27) anchor2 = createPed(219,808.0,-1284.11,6.27) anchor3 = createPed(187,808.0,-1282.50,6.27) setPedFrozen(anchor1,true) setPedFrozen(anchor2,true) setPedFrozen(anchor3,true) setElementRotation(anchor1,0,0,270) setElementRotation(anchor2,0,0,270) setElementRotation(anchor3,0,0,270) setTimer(anims,1000,1) end function anims() setPedAnimation( anchor1,"INT_OFFICE", "OFF_Sit_Idle_Loop",5000,false,false,false) setPedAnimation( anchor2,"INT_OFFICE", "OFF_Sit_Idle_Loop",5000,false,false,false) setPedAnimation( anchor3,"INT_OFFICE", "OFF_Sit_Idle_Loop",5000,false,false,false) setTimer(floodmess,3000,1) end function floodmess() setPedAnimation( anchor2 ) setPedAnimation( anchor2,"GANGS", "prtial_gngtlkC",5000,false,false,false) triggerClientEvent(root,"flood1",root) setTimer(bye,4000,1) setTimer(beach,9000,1) end function bye() setPedAnimation( anchor1,"GANGS", "hndshkda",5000,false,false,false) setPedAnimation( anchor2,"GANGS", "hndshkaa",5000,false,false,false) setPedAnimation( anchor3,"GANGS", "hndshkba",5000,false,false,false) setTimer(anims1,4000,1) end function anims1() setPedAnimation( anchor1,"INT_OFFICE", "OFF_Sit_Idle_Loop",5000,false,false,false) setPedAnimation( anchor2,"INT_OFFICE", "OFF_Sit_Idle_Loop",5000,false,false,false) setPedAnimation( anchor3,"INT_OFFICE", "OFF_Sit_Idle_Loop",5000,false,false,false) end function anims2() setPedAnimation(carla,"GANGS", "prtial_gngtlkC",5000,false,false,false) setPedAnimation(carla1,"ped", "WOMAN_runpanic",5000,true,true,false) setTimer(setPedAnimation,6000,1,carla) end function beach() setCameraMatrix(root,923.71,-1846.40,10.627,0,-10000,00) newsvan = createVehicle(582,925.06,-1851.71,10.2375) setVehicleRotation(newsvan,0,0,36) setVehicleColor(newsvan,106,106,106,106) carla = createPed(141,921.89,-1849.92,10.121) carla1 = createPed(245,910.39,-1857.66,9.75) setElementRotation(carla,0,0,353.53) setElementRotation(carla1,0,0,263) triggerClientEvent(root,"flood2",root) setRainLevel(1) setTimer(anims2,1000,1) setTimer(byebeach,8000,1) end function byebeach() destroyElement(carla1) destroyElement(carla) destroyElement(newsvan) triggerClientEvent(root,"flood3",root) setCameraMatrix(root,815,-1284.33,7.33,-40000,0,00) setTimer(anims1,1000,1) setTimer(bye,4000,1) setTimer(back,6000,1) end function back(source) triggerClientEvent(root,"flood4",root) resetRainLevel() fadeCamera(root,false,1 ) setTimer(fadeCamera,1000,1,root,true,5 ) setCameraTarget(root,source) setElementFrozen(source,false) end
-
I agree, I have never seen one like that before, good job.
-
Car mod: https://community.multitheftauto.com/ind ... ls&id=2875
-
Ayuda para resolver un pequeño bug en mi script
Castillo replied to RottenFlesh's topic in Scripting
De nada. -
Your welcome.
-
Try with this (server side): addEventHandler("onResourceStart",resourceRoot, function () for index, vehicle in pairs(getElementsByType("vehicle")) do setVehicleFuelTankExplodable(vehicle, true) end end)
-
I live in the present, not the future.
