if (strcmp(\"/tuning\", cmdtext, true, 10) == 0){if(IsPlayerInAnyVehicle(playerid)){//if(GetPlayerVehicleID(playerid) == 417||425||430||446||447||448||449||452||453||454||460||461||462||463||468||469||472||473||476||481||484||487||488||493||497||509||510||511||512||513||519||520||521||522||523||539||548||553||563||577||581||586||592||593||595) return GameTextForPlayer(playerid,\"~r~You can\'t mod this vehicle!\", 2000, 5);ShowMenuForPlayer(Tuning_Menu, playerid);TogglePlayerControllable(playerid,0);} else {GameTextForPlayer(playerid,\"~r~You are not in a vehicle!\", 2000, 5);}return 1;}
if(GetPlayerVehicleID(playerid) ==123||GetPlayerVehicleID(playerid) == 321) // igy tovabb
new ok = 0;switch(GetPlayerVehicleID(playerid)){case 417, 425, 130, 446, 447, 448, 449, 452, 453, 454, 460, 461, 462, 463, 468: ok = 1;case 469, 472, 473, 476, 481, 484, 487, 488, 493, 497, 509, 510, 511, 512, 513: ok = 1;case 519..523, 539, 548, 553, 563, 577, 581, 586, 592, 593, 595: ok = 1;}if(!ok) return GameTextForPlayer(playerid,\"~r~You can\'t mod this vehicle!\", 2000, 5);
GetVehicleModel(GetPlayerVehicleID(playerid))
if(GetPlayerVehicleID(playerid) ==123||GetPlayerVehicleID(playerid) == 321) // igy tovabbBocs telorol irtam.
Én így csinálnám: new ok = 0;switch(GetPlayerVehicleID(playerid)){case 417, 425, 130, 446, 447, 448, 449, 452, 453, 454, 460, 461, 462, 463, 468: ok = 1;case 469, 472, 473, 476, 481, 484, 487, 488, 493, 497, 509, 510, 511, 512, 513: ok = 1;case 519..523, 539, 548, 553, 563, 577, 581, 586, 592, 593, 595: ok = 1;}if(!ok) return GameTextForPlayer(playerid,\"~r~You can\'t mod this vehicle!\", 2000, 5); [/quote]Kipróbátam, így se a menü nem jön be egyik járműnél se, se pedig a gametext nem jelenik meg. GetVehicleModel(GetPlayerVehicleID(playerid)) [/quote]Sajnos ez sem változtat semmin! :/Azért kösz a segítséget, srácok!
GetVehicleModel(GetPlayerVehicleID(playerid)) [/quote]Sajnos ez sem változtat semmin! :/Azért kösz a segítséget, srácok!
stock IsTuning(vehid){switch(GetVehicleModel(vehid)){case 417: return 0;case 425: return 0;//stb.}return 1;}if(IsTuning(GetPlayerVehicleID(playerid))) //tudja tuningolnielse //nem tudja tuningolni
if(strcmp(\"/tuning\", cmdtext, true, 10) == 0){if(IsPlayerInAnyVehicle(playerid)){if(IsTuning(GetPlayerVehicleID(playerid))){ ShowMenuForPlayer(Tuning_Menu,playerid); TogglePlayerControllable(playerid,0);}else GameTextForPlayer(playerid,\"~r~You can\'t mod this vehicle!\", 2000, 5);}else GameTextForPlayer(playerid,\"~r~You are not in a vehicle!\", 2000, 5);return 1;}