Jump to content

Esto funcionaria?


Plate

Recommended Posts

Posted
function getTheData() 
if getElementData(localPlayer, "Sniper Rifle") then 
local row1 = guiGridListAddRow(itemGrid) 
guiGridListSetItemText(itemGrid, row1, 1, "Sniper Rifle", false, false) 
elseif getElementData(localPlayer, "M4") then 
local row2 = guiGridListAddRow(itemGrid) 
guiGridListSetItemText(itemGrid, row2, 1, "M4", false, false) 
elseif getElementData(localPlayer, "MP5") then 
local row3 = guiGridListAddRow(itemGrid) 
guiGridListSetItemText(itemGrid, row3, 1, "MP5", false, false) 
elseif getElementData(localPlayer, "Rocket Launcher") then 
local row4 = guiGridListAddRow(itemGrid) 
guiGridListSetItemText(itemGrid, row4, 1, "Rocket Launcher", false, false) 
end 
end 

Visita Full GameZ DayZ Mod

Server IP: mtasa://158.69.125.144:29015

Posted

"localPlayer" es una variable del MTA, no hace falta definirla.

@Plate: Porque no lo probas y listo?

San Andreas Utopia RPG (SAUR) Owner & Developer.

560x95_FFFFFF_FF9900_000000_000000.png

Education is the most powerful weapon which you can use to change the world.

Posted
Probá onVehicleDamage...

WTF

Ya lo probe y no anda

Visita Full GameZ DayZ Mod

Server IP: mtasa://158.69.125.144:29015

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...