Jump to content
  • 1

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


Question

8 answers to this question

Recommended Posts

  • 0
Posted

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,""); }

  • 0
Posted

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

  • 0
Posted
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
  • 0
Posted

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

  • 0
Posted

/////////////////////////// TASTA Y //////////////////////////

if(newskeys & KEY_YES)

{

return cmd_getjob(playerid, " ");

}

///////////////////////////// TASTA N ///////////////////////////////////

if(newskeys & KEY_NO) pui

{

return cmd_getjob(playerid, " ");

}

  • 0
Posted
La 09.09.2018 la 20:29, StiK a spus:

Nu lucrez pe bugzone-uri :))

 

si tu te mai numesti scripter ma? nu stii sa faci o comanda si critici un gamemode, esti stupid copile

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • 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.