if(PlayerInfo[playerid][pJob] == 0) {
for(new j = 1; j < MAX_JOBS; j++) {
if(IsPlayerInAnyVehicle(playerid)) return SendClientMessage(playerid, COLOR_WARNING, "Eroare: {FFFFFF} Nu poti aceasta comanda dintr-un vehicul!");
if(PlayerToPoint(3.0, playerid, JobInfo[j][jPosX], JobInfo[j][jPosY], JobInfo[j][jPosZ]) && j != 7) {
if(PlayerInfo[playerid][pLevel] < JobInfo[j][jLevel]) {
va_SendClientMessage(playerid, COLOR_LIGHTBLUE, "JobInfo: {FFFFFF} Ai nevoie de level %d pentru a lua jobul %s.", JobInfo[j][jLevel], JobInfo[j][jName]);
return true;
}
switch(j) {
case 7: SendClientMessage(playerid, COLOR_LIGHTBLUE, "JobInfo: {FFFFFF}Comenzile pentru acest job sunt: /repair si /refill !");
case 8: SendClientMessage(playerid, COLOR_LIGHTBLUE, "JobInfo: {FFFFFF}Comenzile pentru acest job sunt: /find");
case 11: SendClientMessage(playerid, COLOR_LIGHTBLUE, "JobInfo: {FFFFFF}Comenzile pentru acest job sunt: /fish");
}
if(j != 6) SendClientMessage(playerid, COLOR_LIGHTBLUE, "JobInfo: {FFFFFF}Pentru a incepe sa muncesti, ai la dispozitie comanda /work.");
PlayerInfo[playerid][pJob] = j;
new str [128];
mysql_format(SQL, str, 128, "UPDATE `users` SET `Job`='%d' WHERE `ID`='%d' LIMIT 1",PlayerInfo[playerid][pJob],PlayerInfo[playerid][pSQLID]);
mysql_tquery(SQL, str, "", "");
va_SendClientMessage(playerid, COLOR_LIGHTBLUE, "JobInfo: {FFFFFF} Felicitari! Noul tau job este acum %s.", JobInfo[j][jName]);
}
}
return true;
}