Need help with... - 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: Need help with... (
/showthread.php?tid=459631)
Need help with... -
Eligijus_Simpsonas - 24.08.2013
Hi guys, I need your help with this script. So.. Better explain, Police job ID is 1, their car ID is 411 (for example), and I need to make pickup just for Police job, which spawns only 411 ID car.
If you'd like to help me, my skype ID is:
elkatronas
Re: Need help with... -
Vanter - 24.08.2013
pawn Код:
new infernus;
//OnGameModeInIt
infernus = CreateDynamicPickup(1317, 1, X, Y ,Z);
public OnPlayerPickUpPickup(playerid, pickupid)
{
if(pickupid == infernus)
{
new infernuscar;
new Float:X,Float:Y,Float:Z;
infernuscar = CreateVehicle(411, X, Y, Z , 0, 0, 0,0);
PutPlayerInVehicle(playerid, infernuscar, 0);
}
return 1;
}
Re: Need help with... -
Eligijus_Simpsonas - 24.08.2013
I need it disappear in about 10minutes, and not respawning. When I do cmd /boom on that car, I want it disappear for ever, until I make new one one that pickup.
Re: Need help with... -
Vanter - 24.08.2013
okay, you're asking for too much
pawn Код:
//Under when you spawn the car
SetTimerEx("DestroyCar",600000,false,"i",playerid); //10 minutes timer
forward DestroyCar(playerid); //destroy car timer
public DestroyCar(playerid)
{
DestroyVehicle(infernuscar);
}
//command using ZCMD
CMD:boom(playerid,params[])
{
#pragma unused params
DestroyVehicle(infernuscar);
return 1;
}
Re: Need help with... -
Eligijus_Simpsonas - 24.08.2013
Maybe yes xD
Here:
I want it to destroy, and not spawn again. :/
Re: Need help with... -
Dragonsaurus - 24.08.2013
DestroyVehicle does not respawn. His code does exactly what you want.