Briefcase Icon at Spawn Place (rep+++) - 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)
+--- Thread: Briefcase Icon at Spawn Place (rep+++) (
/showthread.php?tid=334240)
Briefcase Icon at Spawn Place (rep+++) -
iOmar - 14.04.2012
Hey Guys!. I want briefcase icon at my teams spawn places so as soon as they reach on briefcase they got a dialog menu in which there will shop like "Armour 3000", "AK47 2000" etc. If you give me hint i can do it by my self.......
Please I need it...
Re: Briefcase Icon at Spawn Place (rep+++) -
Shetch - 14.04.2012
First of all, create the pickup with CreatePickup. Make sure the pickup ID is set to a variable like.
Код:
new BlueTeamPickup;
BlueTeamPickup = CreatePickup(blah, blah, blah);
Then under OnPlayerPickupPickup
Код:
if(pickupid == BlueTeamPickup)
{
// Show the player a dialog.
}
Re: Briefcase Icon at Spawn Place (rep+++) -
RollTi - 14.04.2012
HINT:
pawn Код:
CreatePickup(model, type, float:x, float:y, float:z, virtualworld); //not sure if is
use type 22 for pickable, if you already pick it in-game it will respawn after death
Re: Briefcase Icon at Spawn Place (rep+++) -
iOmar - 14.04.2012
WHI IT IS sHOWING ERROR?/
"Invalid Declaration" ?