Pickup + GameTextForPlayer - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Pickup + GameTextForPlayer (
/showthread.php?tid=152196)
Pickup + GameTextForPlayer -
Richmond92 - 02.06.2010
Код:
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 ?
Re: Pickup + GameTextForPlayer -
w00tNew - 02.06.2010
Код:
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
Re: Pickup + GameTextForPlayer -
Richmond92 - 03.06.2010
nope, does not work
Re: Pickup + GameTextForPlayer -
w00tNew - 03.06.2010
bump!