12.12.2009, 17:22
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);
}
}
}
}