Hey i need some help again..
#2

Yes
pawn Код:
public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
{
  new string[128];
  if(newkeys & 4 | newkeys & 2) // Fire Button or Crounch
  {
    if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER)
      {
          new model = GetVehicleModel(GetPlayerVehicleID(playerid));
          if(model == 432 || model == 520 || model == 447)
          //  Rhino         Hydra      Seaspawrrow
          {
                        new model_name[12];
                        if(model == 432) model_name = "Rhino";
                        else if(model == 520) model_name = "Hydra";
                        else if(model == 447) model_name = "Seasparrow";
            format(string,sizeof string,"Fire button pressed from vehicleid %i - %s ",model,model_name);
            SendClientMessage(playerid,0xFFFFFFFF,string);
          }
    }
  }
}
Reply


Messages In This Thread
Hey i need some help again.. - by DiddyBop - 12.12.2009, 14:55
Re: Hey i need some help again.. - by MJ! - 12.12.2009, 17:22
Re: Hey i need some help again.. - by DiddyBop - 12.12.2009, 22:32
Re: Hey i need some help again.. - by SiJ - 13.12.2009, 15:47
Re: Hey i need some help again.. - by LarzI - 13.12.2009, 17:45

Forum Jump:


Users browsing this thread: 1 Guest(s)