Jump to content

Auto PutHelpmet


ThunderHDzXD
 Share

Recommended Posts

Cred ca ai gresit comunitatea dupa posturile tale, aici suntem pe B-Zone.

OnTopic: exista deja un astfel de mod cel mai probabil pe comunitatea de care apartii, este de ajuns un search pe google si il vei gasi. O zi buna!

Edited by TheTom
Link to comment
Share on other sites

10 minutes ago, TheTom said:

Cred ca ai gresit comunitatea dupa posturile tale, aici sunte pe B-Zone. Cred ca si comunitatea careia apartii are o astfel de sectiune, incearca acolo. O zi buna!

Toată lumea este binevenită să întrebe aici, deoarece suntem deschiși pentru toti.

 

@ThunderHDzXD Vă dau un exemplu de data aceasta, dar data viitoare trebuie să faci eseul înainte de a întreba, deoarece nu facem freelance.

 

{$CLEO}

0000:

repeat
    wait 0
until 0AFA:

0B63: samp unregister_client_command "autoputhelmet"
0B34: samp register_client_command "autoputhelmet" to_label @autoputhelmet

while true
    wait 0
    
    if 1@ == 1
    then
        if 00DF: actor $PLAYER_ACTOR driving
        then
            3@ = Actor.CurrentCar($PLAYER_ACTOR)
            if or
            3@ = id_nrg500
            3@ = id_fcr400
            3@ = id_pcj
            then
                say "/puthelme"
            end    
        end
    end
    
end

:autoputhelmet
if 1@ == 1
then
    1@ = 0
    printf "AutoPutHelpmet Off" 4000
else
    1@ = 1
    printf "AutoPutHelpmet ON" 4000
end
cmdret 

Trebuie sa cauti id-ul vehiculului unde ai voie sa pui casca si sa îl modificati în cod-ul meu de aici http://weedarr.wikidot.com/veh

 

Edited by CouldnoT
Link to comment
Share on other sites

@ThunderHDzXD am să vin cu o completare la ce a creat @CouldnoT deoarece s-ar putea să întâmpini probleme cu modul creat de el. Îți las mai jos un mic update asupra modului creat de către el.

 

 

{$CLEO}

0000:

repeat
    wait 0
until 0AFA:

0B63: samp unregister_client_command "autoputhelmet"
0B34: samp register_client_command "autoputhelmet" to_label @autoputhelmet

1@ = 1
4@ = 0

while true
wait 0

if 1@ == 1
then   
    if or
      	Actor.DrivingVehicleType($PLAYER_ACTOR id_nrg500)
      	Actor.DrivingVehicleType($PLAYER_ACTOR id_fcr900)
      	Actor.DrivingVehicleType($PLAYER_ACTOR id_pcj600)
    then
      	if 0AB0: 0x46
        then
            wait 1500
            4@ = 0
        end
          
        if 4@ == 0
        then
            say "/puthelmet"
            4@ = 1
        end
    end
end
    
END

:autoputhelmet
if 1@ == 1
then
    1@ = 0
    printf "AutoPutHelpmet Off" 4000
else
    1@ = 1
    printf "AutoPutHelpmet ON" 4000
end
cmdret 

 

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
 Share

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.