A simple timer & one question
#4

no
only for mrand

pawn Код:
if(listitem == 3) //Rob 24/7
               {
                  new frand =random(10);
                  new mrand =random(11000);
                  if(gTeam[playerid] != TEAM_CIVIL)
                  {
                      SendClientMessage(playerid,COLOR_RED,"Law enforcement officers cannot rob anything.");
                      return 1;
                  }
                  if(frand <= 4)
                  {
                      SendClientMessage(playerid, COLOR_RED, "You've attempted to rob 24/7 in old venturas strip (LV), but failed.");
                      GetPlayerName(playerid, pname, sizeof(pname));
                      format(string,sizeof(string), "[LAW ENFORCEMENT RADIO] %s(%d) has attempted to rob the 24/7 in old venturas strip (LV).",pname, playerid);
                      SendCopMessage(COLOR_BLUE, string);
                      SendCIAMessage(COLOR_BLUE, string);
                      SendArmyMessage(COLOR_GREEN, string);
                      return 1;
                  }
                  GivePlayerMoney(playerid, mrand);
                  GetPlayerName(playerid, pname, sizeof(pname));
                  format(string,sizeof(string), "You've successfully robbed the 24/7 in old venturas strip (LV), and got away with %d",mrand);
                  SendClientMessage(playerid,COLOR_GREEN, string);

                  GetPlayerName(playerid, pname, sizeof(pname));
                  format(string,sizeof(string), "[ROBBERY] {FFFFFF}%s(%d) {F81414}has robbed the 24/7 in {FFFFFF}old venturas strip (LV),{F81414} and got away with {FFFFFF}%d",pname, playerid, mrand);
                  SendClientMessageToAll(COLOR_RED, string);

                  GetPlayerName(playerid, pname, sizeof(pname));
                  format(string,sizeof(string), "[LAW ENFORCEMENT RADIO] %s(%d) has robbed the 24/7 in old venturas strip (LV), and got away with %d",pname, playerid, mrand);
                  SendCopMessage(COLOR_BLUE, string);
                  SendCIAMessage(COLOR_BLUE, string);
                  SendArmyMessage(COLOR_GREEN, string);

                  GetPlayerName(playerid,pname,MAX_PLAYER_NAME);
                  format(string,sizeof(string),"%s(%d) has robbed the 24/7 in old venturas strip (LV), and got away with %d",pname,playerid,mrand);
                  IRC_GroupSay(groupID,ADMIN_CHANNEL,string);
                  IRC_GroupSay(groupID,IRC_CHANNEL,string);
                  return 1;
               }
Reply


Messages In This Thread
A simple timer & one question - by _Khaled_ - 07.09.2012, 14:10
Re: A simple timer & one question - by _Khaled_ - 07.09.2012, 20:05
Respuesta: A simple timer & one question - by HydraX - 07.09.2012, 20:24
Re: A simple timer & one question - by _Khaled_ - 07.09.2012, 20:27
Re: A simple timer & one question - by _Khaled_ - 08.09.2012, 22:06

Forum Jump:


Users browsing this thread: 1 Guest(s)