Jump to content
  • 0

KEY question


bogdan.trial

Question

Salut,

As dori sa imi spui cum pot sa schimb de pe key_submision(butonu 2) pe butonu 1 sau 3.

[pawn]public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)

{

if(PRESSED(KEY_SUBMISSION))

      {

      new vehicleid = GetPlayerVehicleID(playerid);

      if(IsPlayerInVehicle(playerid, vehicleid))

{

                if(!IsPlayerInAnyVehicle(playerid)) return SendClientMessage(playerid,COLOR_RED,"ERROR:{FFFFFF} You are not in a vehicle!");

  SetVehicleHealth(vehicleid,1000.0);

            RepairVehicle(GetPlayerVehicleID(playerid));

      SendClientMessage(playerid,COLOR_RED,"SYSTEM: {FFFFFF}Car fixed!");

  }

}

    return 1;

} [/pawn]

signature.php?bg=000000&text=FFFFFF&border=a0a0a0&ip=176.31.142.87&port=7777&bg_image=
Link to comment
Share on other sites

1 answer to this question

Recommended Posts

Guest
This topic is now closed to further replies.
×
×
  • 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. For more details you can also review our Terms of Use and Privacy Policy.