Üdv nem nagyon láttam a fórum-on nitró scrpt-et hat gondoltam csinalok egyet tudom nem nagy valami asszem 14 sor de kezdõknek jól jöhet
Annyit róla hogy ha megnyomod a bal klikket automatikusan nitrozik amint elengeded abbahagyja.
[pawn]#include <a_samp>
public OnFilterScriptInit() return print(\" *|NiKe Nitrous|*\"),1;
public OnPlayerExitVehicle(playerid,vehicleid) RemoveVehicleComponent(vehicleid, 1010);
public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
{
if(GetPlayerState(playerid) != PLAYER_STATE_DRIVER || !CheckNitro(GetPlayerVehicleID(playerid))) return false; else if ((((newkeys & (4)) == (4)) && ((oldkeys & (4)) != (4)))) AddVehicleComponent(GetPlayerVehicleID(playerid), 1010); else if ((((newkeys & (4)) != (4)) && ((oldkeys & (4)) == (4)))) RemoveVehicleComponent(GetPlayerVehicleID(playerid), 1010);
return 1;
}
CheckNitro(vid)
{
new NoNitro[] = { 522,481,441,468,448,446,513,521,510,430,520,476,463 }; // unknown
for(new e = 0; e < sizeof(NoNitro); e++) if(GetVehicleModel(vid) == NoNitro[e]) return false;
return true;
}[/pawn]