Jump to content

problema script


cuervox123

Recommended Posts

Hola,alguien sabe por que al seleccionar otro jugador la municion sale como 9999 o 1 no me dice exactamente la municion que tiene pero la mia si,aqui el codigo.

function verararmas() 
for index=0,12 do 
if guiGridListGetSelectedItem(gridlistap) ~= -1 then 
do 
local player = getPlayerFromName(guiGridListGetItemText(gridlistap, guiGridListGetSelectedItem(gridlistap), 1)) 
if player then 
guiSetText(LabelPlayer, getPlayerName(player)) 
local pla = guiGetText(LabelPlayer) 
local wea = guiGridListAddRow(armagrid) 
local id = getPedWeapon( player, index ) 
guiGridListSetItemText(armagrid, wea, ammo, getPedTotalAmmo ( player, index ), false, false) 
guiGridListSetItemText(armagrid, wea, weapon, getWeaponNameFromID ( id ), false, false) 
end 
end 
end 
end 
end 
addEventHandler("onClientGUIClick", quitararma, verararmas) 

Link to comment
  • Recently Browsing   0 members

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