02.03.2009, 06:21
Why you use this?
I think this will be much better:
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);
}
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);
}