[UNSOLVED]Pickup Not show - 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: [UNSOLVED]Pickup Not show (
/showthread.php?tid=148994)
[UNSOLVED]Pickup Not show -
eDz0r - 20.05.2010
i Create Some Pickups but they are dont show up i
My code
On top
pawn Код:
new gunshoppik1;
new gunshoppik2;
On OnGameModeInit()
pawn Код:
gunshoppik1 = AddStaticPickup(346,23,4120.5435,-713.6999,30.5056,-1);
gunshoppik2 = AddStaticPickup(346,23,4105.6196,-708.3956,30.5056,-1);
on OnPlayerPickUpPickup(playerid, pickupid)
pawn Код:
{
if (pickupid == gunshoppik1)
{
SetPlayerPos(playerid,0,0,0);//i dont make the coord's
}
if (pickupid == gunshoppik2)
{
SetPlayerPos(playerid,0,0,0);//i dont make the coord's
}
return 1;
}
Re: [HELP]Pickup Not show -
Mr L - 20.05.2010
why you are not using only this:
pawn Код:
AddStaticPickup(346,23,4120.5435,-713.6999,30.5056,-1);
AddStaticPickup(346,23,4105.6196,-708.3956,30.5056,-1);
Re: [HELP]Pickup Not show -
eDz0r - 20.05.2010
Quote:
Originally Posted by Kinto
why you are not using only this:
pawn Код:
AddStaticPickup(346,23,4120.5435,-713.6999,30.5056,-1); AddStaticPickup(346,23,4105.6196,-708.3956,30.5056,-1);
|
because after this i must make IsPlayerInRageOfPoint and.......where to put her
Re: [HELP]Pickup Not show -
Mr L - 20.05.2010
use this then:
pawn Код:
if(IsPlayerInRangeOfPoint(playerid, 2.0,23,4105.6196,-708.3956,30.5056);
Re: [HELP]Pickup Not show -
eDz0r - 20.05.2010
Quote:
Originally Posted by Kinto
use this then:
pawn Код:
if(IsPlayerInRangeOfPoint(playerid, 2.0,23,4105.6196,-708.3956,30.5056);
|
i think at this but...wher to put her? in OnPlayerUpdate(playerid)?
Re: [HELP]Pickup Not show -
eDz0r - 20.05.2010
Its Copile with no erros Testing now
Re: [HELP]Pickup Not show -
eDz0r - 20.05.2010
Quote:
Originally Posted by Kinto
why you are not using only this:
pawn Код:
AddStaticPickup(346,23,4120.5435,-713.6999,30.5056,-1); AddStaticPickup(346,23,4105.6196,-708.3956,30.5056,-1);
|
i'tryed now work