Jump to content
  • 0

Ajutor.


Diabolix

Question

//=========================[/robbank]===========================================

    if(strcmp(cmd, "/robbank", true) == 0)

{

if(CooldownRob[playerid]) return SendClientMessage(playerid,COLOR_1BLUE,"{2BB3D5}* Banca poate fi sparta odata la o ora.");

if(PlayerToPoint(3.0,playerid, 2315.6462,0.0982,26.7422))

{

    new hour,minute,second;

gettime(hour,minute,second);

if(hour < 11)

{

    SCM(playerid, COLOR_WHITE, "{F23A0D}* Banca poate fi sparta doar intre orele 11-23.");

    return 1;

  }

  else if(hour > 23)

{

    SCM(playerid, COLOR_WHITE, "{F23A0D}* Banca poate fi sparta doar intre orele 11-23.");

    return 1;

  }

  if(IsACop(playerid))

  {

      SCM(playerid, COLOR_WHITE, "{F23A0D}* Nu poti sparge banca deoarece esti politist.");

      return 1;

    }

      Robbing[playerid] = 1;

    CP[playerid] = 50;

new rand;

    rand = random(sizeof(RandomRob));

SetPlayerCheckpoint(playerid, RandomRob[rand][0],RandomRob[rand][1],RandomRob[rand][2], 3.0);

SendClientMessage(playerid, COLOR_YELLOW,"Condu masina pana la checkpoint");

WantedLevel[playerid] = 0;

    new wanted = GetPlayerWantedLevel(playerid);

WantedLevel[playerid] = wanted + 10;

    SetPlayerCriminal(playerid,255, "Robbing the City Bank");

BizzInfo[0][bProducts] -= 20;

    PlayerInfo[playerid][pRob] -= 20;

      new name[MAX_PLAYER_NAME];

GetPlayerName(playerid, name, sizeof(name));

format(string, sizeof(string), "%s a spart banca,omoara-l sa ii furi banii.", name);

SendClientMessageToAll(0xFF0000FF, string);

CreateExplosion(1263.5778,-1645.8478,13.5839,2,8.0);

CreateExplosion(1268.7540,-1658.3386,13.5839,2,8.0);

for(new i = 0; i < MAX_PLAYERS; i++)

{

CooldownRob =3600;

}

}

else

  {

      SendClientMessage(playerid, COLOR_GREY,"{C0C0C0}* Trebuie sa fi in banca InDungi pentru a da /robbank.");

return 1;

}

return 1;

}

Deci,cand intru in banca sa dau rob imi zice ca nu sunt in banca .. cate odata merge .. si cand ajung la checkpoint nu imi da banii nici nu dispare ... ajutor ?!

Join = > RPG.TRUEGAMING.RO

Link to comment
Share on other sites

1 answer to this question

Recommended Posts

Guest
This topic is now closed to further replies.
×
×
  • 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.