How i can make Gold Pot!!
#5

pawn Code:
forward ChooseSpot();

new GoldPotSpot[MAX_PLAYERS];

GoldPotSpot[playerid]; // Add this to OnPlayerConnect

SetTimer("ChooseSpot", 60000, 1); // Its a repeated timer every min.Change it if u want.Add it to OnGameModeInit(); function

public ChooseSpot()
{
  for(new i = 0; i < MAX_PLAYERS; i++)
  {
    switch (GoldPotSpot[i])
    {
      case 1: SetPlayerCheckpoint(i, x, y, z, 4.0);S
      SendMessageToAll(); // Add a Message here ...
      case 2: SetPlayerCheckpoint(i, x, y, z, 4.0); // Somewhere else
    }
  }
  return 1;
}

public OnPlayerEnterCheckpoint(playerid)
{
  if(GoldPotSpot[playerid] == 1)
  {
    GoldPotSpot[playerid] = 0;
    // Do something here
  }
  else if(GoldPotSpot[playerid] == 2)
  {
    GoldPotSpot[playerid] = 0;
    // Do something here too
  }
}
check ..
Reply


Messages In This Thread
How i can make Gold Pot!! - by [WSM]Deadly_Evil - 25.02.2010, 10:15
Re: How i can make Gold Pot!! - by aircombat - 25.02.2010, 10:26
Re: How i can make Gold Pot!! - by pierhs - 25.02.2010, 10:29
Re: How i can make Gold Pot!! - by [WSM]Deadly_Evil - 25.02.2010, 10:39
Re: How i can make Gold Pot!! - by Julian2574 - 25.02.2010, 10:46
Re: How i can make Gold Pot!! - by [WSM]Deadly_Evil - 25.02.2010, 11:05
Re: How i can make Gold Pot!! - by Jeffry - 25.02.2010, 11:18
Re: How i can make Gold Pot!! - by [WSM]Deadly_Evil - 25.02.2010, 11:20
Re: How i can make Gold Pot!! - by Jeffry - 25.02.2010, 11:43

Forum Jump:


Users browsing this thread: 1 Guest(s)