Pickup + GameTextForPlayer
#1

Код:
SetTimerEx("MagicPill",90000, true,""); //pickup will be available every 90 sec

forward MagicPill();
public MagicPill()
{
  Pickup[7] = CreatePickup(3082,1,-2114.3657,207.7968,36.2977);
  return 1;
}
I want to create a similar thing to what is on Protect the President mode, where pickup can be picked up only once in a short period of time, and if somebody else will pick it up (during the waiting time), the player will get message saying "This pickup is unavailable at this moment".

Any help ?
Reply
#2

Код:
SetTimerEx("MagicPill",90000, true,""); //pickup will be available every 90 sec

forward MagicPill();
public MagicPill()
{
  Pickup[7] = CreatePickup(3082,1,-2114.3657,207.7968,36.2977);
  SendClientMessage(playerid,COLOR?,"Pickup Is Not Available");
  SetTimer("MagicPill2",90000,true,""); // NEW When its available
  return 1;
}
forward MagicPill2();
public MagicPill
{
  Pickup[7] = CreatePickup(3082,1,-2114.3657,207.7968,36.2977);
  SendClientMessage(playerid,COLOR?,"Pickup Is Available:D)";
  SetTimer("MagicPill",90000,true,""); // GOES BACK TO UNavailable
  return 1;
}
hope this helps i guess
Reply
#3

nope, does not work
Reply
#4

bump!
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)