Pickup problem - 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: Pickup problem (
/showthread.php?tid=311178)
Pickup problem -
FireCat - 15.01.2012
When I do this code:
pawn Код:
WantedStars[WantedStarsCreated] = CreateDynamicPickup(1247,2,SpawnX,SpawnY,SpawnZ,0);
2 = respawn after some time
But it doesn't destroy after I pick it up.
Like I want it to do, when he picks it up, it gets deleted, then after sometime the player can see it again...
But it just stays there, like the model 23... <.<
pawn Код:
for(new i; i < WantedStarsCreated; i++)
{
if(pickupid == WantedStars[i])
{
if(GetPlayerWantedLevel(playerid) == 0) return 0;
SetPlayerWantedLevel(playerid,GetPlayerWantedLevel(playerid)-1);
}
}