Advertisement
Guest User

Untitled

a guest
May 31st, 2019
170
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.68 KB | None | 0 0
  1. if(PlayerInfo[playerid][pJob] == 0) {
  2. for(new j = 1; j < MAX_JOBS; j++) {
  3. if(IsPlayerInAnyVehicle(playerid)) return SendClientMessage(playerid, COLOR_WARNING, "Eroare: {FFFFFF} Nu poti aceasta comanda dintr-un vehicul!");
  4. if(PlayerToPoint(3.0, playerid, JobInfo[j][jPosX], JobInfo[j][jPosY], JobInfo[j][jPosZ]) && j != 7) {
  5. if(PlayerInfo[playerid][pLevel] < JobInfo[j][jLevel]) {
  6. va_SendClientMessage(playerid, COLOR_LIGHTBLUE, "JobInfo: {FFFFFF} Ai nevoie de level %d pentru a lua jobul %s.", JobInfo[j][jLevel], JobInfo[j][jName]);
  7. return true;
  8. }
  9. }
  10.  
  11.  
  12. switch(j) {
  13. case 7: SendClientMessage(playerid, COLOR_LIGHTBLUE, "JobInfo: {FFFFFF}Comenzile pentru acest job sunt: /repair si /refill !");
  14. case 8: SendClientMessage(playerid, COLOR_LIGHTBLUE, "JobInfo: {FFFFFF}Comenzile pentru acest job sunt: /find");
  15. case 11: SendClientMessage(playerid, COLOR_LIGHTBLUE, "JobInfo: {FFFFFF}Comenzile pentru acest job sunt: /fish");
  16. }
  17. if(j != 6) SendClientMessage(playerid, COLOR_LIGHTBLUE, "JobInfo: {FFFFFF}Pentru a incepe sa muncesti, ai la dispozitie comanda /work.");
  18.  
  19. PlayerInfo[playerid][pJob] = j;
  20.  
  21. new str [128];
  22. mysql_format(SQL, str, 128, "UPDATE `users` SET `Job`='%d' WHERE `ID`='%d' LIMIT 1",PlayerInfo[playerid][pJob],PlayerInfo[playerid][pSQLID]);
  23. mysql_tquery(SQL, str, "", "");
  24.  
  25. va_SendClientMessage(playerid, COLOR_LIGHTBLUE, "JobInfo: {FFFFFF} Felicitari! Noul tau job este acum %s.", JobInfo[j][jName]);
  26. }
  27. return true;
  28. }
  29.  
  30.  
  31. //Asta e codu cand apas pe Y gen KEY_YES !
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement