Guest User

sada

a guest
Apr 23rd, 2019
40
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.74 KB | None | 0 0
  1. CMD:getjob(playerid, params[])
  2. {
  3. new j;
  4. if(PlayerJob[playerid] !=0) return SCM(playerid, -1, "Ai deja un job");
  5. new string[256];
  6. if(IsPlayerInRangeOfPoint(playerid, 5.0, 1040.1050, 1303.6779, 10.9171))
  7. {
  8. format(string, sizeof(string), "Job-ul tau este acum %s. Foloseste /startwork pentru a incepe munca.", JOB_NAME1);
  9. PlayerJob[playerid] = 1;
  10. SCM(playerid, 0x0099FFFF, string);
  11. j = 1;
  12.  
  13. PlayerInfo[playerid][pJob] = j;
  14.  
  15. new str [128];
  16. mysql_format(SQL, str, 128, "UPDATE `accounts` SET `Job`='%d' WHERE `playerSQLID`='%d' LIMIT 1", PlayerInfo[playerid][pJob], PlayerInfo[playerid][pSQLID]);
  17. mysql_tquery(SQL, str, "", "");
  18. }
  19. else SCM(playerid, -1, "Nu esti in jurul unui job!");
  20.  
  21. return 1;
  22. }
Add Comment
Please, Sign In to add comment