Plate
Members-
Posts
938 -
Joined
-
Last visited
Everything posted by Plate
-
Hola tengo una duda si se puede hacer esto function destroyThePickup(thePickup) if (isElement(thePickup)) then if (source == thePickup) then setTimer(destroyElement, 1000, 1, thePickup) end end end addEventHandler("onPickupHit", getRootElement(), destroyThePickup)
-
Si estaba solucionado ya jaja
-
No revivas topics viejos Phantom
-
No salio por que simplemente ponias un getRootElement() y listo
-
es verdad sasuke ahora pruebo men function destroyMyPickup() if (isElement(pickup)) then if (source == pickup) then destroyElement(pickup) end end end addEventHandler("onPickupHit", pickup, destroyMyPickup)
-
no es tu nick aqui es tu cuenta
-
ya le agregue el tonumber ammo pero igual no lo levanta
-
Por que cuando paso por el pickup no pasa nada supongo que tengo que usar onPickupHit
-
function Test(thePlayer) local accName = getAccountName ( getPlayerAccount ( thePlayer ) ) if isObjectInACLGroup ("user."..accName, aclGetGroup ( "VIP" ) ) then triggerClientEvent(thePlayer, "Panel", getRootElement()) else outputChatBox ("Acesso Negado", thePlayer, 193, 13, 13) end end remplaza
-
por que escribis en ingles si esto es secion española? :FACEPALM:
-
Server function showPanel(thePlayer) local accName = getAccountName ( getPlayerAccount ( thePlayer ) ) -- get his account name if isObjectInACLGroup ("user."..accName, aclGetGroup ( "VIP" ) ) then triggerClientEvent(thePlayer, "Panel", getRootElement()) else outputChatBox ("Acesso Negado", thePlayer, 193, 13, 13) end end addCommandHandler("ELCOMANDO", showPanel) Client addEvent("Panel",true) function openWindow6() end addEventHandler("Panel", getRootElement(), openWindow6)
-
function dejar() local row, col = guiGridListGetSelectedItem ( itemGrid ) if ( row and col and row ~= -1 and col ~= -1 ) then local item = guiGridListGetItemText ( itemGrid, row, 1 ) local ammo = guiGridListGetItemText ( itemGrid, row, 2 ) local itemName = getWeaponIDFromName(item) local x, y ,z = getElementPosition(localPlayer) local pickup = createPickup(x + 5, y, z, 2, itemName, 3000, tonumber(ammo)) triggerServerEvent("onPlayerPullItem", localPlayer, itemName, ammo) end end addEventHandler("onClientGUIClick", tirar, dejar, false) pero tengo que usar onPickupHit no para que le de el arma con la ammo
-
Hola alguien me podria decir por que este script no anda tampoco me da error function dejar() local row, col = guiGridListGetSelectedItem ( itemGrid ) if ( row and col and row ~= -1 and col ~= -1 ) then local item = guiGridListGetItemText ( itemGrid, row, 1 ) local ammo = guiGridListGetItemText ( itemGrid, row, 2 ) local x, y ,z = getElementPosition(localPlayer) local pickup = createPickup(x + 5, y, z, 2, item, 3000, ammo) end end addEventHandler("onClientGUIClick", tirar, dejar, false)
-
function teams ( ) miTeam = createTeam ( "elnombredelteamaqui", 0, 255, 255 ) end addEventHandler("onResourceStart", getResourceRootElement(getThisResource()), teams) function addthem ( player ) if ( not player ) then return end local accountName = getAccountName ( getPlayerAccount ( player ) ) if isObjectInACLGroup ( "user.".. accountName, aclGetGroup ( "AquiElGrupoACL" ) ) then setPlayerTeam ( player, miTeam ) end end function addtoteamtimer ( ) setTimer ( addthem, 1000, 1, source ) end addEventHandler ( "onPlayerLogin", root, addtoteamtimer ) addEventHandler ( "onPlayerSpawn", root, addtoteamtimer )
-
Yo diria que no por que es un simple play con otro resource
-
De hecho soy tan genial que el me escucha a mi. jjajajajajajajaj
-
Ya lo intente puse el module mta_mysql.dll adentro y me dice unable to find modules/mta_mysql.dll
-
Probe reinstalando el mta y ahora no me aparece la carpeta modules
-
ya lo puse en la carpeta de modules y lo agregue en mtaserver.conf <module src="mta_mysql.dll"/>
-
Pero cual es el error en el debugscript con mi script
