Végülis csak át kell rakni a parancsot egy gombra, mondjuk az N betűre.. T-betűre biztos hogy nem fogod rakni, mert az egy alap gomb, nincs definiálva + még azzal is írsz.
if(newkeys & KEY_NO) {
if(IsPlayerInVehicle(playerid, kitt[0]) && GetPlayerState(playerid) == PLAYER_STATE_DRIVER)
{
if(GetVehicleModel(GetPlayerVehicleID(playerid)) == 603)
{
if(Attackmod[playerid] == 0)
{
AddVehicleComponent(GetPlayerVehicleID(playerid), 1010); // Nitro
AddVehicleComponent(GetPlayerVehicleID(playerid), 1087); // Hydraulics
AddVehicleComponent(GetPlayerVehicleID(playerid), 1001); // Spoiler
AddVehicleComponent(GetPlayerVehicleID(playerid), 1006); // Roof Scoop
AddVehicleComponent(GetPlayerVehicleID(playerid), 1019); // Exhaust
AddVehicleComponent(GetPlayerVehicleID(playerid), 1007); // Left Side Skirt
AddVehicleComponent(GetPlayerVehicleID(playerid), 1017); // Right Side Skirt
AddVehicleComponent(GetPlayerVehicleID(playerid), 1074); // Mega Wheels
PlayerPlaySound(playerid,1133,0.0,0.0,0.0);
SendClientMessage(playerid,COLOR_GREEN,\"You have activated the Attack Mode!\");
Attackmod[playerid] = 1;
}
else if(Attackmod[playerid] == 1)
{
RemoveVehicleComponent(GetPlayerVehicleID(playerid),1010); // Removes Nitro
RemoveVehicleComponent(GetPlayerVehicleID(playerid), 1087); // Removes Hydraulics
RemoveVehicleComponent(GetPlayerVehicleID(playerid), 1001); // Removes Spoiler
RemoveVehicleComponent(GetPlayerVehicleID(playerid), 1006); // Removes Roof Scoop
RemoveVehicleComponent(GetPlayerVehicleID(playerid), 1019); // Removes Exhaust
RemoveVehicleComponent(GetPlayerVehicleID(playerid), 1007); // Removes Left Side Skirt
RemoveVehicleComponent(GetPlayerVehicleID(playerid), 1017); // Removes Right Side Skirt
RemoveVehicleComponent(GetPlayerVehicleID(playerid), 1074); // Removes Mega Wheels
SendClientMessage(playerid,COLOR_GREEN,\"You have deactivated the Attack Mode!\");
Attackmod[playerid] = 0;
return 1;
}
}
else
{
SendClientMessage(playerid, COLOR_LIGHTRED, \"You can\'t use attack mode while your in 4x4 mode!\");
}
}
}