29.07.2011, 12:22
AndreT i don't understand you.I try to do with switch but i do wrong,maybe you can to that with that script who i give:
Код:
if(model == 534)//REMINGTON { if(GetPlayerMoneyA(playerid) < 9000) { SendClientMessage(playerid, COLOR_RED, "Enought money"); SetVehicleToRespawn(vehicleid); return 1; } if(PlayerData[playerid][pcar] == -1) { SendClientMessage(playerid, COLOR_GREEN, "You buy REMINGTON=1"); } else { SendClientMessage(playerid, COLOR_GREEN, "You buy REMINGTON=2"); return 1; } if(model == 533)//FELTZER { if(GetPlayerMoneyA(playerid) < 7000) { SendClientMessage(playerid, COLOR_RED, "Enought money"); SetVehicleToRespawn(vehicleid); return 1; } if(PlayerData[playerid][pcar] == -1) { SendClientMessage(playerid, COLOR_GREEN, "You buy FELTZER=1"); } else { SendClientMessage(playerid, COLOR_GREEN, "You buy FELTZER=2"); return 1; }