Soren Posted November 20, 2011 Share Posted November 20, 2011 Hola a todos necesito ayuda con un script que me paso mi buen amigo Benxamix2 pero al momento de intentar usarlo no sirvio aqui el script i hay algo mal fdiganme o si me pueden ayudar a hacer uno por que soy pesimo con lo que se trate de scripts ids = { "Marker (corona)(1)", "Marker (corona)(2)" } addEventHandler ( "onMarkerHit" ,getResourceRootElement ( ), function ( element ) if ids[getElementID ( source )] and getElementType ( element ) == "player" then giveWeapon ( element, 38, 500, true ) setPedDoingGangDriveBy ( element, true ) end end ) Porfavor ayuda Link to comment
Gothem Posted November 20, 2011 Share Posted November 20, 2011 Y que supuestamente tendría que hacer? Link to comment
12p Posted November 20, 2011 Share Posted November 20, 2011 TE DIJE QUE DIJERAS ESO! Se supone que al tocar un marcador especifico, le de un arma al jugador (en un DD) Link to comment
Gothem Posted November 20, 2011 Share Posted November 20, 2011 Y no tira algun error o warning con debugscript? Link to comment
Castillo Posted November 20, 2011 Share Posted November 20, 2011 ids = { ["Marker (corona)(1)"] = true, ["Marker (corona)(2)"] = true } addEventHandler ( "onMarkerHit" ,getResourceRootElement ( ), function ( element ) if ids[getElementID ( source )] and getElementType ( element ) == "player" then giveWeapon ( element, 38, 500, true ) setPedDoingGangDriveby ( element, true ) -- Es "by" not "By". end end ) Link to comment
Soren Posted November 20, 2011 Author Share Posted November 20, 2011 ids = { ["Marker (corona)(1)"] = true, ["Marker (corona)(2)"] = true } addEventHandler ( "onMarkerHit" ,getResourceRootElement ( ), function ( element ) if ids[getElementID ( source )] and getElementType ( element ) == "player" then giveWeapon ( element, 38, 500, true ) setPedDoingGangDriveby ( element, true ) -- Es "by" not "By". end end ) Cierto!! no lo habia visto!!! hahahahhaa gracias Link to comment
Recommended Posts