Drug Automats and increasing fire rate? -
samtey - 31.07.2011
Hi!
I wanna know something! I want to make drug automats(sprunk automats) in whole Los Santos! When a player goes to one of them, he has to pay 1000$ and his health will get less 50%! But the fire rate of his weapon has to be very faster!
How can I do this? It's a little difficult, I know! But should I do this funtion into a pickup? Or how to define those automats?
Re: Drug Automats and increasing fire rate? -
Snipa - 31.07.2011
AFAIK, you can't increase the fire rate unless you edit the weapons.dat in your directory..
AW: Drug Automats and increasing fire rate? -
samtey - 31.07.2011
I haven't got this data in my folder! What should I do, if I edit it, it will increase the fire rate of everybody!
Re: Drug Automats and increasing fire rate? -
Famalamalam - 31.07.2011
Ney, it is not possible.
Re: Drug Automats and increasing fire rate? -
wups - 31.07.2011
It's possible, but it will also increase running speed. The effect lasts for ~20 seconds, unless you add another pickup on him.
You have to put a pickup with a drug modelid.
pawn Код:
new DrugPickup[MAX_PLAYERS];
stock IncraseFireRate(playerid)
{
new Float:Coo[3];
GetPlayerPos(playerid,Coo[0],Coo[1],Coo[2]);
DrugPickup[playerid] = CreatePickup(1241 ,2,Coo[0],Coo[1],Coo[2]+1.0);
SetTimerEx("RemoveDrugPickup",2000,false,"i",playerid);
}
forward RemoveDrugPickup(playerid);
public RemoveDrugPickup(playerid)
{
DestroyPickup(DrugPickup[playerid]);
DrugPickup[playerid]=-1;
return 1;
}
public OnPlayerPickUpPickup(playerid, pickupid)
{
if(pickupid==DrugPickup[playerid])
{
DestroyPickup(DrugPickup[playerid]);
DrugPickup[playerid]=-1;
return 1;
}
}
This is what I'm currently using.
AW: Drug Automats and increasing fire rate? -
samtey - 31.07.2011
Where's the pickup for the automat?
Re: Drug Automats and increasing fire rate? -
Famalamalam - 31.07.2011
Ahh, the old Adrenaline pill. It used to slow things down for you in 3b...
AW: Re: Drug Automats and increasing fire rate? -
samtey - 31.07.2011
Quote:
Originally Posted by wups
It's possible, but it will also increase running speed. The effect lasts for ~20 seconds, unless you add another pickup on him.
You have to put a pickup with a drug modelid.
pawn Код:
new DrugPickup[MAX_PLAYERS]; stock IncraseFireRate(playerid) { new Float:Coo[3]; GetPlayerPos(playerid,Coo[0],Coo[1],Coo[2]); DrugPickup[playerid] = CreatePickup(1241 ,2,Coo[0],Coo[1],Coo[2]+1.0); SetTimerEx("RemoveDrugPickup",2000,false,"i",playerid); } forward RemoveDrugPickup(playerid); public RemoveDrugPickup(playerid) { DestroyPickup(DrugPickup[playerid]); DrugPickup[playerid]=-1; return 1; } public OnPlayerPickUpPickup(playerid, pickupid) { if(pickupid==DrugPickup[playerid]) { DestroyPickup(DrugPickup[playerid]); DrugPickup[playerid]=-1; return 1; } }
This is what I'm currently using.
|
Well, is that drug-pickup now the automat or what? And where to put it's co-ordinates?
Re: Drug Automats and increasing fire rate? -
Famalamalam - 31.07.2011
That's the effect. Create a separate pick-up for a drug or something.
Re: Drug Automats and increasing fire rate? -
Mauzen - 31.07.2011
You can decrease the firerate by applying animations after every shot, but increasing it isnt possible in a good way.
AW: Drug Automats and increasing fire rate? -
samtey - 31.07.2011
How to create an automat? I know the script somehow(I think, with what should I do?)!
Re: Drug Automats and increasing fire rate? -
PrawkC - 31.07.2011
Do you not understand what "Not possible" means? if not search "Impossible"
AW: Drug Automats and increasing fire rate? -
samtey - 31.07.2011
It
is possible! wups did the most, I just need to know how to create a sprunk automat! Like this one in grove street!
Re: AW: Drug Automats and increasing fire rate? -
wups - 31.07.2011
Quote:
Originally Posted by samtey
It is possible! wups did the most, I just need to know how to create a sprunk automat! Like this one in grove street!
|
You
CAN'T(CAN NOT) Create a sprunk automat.