Problem With Pickups - 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: Problem With Pickups (
/showthread.php?tid=438039)
Problem With Pickups -
GreTex - 18.05.2013
Hello Guys i made a Pickup but it get Disappears After someone Pick It Up
i want it there always
l dont want it to get disappear after someone picks it up
pawn Код:
new nrgpickup; //on the top
nrgpickup = CreatePickup(1318, 22, 2405.1450,1438.6797,18.7639,-1); //Hospital Enter Pickup.//under ongamemodeinit
public OnPlayerPickUpPickup(playerid, pickupid)
{
if(pickupid == nrgpickup)
{
new Float:X,Float:Y,Float:Z,Float:A;
GetPlayerPos(playerid,X,Y,Z);
GetPlayerFacingAngle(playerid,A);
Car = CreateVehicle(411,X,Y,Z,A,1,1);
PutPlayerInVehicle(playerid,Car,0);
SendClientMessage(playerid, COLOR_GREEN, "You have Successfully Spawned A NRG-500");
return 1;
}
return 1;
}
Re: Problem With Pickups -
RajatPawar - 18.05.2013
Aren't pickups supposed to disappear when they are picked up? That's sort of the point of pick ups..
Re: Problem With Pickups -
GreTex - 18.05.2013
Not exactly i have seen some server's with the pickups
that stay's there for evar
Re: Problem With Pickups -
RajatPawar - 18.05.2013
In create pickup, change 22 to 1 - type 1 exists always.
Re: Problem With Pickups -
GreTex - 18.05.2013
Yup its working Thnk You Soo Much