Need help for understanding what the code does
#1

Can someone help me with this.
i want to know what it do so i could translate.
I'm currently translating a Turkish gamemode with the help of gxxgle so you can tell how hard it is with me not knowing that much about scripting and stuff.
Any kind soul out there pls help.

Btw this is the gamemode i was talking about: Prison Life Roleplay v2

Код:
CMD:camasiral(playerid, params[])
{
  if(!IsPlayerLoggedIn(playerid)) return SendClientMessage(playerid, COLOR_GREY, "[!]Bu komutu kullanmak iзin цnce sunucuya giriю yapmalэsэnэz.");
  if(!IsAHitman(playerid)) return SendClientMessage(playerid, COLOR_GREY, "[!]Зamaюэrhane gцrevlisi deрilsiniz.");
  if(IsPlayerInRangeOfPoint(playerid, 3, -58.387542,-1019.805297,29.446876))
  {
  SetPlayerAttachedObject(playerid, 1, 2844, 1,0.067000,0.909996,0.264999,-106.199935,-87.099960,87.500000,0.830996,0.636998,0.621999);
  ApplyAnimation(playerid,"CARRY","crry_prtial",4.0,1,0,0,1,1,1);
  SendClientMessage(playerid, COLOR_ORANGE, "MESLEK: {FFFFFF}Kirli kэyafetleri зamaюэrhaneye taюэyэnэz.");
  SetPlayerCheckpoint(playerid,186.947143,-1605.578247,20.607812,1.0);
  CheckPoint[playerid] = 980;
  }
  return 1;
}
Reply
#2

Hi!

If you are at the given point it makes you carry some dirty clothes.
I think it's part of a laundy job.
Reply
#3

Quote:
Originally Posted by Rolux
Посмотреть сообщение
Hi!

If you are at the given point it makes you carry some dirty clothes.
I think it's part of a laundy job.
that's what makes it weird.
Would you think a hitman doing such job?
I mean if it was undercover, sure.
But it doesn't seem like it in this gamemode.
The gxxgle did translate like that but i just want to make sure if it really what it did.

Btw this is what i did.
Correct me if i'm wrong.
Код:
CMD:laundry(playerid, params[])
{
  if(!IsPlayerLoggedIn(playerid)) return SendClientMessage(playerid, COLOR_GREY, "[!]To use this command, you must first login to the server.");
  if(!IsAHitman(playerid)) return SendClientMessage(playerid, COLOR_GREY, "[!]You're not a Hitman Agency member.");
  if(IsPlayerInRangeOfPoint(playerid, 3, -58.387542,-1019.805297,29.446876))
  {
  SetPlayerAttachedObject(playerid, 1, 2844, 1,0.067000,0.909996,0.264999,-106.199935,-87.099960,87.500000,0.830996,0.636998,0.621999);
  ApplyAnimation(playerid,"CARRY","crry_prtial",4.0,1,0,0,1,1,1);
  SendClientMessage(playerid, COLOR_ORANGE, "JOB: {FFFFFF}Dirty clothes has been moved to the laundry room.");
  SetPlayerCheckpoint(playerid,186.947143,-1605.578247,20.607812,1.0);
  CheckPoint[playerid] = 980;
  }
  return 1;
}
the reason why i know it is Hitman Agency was because some word in the gamemode is in english.
Of course, there is a laundry job.
But there is a faction Hitman Agency.
and i thought this one is for that faction jobs.

Quote:

I might be confuse with some other stuff so please correct me if i'm wrong.

Reply
#4

Looks good.
Maybe it's a job for hitmans,so they can blend in.
Reply
#5

Quote:
Originally Posted by Rolux
Посмотреть сообщение
Looks good.
Maybe it's a job for hitmans,so they can blend in.
yea, I hope that's what the job does.
anyway, Thanks for the help.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)