GTA 3 Ammunation
#21

Why you use this?
pawn Код:
if(pickupid == spas1)
    {
    SendClientMessage(playerid, COLOR_GREEN, "You have bought a Franchi SPAS-15 for $2000");
    GivePlayerMoney(playerid, -2000);
    GivePlayerWeapon(playerid, 27, 100);
    }
    if(pickupid == spas2)
        {
    SendClientMessage(playerid, COLOR_GREEN, "You have bought a Franchi SPAS-15 for $2000");
    GivePlayerMoney(playerid, -2000);
    GivePlayerWeapon(playerid, 27, 100);
    }
    if(pickupid == spas3)
        {
    SendClientMessage(playerid, COLOR_GREEN, "You have bought a Franchi SPAS-15 for $2000");
    GivePlayerMoney(playerid, -2000);
    GivePlayerWeapon(playerid, 27, 100);
    }
    if(pickupid == spas4)
        {
    SendClientMessage(playerid, COLOR_GREEN, "You have bought a Franchi SPAS-15 for $2000");
    GivePlayerMoney(playerid, -2000);
    GivePlayerWeapon(playerid, 27, 100);
    }
I think this will be much better:
pawn Код:
if(pickupid == spas1 || pickupid == spas2 || pickupid == spas3 || pickupid == spas4)
{
    SendClientMessage(playerid, COLOR_GREEN, "You have bought a Franchi SPAS-15 for $2000");
    GivePlayerMoney(playerid, -2000);
    GivePlayerWeapon(playerid, 27, 100);
}
Reply
#22

Hmmm... good point. I've noted that for my future scripts. As I've probably said before, I'm a capable scripter but I am kinda slow with logic so I do leave out some pretty simple stuff sometimes.
Reply
#23

Quote:
Originally Posted by Lenny.
hm when u pick those icons up it just takes away your money forever, if you stand in it more time u can go to minus forever, any ideas how to fix it?
Don't stand in it then.. [offtopic]Couldn't resist[/offtopic]

I love the idea, maybe I'll use such a system in my server
Reply
#24

Update Request: Is there any way to display the price over the guns like in actual GTA3?
Reply
#25

good work
Reply
#26

Its good, but i can buy without money, this is bad.
Reply
#27

Pretty Cool Idea, Good Job.
Reply
#28

Quote:
Originally Posted by t0nc3k
Its good, but i can buy without money, this is bad.
We get the point!

if(GetPlayerMoney(playerid) >= 1 less than the price)
Reply
#29

Can you post a screen shot or a video or somethin?
Reply
#30

I have to leave in a few so when I get back i'll try to make a screen
Reply
#31

I can't think of a way to make the price appear above them, without using gametexts and things, but once you're in the pickup you're already buying the gun so it's a bit late then!
Reply
#32

Is it a textdraw? I'm no good with textdraws
Reply
#33

Add a keypress and gametext.
They stand on the icon, then it puts up a gametext saying "push space to buy Xgun at $X"
Reply
#34

That might work but I meant like the House Icons in SP where it says the price above the icon
Reply
#35

Quote:
Originally Posted by Mikep
Quote:
Originally Posted by G_ROW_Chez
so ****** simple... for what is it? INHO it's stupid thing... my brother can better... Sorry for my english and try to do something more important and big =)
It's not stupid.

You should see the things other people have released.

Stuff like bloody join/leave messages, copied straight from the wiki..

Atleast this has a purpose.
You for real!?! Join & Leave FS? Hahahaha, send me a link. I'm in need of a good lol.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)