-
Posts
1,056 -
Joined
-
Last visited
Everything posted by Sasu
-
I think that He want that They can speak if or not they are frozen.
-
See the coordinates and change it.
-
If the alpha set 0 the marker will be invisible. Set 255 and will not be invisible.
-
Encerio? :nomedigas: ._. . Este tigreblanco es una persona inmadura que no sabe aceptar la realidad. Se la re cree cuando es un nob -.-
-
Este esta bueno: https://community.multitheftauto.com/in ... ls&id=1603
-
Crea un ped con createPed, warpealo dentro del vehiculo con warpPedIntoVehicle y luego tomas el control de él con toggleControl
-
Argumentos, eventos y funciones. Yo me guio por eso.
-
Pasa por este post: forum.multitheftauto.com/viewtopic.php?f=145&t=55492&start=15#p536696
-
Estas seguro que en el row dice 'Vida' no? Igual proba asi: function useItemHealth() if source == Usar then local row, col = guiGridListGetSelectedItem ( itemGrid ) if ( row and col and row ~= -1 and col ~= -1 ) then local itemH = guiGridListGetItemText ( itemGrid, row, 1 ) if (itemH == "Vida") then setElementHealth(localPlayer, 100) end end end end addEventHandler("onClientGUIClick", root, useItemHealth)
-
Escribiste mal el evento: addEventHandler("onClientGUIClcik", Usar, useItemHealth, false) Debe ser asi addEventHandler("onClientGUIClick", Usar, useItemHealth, false)
-
Te dice que algunas funciones seran eliminadas y debes usar las nuevas funciones: setPedFrozen -> setElementFrozen -- Una de las que tenes. Despues hay otras mas ( aparte de tu script ) como: setPlayerSkin -> setElementModel getVehicleNameFromID -> getVehicleNameFromModel -- Entre muchas otras. Revisa la wiki para mas informacion.
-
It's very fantastic. Very nice script !
-
Por que no te fijas la wiki y ya ._.?
-
Works perfect. Thank you very much!
-
I try, try, and try but I couldnt understand
-
How do I put it? I tried: local items = guiComboBoxAddItem( seleccionVehicleBox, table.sort(getVehicleNameFromModel(model))) But I got string.
-
Its works. Thanks. Do you know how I could put the names in alphabetic order?
-
I'm not begginer scripter -.-' . seleccionVehicleBox = guiCreateComboBox(7, 33, 219, 22, "Selecciona el vehiculo", false, tabPanelExtra1)
-
Why this dont work? vehicleIDS = { 602, 545, 496, 517, 401, 410, 518, 600, 527, 436, 589, 580, 419, 439, 533, 549, 526, 491, 474, 445, 467, 604, 426, 507, 547, 585, 405, 587, 409, 466, 550, 492, 566, 546, 540, 551, 421, 516, 529, 592, 553, 577, 488, 511, 497, 548, 563, 512, 476, 593, 447, 425, 519, 520, 460, 417, 469, 487, 513, 581, 510, 509, 522, 481, 461, 462, 448, 521, 468, 463, 586, 472, 473, 493, 595, 484, 430, 453, 452, 446, 454, 485, 552, 431, 438, 437, 574, 420, 525, 408, 416, 596, 433, 597, 427, 599, 490, 432, 528, 601, 407, 428, 544, 523, 470, 598, 499, 588, 609, 403, 498, 514, 524, 423, 532, 414, 578, 443, 486, 515, 406, 531, 573, 456, 455, 459, 543, 422, 583, 482, 478, 605, 554, 530, 418, 572, 582, 413, 440, 536, 575, 534, 567, 535, 576, 412, 402, 542, 603, 475, 449, 537, 538, 441, 464, 501, 465, 564, 568, 557, 424, 471, 504, 495, 457, 539, 483, 508, 571, 500, 444, 556, 429, 411, 541, 559, 415, 561, 480, 560, 562, 506, 565, 451, 434, 558, 494, 555, 502, 477, 503, 579, 400, 404, 489, 505, 479, 442, 458, 606, 607, 610, 590, 569, 611, 584, 608, 435, 450, 591, 594 } function vehiculos() for id, vehicles in ipairs ( vehicleIDS ) do local vehicleName = getVehicleNameFromModel(tonumber(vehicles)) local items = guiComboBoxAddItem( seleccionVehicleBox, vehicleName ) end end addEventHandler("onClientResourceStart", resourceRoot, vehiculos)
-
Client: function banearButton (text, adminBanner, timeBan, editText) if source == banButton then local timeBan = guiGetText(timeEdit) local selected = guiGridListGetSelectedItem( listaPlayers ) local text = guiGridListGetItemText( listaPlayers, selected, 1 ) local editText = guiGetText( reasonEdit ) local adminBanner = getPlayerName(getLocalPlayer()) if string.len ( editText ) > 0 then if string.len ( timeBan ) > 0 then triggerServerEvent("banHim", root, text, adminBanner, timeBan, editText) else outputChatBox("Escribe el tiempo de duracion",255,0,0,false) end else outputChatBox("Escribe la razon para banearlo.",255,0,0,false) end end end addEventHandler("onClientGUIClick", root, banearButton) Server: function banear(text, adminBanner, timeBan, editText) local thePlayer = getPlayerFromName(text) if not thePlayer then outputChatBox("Selecciona a un jugador de la lista", source,255,0,0,true) return end local adminPermisos = getPlayerFromName(adminBanner) if ( hasObjectPermissionTo ( adminPermisos, "function.banPlayer", true ) ) then if (timeBan) then theTimeBan = math.floor ( tonumber ( timeBan )*60 ) banPlayer(thePlayer, false, false, true, adminBanner, "Razon: "..editText.." [ "..timeBan.." Min ] ", theTimeBan) outputChatBox(text.." ha sido baneado por "..adminBanner..". Razon: "..editText.." ( "..timeBan.." Min )", getRootElement(), 255, 0, 0, false) end else outputChatBox("No tienes los permisos suficientes para banearlo", adminPermisos, 255, 0, 0, false) end end addEvent("banHim", true) addEventHandler("banHim", getRootElement(), banear)
-
Remplaza el outputchatbox asi: outputChatBox(getPlayerName(source).." #0099FFToco el agua y exploto!", 255, 255, 255, false)
-
Yes. And In server I convert with getPlayerFromName.
-
But I created an admin panel and Its ban from serial. And also I created a gridlist to make list ban. But I cant get the name.
-
Because you banned them using their serial/ip ? Yes. Why...?
-
Y si creas el evento en el server y lo triggeas. Porque hay funciones que desde client no funcionan para usarlo. Como el createVehicle que no te puedes subir si lo creas en client.
