-
Posts
4,961 -
Joined
-
Last visited
Everything posted by Jaysds1
-
Wait, Is the vehicle created with the map or did you spawned it?
-
ok, I'll edit this and tell you what happened. EDIT: Finished, here's another MTADiag: http://pastebin.com/zNj3StwR
-
What do you want me to do with this? I am so confused when I'm finished downloading it.
-
Can you download and run this MTADiag then post the generated PasteBin Url.
-
Ya, but it seems like he wants it for when the vehicle just explode... Not sure
-
I've edited it, try it again
-
Lol, isn't there another topic about this: viewtopic.php?f=91&t=43231
-
try this: jobMarker = createMarker ( 2055.4, -1775.08, 12.6, "cylinder" ,2, 249, 19, 75, 190 ) teamCriminal = createTeam( "Criminal", 249, 19, 75) addEventHandler ( "onMarkerHit", jobMarker,function( Player ) setElementModel ( Player, 115 ) setPlayerTeam ( Player, getTeamFromName("Criminal")) outputChatBox ( "You are now Robber.", Player ) firstMarker = createMarker ( 2144.3,-1663.7,14.6,"cylinder",2, 249, 19, 75, 190 ) addEventHandler ( "onMarkerHit", firstMarker, onmarker1 ) end) function onmarker1 ( thePlayer ) if(isElement(secondMarker))then destroyElement ( secondMarker ) end givePlayerMoney ( thePlayer, 856 ) secondMarker = createMarker(2146.3,-1470.4,25.1,"cylinder",2, 249, 19, 75, 190 ) addEventHandler ( "onMarkerHit", secondMarker, onmarker2 ) end function onmarker2 ( hitPlayer ) destroyElement ( thirdMarker ) givePlayerMoney ( hitPlayer, 856 ) end
-
try this: Client-side GUIEditor_Window = {} GUIEditor_Button = {} GUIEditor_Label = {} GUIEditor_Edit = {} GUIEditor_Grid = {} GUIEditor_Window[1] = guiCreateWindow(0.4925,0.3317,0.51,0.6717,"GUI Admin",true) guiWindowSetSizable(GUIEditor_Window[1],false) GUIEditor_Grid[1] = guiCreateGridList(11,87,167,307,false,GUIEditor_Window[1]) guiGridListSetSelectionMode(GUIEditor_Grid[1],2) column = guiGridListAddColumn(GUIEditor_Grid[1],"Players",0.7) GUIEditor_Edit[1] = guiCreateEdit(11,46,167,34,"",false,GUIEditor_Window[1]) GUIEditor_Button[1] = guiCreateButton(191,46,103,38,"Mute",false,GUIEditor_Window[1]) GUIEditor_Button[2] = guiCreateButton(191,96,103,38,"Ban",false,GUIEditor_Window[1]) GUIEditor_Button[3] = guiCreateButton(191,146,103,38,"Kick",false,GUIEditor_Window[1]) GUIEditor_Button[4] = guiCreateButton(191,200,103,38,"Dimension",false,GUIEditor_Window[1]) GUIEditor_Button[5] = guiCreateButton(191,259,103,38,"Warp to Player",false,GUIEditor_Window[1]) GUIEditor_Label[1] = guiCreateLabel(190,345,213,51,"Admin Panel By ElMota",false,GUIEditor_Window[1]) guiSetFont(GUIEditor_Label[1],"clear-normal") GUIEditor_Button[6] = guiCreateButton(313,46,86,38,"Resources",false,GUIEditor_Window[1]) GUIEditor_Window[2] = guiCreateWindow(0.35,0.2783,0.3388,0.4217,"Ban Times",true) guiWindowSetSizable(GUIEditor_Window[2],false) GUIEditor_Button[7] = guiCreateButton(32,39,189,40,"1 Year",false,GUIEditor_Window[2]) GUIEditor_Button[8] = guiCreateButton(32,87,189,40,"1 Month",false,GUIEditor_Window[2]) GUIEditor_Button[9] = guiCreateButton(32,138,189,38,"1 Day",false,GUIEditor_Window[2]) GUIEditor_Button[10] = guiCreateButton(172,216,90,28,"Cancelar",false,GUIEditor_Window[2]) GUIEditor_Window[3] = guiCreateWindow(0.2988,0.2867,0.4737,0.4267,"Dimension GUI",true) GUIEditor_Label[2] = guiCreateLabel(48,102,107,18,"Set Dimension ...",false,GUIEditor_Window[3]) GUIEditor_Edit[2] = guiCreateEdit(131,123,65,27,"",false,GUIEditor_Window[3]) GUIEditor_Button[11] = guiCreateButton(246,199,120,44,"Set Dimension",false,GUIEditor_Window[3]) GUIEditor_Button[12] = guiCreateButton(9,199,120,44,"Cancel",false,GUIEditor_Window[3]) GUIEditor_Window[4] = guiCreateWindow(0.3613,0.13,0.3025,0.845,"GUI Resources",true) guiWindowSetSizable(GUIEditor_Window[4],false) GUIEditor_Grid[2] = guiCreateGridList(21,71,201,358,false,GUIEditor_Window[4]) guiGridListSetSelectionMode(GUIEditor_Grid[2],2) guiGridListAddColumn(GUIEditor_Grid[2],"resources :",0.2) GUIEditor_Edit[3] = guiCreateEdit(23,32,197,35,"",false,GUIEditor_Window[4]) GUIEditor_Button[13] = guiCreateButton(141,453,92,37,"Start Resource",false,GUIEditor_Window[4]) GUIEditor_Button[14] = guiCreateButton(10,453,92,37,"Cancel",false,GUIEditor_Window[4]) guiSetVisible(GUIEditor_Window[1],false) guiSetVisible(GUIEditor_Window[2],false) guiSetVisible(GUIEditor_Window[3],false) guiSetVisible(GUIEditor_Window[4],false) showCursor(false) function GUIOpen() guiSetVisible(GUIEditor_Window[1], not guiGetVisible(GUIEditor_Window[1])) showCursor(guiGetVisible(GUIEditor_Window[1])) end addEvent("onVisibleAdmin", true) addEventHandler("onVisibleAdmin", getLocalPlayer(), GUIOpen) function clientsideResourceStart () guiGridListClear(GUIEditor_Grid[1]) if (guiGridListClear) then for id, playeritem in ipairs(getElementsByType("player")) do local row = guiGridListAddRow ( GUIEditor_Grid[1] ) guiGridListSetItemText ( GUIEditor_Grid[1], row, column, getPlayerName ( playeritem ), false, false ) end end end addEventHandler ( "onClientResourceStart", getResourceRootElement(getThisResource()), clientsideResourceStart ) addEventHandler ( "onClientPlayerJoin", getLocalPlayer(), clientsideResourceStart ) addEventHandler ( "onClientPlayerQuit", getLocalPlayer(), clientsideResourceStart ) addEventHandler ( "onClientPlayerChangeNick", getLocalPlayer(), clientsideResourceStart ) addEventHandler("onClientGUIClick", root,function() if source == GUIEditor_Button[2] then guiSetVisible(GUIEditor_Window[2],true) elseif source == GUIEditor_Button[10] then guiSetVisible(GUIEditor_Window[2],false) elseif source == GUIEditor_Button[4] then guiSetVisible(GUIEditor_Window[3],true) elseif source == GUIEditor_Button[12] then guiSetVisible(GUIEditor_Window[3],false) elseif source == GUIEditor_Button[1] then local row, col = guiGridListGetSelectedItem ( GUIEditor_Grid[1] ) if ( row and col and row ~= -1 and col ~= -1 ) then local playerName = guiGridListGetItemText ( GUIEditor_Grid[1], row, col ) triggerServerEvent("mute", localPlayer, playerName ) end end end) addEventHandler ( "onClientGUIChanged", GUIEditor_Edit[1],function() for i=1,guiGridListGetRowCount(GRIDLIST) do if(guiGridListGetItemText(GRIDLIST,i,1)==string)then guiGridListSetSelectedItem(GRIDLIST,i,1) end end end) Sever-side function opGUI ( thePlayer ) local accName = getAccountName ( getPlayerAccount ( thePlayer ) ) if isObjectInACLGroup ( "user.".. accName, aclGetGroup ( "Admin" ) ) then triggerClientEvent ( thePlayer, "onVisibleAdmin", thePlayer ) end end addEventHandler ( "onPlayerJoin", root, function ( ) bindKey ( source, "p", "down", opGUI ) end ) addEventHandler ( "onResourceStart", resourceRoot, function ( ) for index, player in ipairs ( getElementsByType ( "player" ) ) do bindKey ( player, "p", "down", opGUI ) end end ) addEvent("mute", true) addEventHandler("mute", root,function( playerName ) local thePlayer = getPlayerFromName ( playerName ) if ( not thePlayer ) then outputChatBox ( "Este jugador no esta online.", source ) end if setPlayerMuted ( thePlayer, true ) then outputChatBox ( "Has Sido Muteado por un Admin", thePlayer ) end end)
-
From April 2005 to October 2006?
-
Either way, it still works but thanks for the error
-
ok, but the script still doesn't work, I'm still trying it in different ways, but no luck
-
Yup... You could come on my server and I'll show you(1.4 Server)
-
It's ok Does the script work now?
-
Can you please do the following:
-
you could still post your problems that related to the same thing there.
-
If you own a server you could only script the codes, but you could enable these: hovercars - no known equivalent PC cheat, and allows cars to drive on water. aircars - equivalent of the RIPAZHA cheat, and allows cars to fly. extrabunny - equivalent of the CJPHONEHOME cheat, and allows you to bunny hop on bicycles much higher. extrajump - equivalent of the KANGAROO cheat, and allows you to jump on foot much higher. by using this function: setWorldSpecialPropertyEnabled() --Client-side only
-
I mean: viewtopic.php?f=91&t=43201
-
All of them returns, There's no error in the script I just don't know why the event doesn't trigger, I've tried copying and pasting the first onMarkerEvent and changed the marker that it's going to trigger for and nothing... Everything looks good but the event isn't being triggered.
-
try this: addEventHandler("onVehicleExplode",root,function() toggleVehicleRespawn(source, true) setVehicleRespawnDelay(source, 10000) -- Respawn it in 10 seconds end)
-
1. Don't post this here, it's only for media like pictures of MTA or Videos 2. Most of those cheat codes work on GTA San Andreas but not on MTA(Unless the server makes them available)
-
Thanks, BTW, Have you been here before? Don't remember you from anywhere.
-
Try this: Client: GUIEditor_Window = {} GUIEditor_Button = {} GUIEditor_Label = {} GUIEditor_Edit = {} GUIEditor_Grid = {} GUIEditor_Window[1] = guiCreateWindow(0.4925,0.3317,0.51,0.6717,"GUI Admin",true) guiWindowSetSizable(GUIEditor_Window[1],false) GUIEditor_Grid[1] = guiCreateGridList(11,87,167,307,false,GUIEditor_Window[1]) guiGridListSetSelectionMode(GUIEditor_Grid[1],2) guiGridListAddColumn(GUIEditor_Grid[1],"Players",0.2) GUIEditor_Edit[1] = guiCreateEdit(11,46,167,34,"",false,GUIEditor_Window[1]) GUIEditor_Button[1] = guiCreateButton(191,46,103,38,"Mute",false,GUIEditor_Window[1]) GUIEditor_Button[2] = guiCreateButton(191,96,103,38,"Ban",false,GUIEditor_Window[1]) GUIEditor_Button[3] = guiCreateButton(191,146,103,38,"Kick",false,GUIEditor_Window[1]) GUIEditor_Button[4] = guiCreateButton(191,200,103,38,"Dimension",false,GUIEditor_Window[1]) GUIEditor_Button[5] = guiCreateButton(191,259,103,38,"Warp to Player",false,GUIEditor_Window[1]) GUIEditor_Label[1] = guiCreateLabel(190,345,213,51,"Admin Panel By ElMota",false,GUIEditor_Window[1]) guiSetFont(GUIEditor_Label[1],"clear-normal") GUIEditor_Button[6] = guiCreateButton(313,46,86,38,"Resources",false,GUIEditor_Window[1]) GUIEditor_Window[2] = guiCreateWindow(0.35,0.2783,0.3388,0.4217,"Ban Times",true) guiWindowSetSizable(GUIEditor_Window[2],false) GUIEditor_Button[7] = guiCreateButton(32,39,189,40,"1 Year",false,GUIEditor_Window[2]) GUIEditor_Button[8] = guiCreateButton(32,87,189,40,"1 Month",false,GUIEditor_Window[2]) GUIEditor_Button[9] = guiCreateButton(32,138,189,38,"1 Day",false,GUIEditor_Window[2]) GUIEditor_Button[10] = guiCreateButton(172,216,90,28,"Cancelar",false,GUIEditor_Window[2]) GUIEditor_Window[3] = guiCreateWindow(0.2988,0.2867,0.4737,0.4267,"Dimension GUI",true) GUIEditor_Label[2] = guiCreateLabel(48,102,107,18,"Set Dimension ...",false,GUIEditor_Window[3]) GUIEditor_Edit[2] = guiCreateEdit(131,123,65,27,"",false,GUIEditor_Window[3]) GUIEditor_Button[11] = guiCreateButton(246,199,120,44,"Set Dimension",false,GUIEditor_Window[3]) GUIEditor_Button[12] = guiCreateButton(9,199,120,44,"Cancel",false,GUIEditor_Window[3]) GUIEditor_Window[4] = guiCreateWindow(0.3613,0.13,0.3025,0.845,"GUI Resources",true) guiWindowSetSizable(GUIEditor_Window[4],false) GUIEditor_Grid[2] = guiCreateGridList(21,71,201,358,false,GUIEditor_Window[4]) guiGridListSetSelectionMode(GUIEditor_Grid[2],2) guiGridListAddColumn(GUIEditor_Grid[2],"resources :",0.2) GUIEditor_Edit[3] = guiCreateEdit(23,32,197,35,"",false,GUIEditor_Window[4]) GUIEditor_Button[13] = guiCreateButton(141,453,92,37,"Start Resource",false,GUIEditor_Window[4]) GUIEditor_Button[14] = guiCreateButton(10,453,92,37,"Cancel",false,GUIEditor_Window[4]) guiSetVisible(GUIEditor_Window[1],false) guiSetVisible(GUIEditor_Window[2],false) guiSetVisible(GUIEditor_Window[3],false) guiSetVisible(GUIEditor_Window[4],false) showCursor(false) addEvent("onVisibleAdmin", true) addEventHandler("onVisibleAdmin",root,function() guiSetVisible(GUIEditor_Window[1], not guiGetVisible(GUIEditor_Window[1])) guiSetVisible(GUIEditor_Window[2], not guiGetVisible(GUIEditor_Window[2])) guiSetVisible(GUIEditor_Window[3], not guiGetVisible(GUIEditor_Window[3])) guiSetVisible(GUIEditor_Window[4], not guiGetVisible(GUIEditor_Window[4])) showCursor(not isCursorShowing()) end) addEventHandler("onClientResourceStart",resourceRoot,function() for i,v in pairs(getElementsByType("player"))do guiGridListSetItemText(GUIEditor_Grid[1],guiGridListAddRow(GUIEditor_Grid[1]),1,getPlayerName(v),false,false) end end) addEventHandler("onClientGUIChanged",GUIEditor_Edit[1],function(element) for i=1,guiGridListGetRowCount(GUIEditor_Grid[1])do if(guiGridListGetItemText(GUIEditor_Grid[1],i,1)==guiGetText(source))then guiGridListSetItemSelected(GUIEditor_Grid[1],i,1) end end end) Server: function opGUI ( thePlayer ) local accName = getAccountName ( getPlayerAccount ( thePlayer ) ) if isObjectInACLGroup ( "user.".. accName, aclGetGroup ( "Admin" ) ) then triggerClientEvent ( thePlayer, "onVisibleAdmin", thePlayer ) end end addEventHandler ( "onPlayerJoin", root,function() bindKey ( source, "p", "down", opGUI ) end) addEventHandler ("onResourceStart", resourceRoot,function() for index,player in ipairs(getElementsByType("player" ))do bindKey ( player, "p", "down", opGUI ) end end)
