Problem with giveplayerMoney to right person
#9

well the timer would of gone under onplayerentercheckpoint so when that player enters the checkpoint the timer starts ... for that playerid then triggering the function if not

//if u dont understand read the earlier post............
pawn Код:
//under checkpoint function
  Robber[playerid] = 1;

public RobPlace(playerid)
{
 if(Robber[playerid] == 1)
 {
  SetPlayerWantedLevel(playerid, 3);
  for(new i=0; i<MAX_PLAYERS; i++)
  {
    new robcash = GetPlayerMoney(i)/i; // < untested never did it like this b4 but it is suppose to work......
    GivePlayerMoney(playerid, 10000000/robcash);
  }
  new robstring[256];
  new name[MAX_PLAYER_NAME];
  GetPlayerName(playerid, name, sizeof(name));
  format(robstring, sizeof(robstring), "%s Is Robbed the bank", name);
  SendClientMessageToAll(-1, robstring);
 }
 return 1;
}
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)