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


Messages In This Thread
GTA 3 Ammunation - by DMSOrg - 17.02.2009, 02:43
Re: GTA 3 Ammunation - by ReV. - 17.02.2009, 02:43
Re: GTA 3 Ammunation - by DMSOrg - 17.02.2009, 02:45
Re: GTA 3 Ammunation - by ReV. - 17.02.2009, 02:48
Re: GTA 3 Ammunation - by DMSOrg - 17.02.2009, 03:19
Re: GTA 3 Ammunation - by 1337pr0 - 17.02.2009, 03:47
Re: GTA 3 Ammunation - by SpiderPork - 17.02.2009, 12:21
Re: GTA 3 Ammunation - by NaS - 17.02.2009, 14:16
Re: GTA 3 Ammunation - by cHaMiLLioNaRe - 17.02.2009, 14:24
Re: GTA 3 Ammunation - by G_ROW_Chez - 17.02.2009, 18:35
Re: GTA 3 Ammunation - by NaS - 17.02.2009, 21:04
Re: GTA 3 Ammunation - by ReV. - 18.02.2009, 01:48
Re: GTA 3 Ammunation - by Mikep - 18.02.2009, 02:10
Re: GTA 3 Ammunation - by 1337pr0 - 18.02.2009, 04:17
Re: GTA 3 Ammunation - by amrour - 21.02.2009, 19:29
Re: GTA 3 Ammunation - by [IB]Scorcher - 21.02.2009, 20:37
Re: GTA 3 Ammunation - by Snickers - 21.02.2009, 21:19
Re: GTA 3 Ammunation - by ICECOLDKILLAK8 - 21.02.2009, 22:36
Re: GTA 3 Ammunation - by Weirdosport - 22.02.2009, 10:31
Re: GTA 3 Ammunation - by DMSOrg - 01.03.2009, 15:48
Re: GTA 3 Ammunation - by Magician - 02.03.2009, 06:21
Re: GTA 3 Ammunation - by DMSOrg - 07.03.2009, 14:51
Re: GTA 3 Ammunation - by HB - 01.04.2009, 20:40
Re: GTA 3 Ammunation - by DMSOrg - 05.04.2009, 00:50
Re: GTA 3 Ammunation - by James_Alex - 05.04.2009, 01:44
Re: GTA 3 Ammunation - by t0nc3k - 05.04.2009, 09:24
Re: GTA 3 Ammunation - by miokie - 05.04.2009, 14:09
Re: GTA 3 Ammunation - by DMSOrg - 06.04.2009, 21:40
Re: GTA 3 Ammunation - by Kinetic - 07.04.2009, 01:24
Re: GTA 3 Ammunation - by DMSOrg - 07.04.2009, 13:44
Re: GTA 3 Ammunation - by Weirdosport - 07.04.2009, 14:10
Re: GTA 3 Ammunation - by DMSOrg - 10.04.2009, 16:11
Re: GTA 3 Ammunation - by Kinetic - 17.04.2009, 19:47
Re: GTA 3 Ammunation - by DMSOrg - 18.04.2009, 12:36
Re: GTA 3 Ammunation - by Abernethy - 11.06.2009, 05:03

Forum Jump:


Users browsing this thread: 4 Guest(s)