SA-MP Forums Archive
GTA 3 Ammunation - 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: Filterscripts (https://sampforum.blast.hk/forumdisplay.php?fid=17)
+--- Thread: GTA 3 Ammunation (/showthread.php?tid=65874)

Pages: 1 2


Re: GTA 3 Ammunation - Magician - 02.03.2009

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);
}



Re: GTA 3 Ammunation - DMSOrg - 07.03.2009

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.


Re: GTA 3 Ammunation - HB - 01.04.2009

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



Re: GTA 3 Ammunation - DMSOrg - 05.04.2009

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


Re: GTA 3 Ammunation - James_Alex - 05.04.2009

good work


Re: GTA 3 Ammunation - t0nc3k - 05.04.2009

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


Re: GTA 3 Ammunation - miokie - 05.04.2009

Pretty Cool Idea, Good Job.


Re: GTA 3 Ammunation - DMSOrg - 06.04.2009

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)


Re: GTA 3 Ammunation - Kinetic - 07.04.2009

Can you post a screen shot or a video or somethin?



Re: GTA 3 Ammunation - DMSOrg - 07.04.2009

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


Re: GTA 3 Ammunation - Weirdosport - 07.04.2009

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!


Re: GTA 3 Ammunation - DMSOrg - 10.04.2009

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


Re: GTA 3 Ammunation - Kinetic - 17.04.2009

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


Re: GTA 3 Ammunation - DMSOrg - 18.04.2009

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


Re: GTA 3 Ammunation - Abernethy - 11.06.2009

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.