Jump to content

Problema con setPlayerFightingStyle


Arsilex

Recommended Posts

Posted

Hola tengo un problema con esa funcion en mi script puse que se cree un ped y despues al clickearlo salga un gui tal tal pero cuando apretó sobre el boton del style no me cambia el style el boton es asi

(Es la fucion del boton cuando apreto eso se pasa a serverside con un triggerserver pero no me cambia de estilo (tampoco sale nada en el debug 3)

function Krt1( thePlayer ) 
    if ( thePlayer ) then  
        local status = setPlayerFightingStyle ( thePlayer, 6 ) 
        if ( not status ) then 
            outputConsole ( "No has logrado aprender nada.", thePlayer ) 
        end 
    end 
end 
addEvent( "onKrt", true ) 
addEventHandler( "onKrt", getRootElement(), Krt1) 

rsilex.png.0e6ad382b3fdc3cbe6390e3e847572c9.png
Posted

Mostra el codigo donde envias el evento: "onKrt".

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
function Krt1( thePlayer ) 
    if ( thePlayer ) then  
           setPlayerFightingStyle ( thePlayer, 6 ) 
        else 
            outputConsole ( "No has logrado aprender nada.", thePlayer ) 
        end 
    end 
end 
addEvent( "onKrt", true ) 
addEventHandler( "onKrt", getRootElement(), Krt1) 

Developer @ MYVAL

Posted

-- client side:

function Krt () 
  
triggerServerEvent ( "onKrt", localPlayer ) 
  
end 

-- server side:

function Krt1( ) 
        local status = setPlayerFightingStyle ( source, 6 ) 
        if ( not status ) then 
            outputConsole ( "No has logrado aprender nada.", source) 
    end 
end 
addEvent( "onKrt", true ) 
addEventHandler( "onKrt", getRootElement(), Krt1) 

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

Me olvide de algo, copia el server side de nuevo.

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

Funciona?

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

Ok, de nada.

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.

  • Recently Browsing   0 members

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