poi am facut jobu de fermier am pus prima data asa new cash=(random(70-20)+20); si acuma asa new cash=(random(150-700)+700); si primesc 78321378219 ma rog o suma mare oare nu e bine ceva aici? [pawn] if(FarmerVar[playerid] == 1) { if (IsPlayerInAnyVehicle(playerid)) { new carid = GetPlayerVehicleID(playerid); new cash=(random(150-700)+700); if(IsAHarvest(carid)) { switch(FarmerPickup[playerid][0]) { case 0: { SetPlayerCheckpoint(playerid, -205.9348,-1332.2749,10.4056, 5.0); if(JustStarted[playerid] != 0) { JustStarted[playerid] = 0; } } case 1: { SetPlayerCheckpoint(playerid, -376.7750,-1437.6874,25.7266, 5.0); if(JustStarted[playerid] != 0) { JustStarted[playerid] = 0; } } case 2: { if(JustStarted[playerid] != 1) { PlayerInfo[playerid][pPayCheck] += cash * 20; format(string, sizeof(string), "~w~Added to your paycheck~n~~g~$%d",cash); GameTextForPlayer(playerid, string, 5000, 1); } else { JustStarted[playerid] = 0; } SetPlayerCheckpoint(playerid, -548.5396,-1329.0653,19.6210, 5.0); } case 3: { SetPlayerCheckpoint(playerid, -376.7750,-1437.6874,25.7266, 5.0); if(JustStarted[playerid] != 0) { JustStarted[playerid] = 0; } } case 4: { if(JustStarted[playerid] != 1) { PlayerInfo[playerid][pPayCheck] += cash * 20; format(string, sizeof(string), "~w~Added to your paycheck~n~~g~$%d",cash); GameTextForPlayer(playerid, string, 5000, 1); } else { JustStarted[playerid] = 0; } SetPlayerCheckpoint(playerid, -370.9486,-1281.1089,29.8698, 5.0); } case 5: { SetPlayerCheckpoint(playerid, -376.7750,-1437.6874,25.7266, 5.0); if(JustStarted[playerid] != 0) { JustStarted[playerid] = 0; } } case 6: { if(JustStarted[playerid] != 1) { PlayerInfo[playerid][pPayCheck] += cash * 20; format(string, sizeof(string), "~w~Added to your paycheck~n~~g~$%d",cash); GameTextForPlayer(playerid, string, 5000, 1); } else { JustStarted[playerid] = 0; } SetPlayerCheckpoint(playerid, -258.3272,-1387.9211,10.1292, 5.0); } case 7: { SetPlayerCheckpoint(playerid, -376.7750,-1437.6874,25.7266, 5.0); if(JustStarted[playerid] != 0) { JustStarted[playerid] = 0; } } case 8: { if(JustStarted[playerid] != 1) { PlayerInfo[playerid][pPayCheck] += cash * 20; format(string, sizeof(string), "~w~Added to your paycheck~n~~g~$%d",cash); GameTextForPlayer(playerid, string, 5000, 1); } else { JustStarted[playerid] = 0; } SetPlayerCheckpoint(playerid, -288.8517,-1385.0117,9.8957, 5.0); } case 9: { SetPlayerCheckpoint(playerid, -376.7750,-1437.6874,25.7266, 5.0); if(JustStarted[playerid] != 0) { JustStarted[playerid] = 0; } } case 10: { if(JustStarted[playerid] != 1) { PlayerInfo[playerid][pPayCheck] += cash * 20; format(string, sizeof(string), "~w~Added to your paycheck~n~~g~$%d",cash); GameTextForPlayer(playerid, string, 5000, 1); } else { JustStarted[playerid] = 0; } SetPlayerCheckpoint(playerid, -283.1325,-1338.2822,7.4280, 5.0); } case 11: { SetPlayerCheckpoint(playerid, -376.7750,-1437.6874,25.7266, 5.0); if(JustStarted[playerid] != 0) { JustStarted[playerid] = 0; } } case 12: { if(JustStarted[playerid] != 1) { PlayerInfo[playerid][pPayCheck] += cash * 20; format(string, sizeof(string), "~w~Added to your paycheck~n~~g~$%d",cash); GameTextForPlayer(playerid, string, 5000, 1); } else { JustStarted[playerid] = 0; } SetPlayerCheckpoint(playerid, -224.5992,-1509.1902,7.4473, 5.0); } case 13: { SetPlayerCheckpoint(playerid, -376.7750,-1437.6874,25.7266, 5.0); if(JustStarted[playerid] != 0) { JustStarted[playerid] = 0; } } case 14: { if(JustStarted[playerid] != 1) { PlayerInfo[playerid][pPayCheck] += cash * 20; format(string, sizeof(string), "~w~Added to your paycheck~n~~g~$%d",cash); GameTextForPlayer(playerid, string, 5000, 1); } else { JustStarted[playerid] = 0; } SetPlayerCheckpoint(playerid, -247.2859,-1528.8744,6.5904, 5.0); } case 15: { SetPlayerCheckpoint(playerid, -376.7750,-1437.6874,25.7266, 5.0); if(JustStarted[playerid] != 0) { JustStarted[playerid] = 0; } } case 16: { if(JustStarted[playerid] != 1) { PlayerInfo[playerid][pPayCheck] += cash * 20; format(string, sizeof(string), "~w~Added to your paycheck~n~~g~$%d",cash); GameTextForPlayer(playerid, string, 5000, 1); } else { JustStarted[playerid] = 0; } SetPlayerCheckpoint(playerid, -283.9610,-1549.7180,6.4975, 5.0); } case 17: { SetPlayerCheckpoint(playerid, -376.7750,-1437.6874,25.7266, 5.0); if(JustStarted[playerid] != 0) { JustStarted[playerid] = 0; } } case 18: { if(JustStarted[playerid] != 1) { PlayerInfo[playerid][pPayCheck] += cash * 20; format(string, sizeof(string), "~w~Added to your paycheck~n~~g~$%d",cash); GameTextForPlayer(playerid, string, 5000, 1); } else { JustStarted[playerid] = 0; } SetPlayerCheckpoint(playerid, -431.6107,-1334.0961,28.6561, 5.0); } case 19: { SetPlayerCheckpoint(playerid, -376.7750,-1437.6874,25.7266, 5.0); if(JustStarted[playerid] != 0) { JustStarted[playerid] = 0; } } case 20: { if(JustStarted[playerid] != 1) { PlayerInfo[playerid][pPayCheck] += cash * 20; format(string, sizeof(string), "~w~Added to your paycheck~n~~g~$%d",cash); GameTextForPlayer(playerid, string, 5000, 1); } else { JustStarted[playerid] = 0; } SetPlayerCheckpoint(playerid, -476.4104,-1391.6769,20.4733, 5.0); } case 21: { SetPlayerCheckpoint(playerid, -376.7750,-1437.6874,25.7266, 5.0); if(JustStarted[playerid] != 0) { JustStarted[playerid] = 0; } } case 22: { DisablePlayerCheckpoint(playerid); TogglePlayerControllable(playerid, 0); GameTextForPlayer(playerid, "~w~Use /exit to leave a harvest~n~~r~Bonus 100$ in cash", 5000, 1); SafeGivePlayerMoney(playerid, 100); } } FarmerPickup[playerid][0]++; PlayerPlaySound(playerid, 1056, 0.0, 0.0, 0.0); } } return 1; }[/pawn]