Tomas Posted February 6, 2014 Share Posted February 6, 2014 Oli c: Hoy estaba haciendo un Respawn en Hospitales para un server, pero tiene un problema Al respawnear pierden las armas, nose que hago mal function guardararmas ( ) if ( not playerWeapons [ source ] ) then playerWeapons [ source ] = { } end for slot = 0, 12 do local weapon = getPedWeapon ( source, slot ) if ( weapon > 0 ) then local ammo = getPedTotalAmmo ( source, slot ) if ( ammo > 0 ) then playerWeapons [ source ] [ weapon ] = ammo end end end end ) addEventHandler ("onPlayerWasted",root, guardararmas) Link to comment
Recommended Posts