Drug Automats and increasing fire rate?
#1

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?
Reply
#2

AFAIK, you can't increase the fire rate unless you edit the weapons.dat in your directory..
Reply
#3

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!
Reply
#4

Ney, it is not possible.
Reply
#5

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.
Reply
#6

Where's the pickup for the automat?
Reply
#7

Ahh, the old Adrenaline pill. It used to slow things down for you in 3b...
Reply
#8

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?
Reply
#9

That's the effect. Create a separate pick-up for a drug or something.
Reply
#10

You can decrease the firerate by applying animations after every shot, but increasing it isnt possible in a good way.
Reply
#11

How to create an automat? I know the script somehow(I think, with what should I do?)!
Reply
#12

Do you not understand what "Not possible" means? if not search "Impossible"
Reply
#13

It is possible! wups did the most, I just need to know how to create a sprunk automat! Like this one in grove street!
Reply
#14

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.
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)