Jump to content
  • 1

Y SI N IN LOC DE GETJOB SI QUITJOB! HELP!


Nica_Mihai

Question

8 answers to this question

Recommended Posts

  • 0

Poti face asa, poti sterge comanda /getjob si /quitjob si sa pui asta https://pastebin.com/DiNpWJ6M la OnPlayerKeyStateChange

Sau

Poti lasa si /getjob cu /quitjob si sa te duci la OnPlayerKeyStateChange si sa pui asa

if(newkeys & KEY_YES) {  return cmd_ getjob(playerid,""); } 

si

if(newkeys & KEY_NO) { return cmd_quitjob(playerid,""); }

Link to comment
Share on other sites

  • 0

Daca nu merge cum a zis Alex, poti face asa.

      if(IsPlayerInRangeOfPoint(playerid, 2.0, 1365.8931,-1289.0779,13.5469)) // coordonate job
      {
         if(PlayerInfo[playerid][pJob] != 0) // demisioneaza la job
         {
            PlayerInfo[playerid][pJob] = 0;
            SCM(playerid, -1, "Ai demisionat de la job-ul tau.");
            mysql_format(SQL,str,sizeof(str),"UPDATE users SET `Job`='0' WHERE `name`='%s'",PlayerInfo[playerid][pNormalName]);
		    mysql_tquery(SQL,str,"","");
         }
         else
         {
            SCM(playerid, -1, "Jobul tau este acum X."); // nume job
            PlayerInfo[playerid][pJob] = idjob; // id job
            mysql_format(SQL,str,sizeof(str),"UPDATE users SET `Job`='idjob' WHERE `name`='%s'",PlayerInfo[playerid][pNormalName]);
            mysql_tquery(SQL,str,"","");
         }
      }

Demisionezi tot pe tasta Y, faci asa la fiecare job.

Daca ai un gamemode bigzone / cu job-urile principale, poftim mura-n gura: https://pastebin.com/G6UJd13t

#retras

Link to comment
Share on other sites

  • 0
Acum 7 ore, VLM a spus:

Daca nu merge cum a zis Alex, poti face asa.


      if(IsPlayerInRangeOfPoint(playerid, 2.0, 1365.8931,-1289.0779,13.5469)) // coordonate job
      {
         if(PlayerInfo[playerid][pJob] != 0) // demisioneaza la job
         {
            PlayerInfo[playerid][pJob] = 0;
            SCM(playerid, -1, "Ai demisionat de la job-ul tau.");
            mysql_format(SQL,str,sizeof(str),"UPDATE users SET `Job`='0' WHERE `name`='%s'",PlayerInfo[playerid][pNormalName]);
		    mysql_tquery(SQL,str,"","");
         }
         else
         {
            SCM(playerid, -1, "Jobul tau este acum X."); // nume job
            PlayerInfo[playerid][pJob] = idjob; // id job
            mysql_format(SQL,str,sizeof(str),"UPDATE users SET `Job`='idjob' WHERE `name`='%s'",PlayerInfo[playerid][pNormalName]);
            mysql_tquery(SQL,str,"","");
         }
      }

Demisionezi tot pe tasta Y, faci asa la fiecare job.

Daca ai un gamemode bigzone / cu job-urile principale, poftim mura-n gura: https://pastebin.com/G6UJd13t

Nu lucrez pe bugzone-uri :))

 

  • Haha 1
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more details you can also review our Terms of Use and Privacy Policy.