SphereCommunity
Help with statf_onhorse - Printable Version

+- SphereCommunity (https://forum.spherecommunity.net)
+-- Forum: Sphere 0.56d (/Forum-Sphere-0-56d)
+--- Forum: Script Help (/Forum-Script-Help)
+--- Thread: Help with statf_onhorse (/Thread-Help-with-statf-onhorse)



Help with statf_onhorse - daedelus - 10-25-2012 09:07 AM

When I say "acepto" sends me directly to the dueling are, but if i tell two times checks the flag statf_onhorse. I need to check the first time I say "acepto".

Here is the script:

Code:
ON=*acepto*
if <ACT.flags> & statf_onhorse
SAY @00038 Bajate de la montura para poder pelear!.
ELSE
SAY @00038 Preparate para Morir!!
KARMA -10000
FLAGS=<flags>-statf_invul
SRC.GO 943,637,-90,3
GO 937,637,-90,3
ENDIF

Thanks


RE: Help with statf_onhorse - Mordaunt - 10-25-2012 09:19 AM

Code:
ON=*acepto*
    if (<src.flags> & statf_onhorse)
        SAY @00038 Bajate de la montura para poder pelear!
        return 1
    ELSE
        SAY @00038 Preparate para Morir!!
        KARMA -10000
        FLAGS=(<flags>& ~statf_invul)
        SRC.GO 943,637,-90,3
        GO 937,637,-90,3
    ENDIF



RE: Help with statf_onhorse - daedelus - 10-25-2012 10:18 PM

OMG, I'm so stupid damn.

Thanks man!