03.03.2011, 19:23
Ve se vai
pawn Код:
if(dialogid == 512)
{
switch(listitem)
{
case 0:
{
if(GetPlayerMoney(playerid) >=2000)
{
GivePlayerWeapon(playerid, 28, 200);
GivePlayerWeapon(playerid, 27, 50);
GivePlayerWeapon(playerid, 24, 40);
GivePlayerWeapon(playerid, 16, 10);
GivePlayerMoney(playerid, -2500);
GetPlayerName(playerid, sendername, sizeof(sendername));
format(string, sizeof(string), "%s Comprou um Kit de Armas!( /Kit )", sendername);
SendClientMessageToAll(green, string);
SendClientMessage(playerid, green, "Kit adiquirido. Mate todos!");
}
else
{
SendClientMessage(playerid, red, "Vocк nгo tem dinheiro suficint para comprar este Kit!");
return 1;
}
}
case 1:
{
if(GetPlayerMoney(playerid) >=2000)
{
GivePlayerWeapon(playerid, 32, 250);
GivePlayerWeapon(playerid, 25, 25);
GivePlayerWeapon(playerid, 31, 200);
GivePlayerWeapon(playerid, 24, 25);
GivePlayerWeapon(playerid, 18, 5);
GivePlayerMoney(playerid, -2000);
GetPlayerName(playerid, sendername, sizeof(sendername));
format(string, sizeof(string), "%s Comprou um Kit de Armas!( /Kit )", sendername);
SendClientMessageToAll(green, string);
SendClientMessage(playerid, green, "Kit adiquirido. Mate todos!");
}
else
{
SendClientMessage(playerid, red, "Vocк nгo tem dinheiro suficint para comprar este Kit!");
return 1;
}
}
case 2:
{
if(GetPlayerMoney(playerid) >=1700)
{
GivePlayerWeapon(playerid,26,250);
GivePlayerWeapon(playerid,28,200);
GivePlayerWeapon(playerid,30,300);
GivePlayerWeapon(playerid,22,100);
GivePlayerMoney(playerid, -1700);
GetPlayerName(playerid, sendername, sizeof(sendername));
format(string, sizeof(string), "%s Comprou um Kit de Armas!( /Kit )", sendername);
SendClientMessageToAll(green, string);
SendClientMessage(playerid, green, "Kit adiquirido. Mate todos!");
}
else
{
SendClientMessage(playerid, red, "Vocк nгo tem dinheiro suficint para comprar este Kit!");
return 1;
}
}
case 3:
{
if(GetPlayerMoney(playerid) >=4000)
{
GivePlayerWeapon(playerid,27, 50);
GivePlayerWeapon(playerid,32, 500);
GivePlayerWeapon(playerid,24, 50);
GivePlayerWeapon(playerid,31, 200);
GivePlayerMoney(playerid, -4000);
GetPlayerName(playerid, sendername, sizeof(sendername));
format(string, sizeof(string), "%s Comprou um Kit de Armas!( /Kit )", sendername);
SendClientMessageToAll(green, string);
SendClientMessage(playerid, green, "Kit adiquirido. Mate todos!");
}
else
{
SendClientMessage(playerid, red, "Vocк nгo tem dinheiro suficint para comprar este Kit!");
return 1;
}
}
case 4:
{
if(GetPlayerMoney(playerid) >=5500)
{
GivePlayerWeapon(playerid,26, 200);
GivePlayerWeapon(playerid,32, 500);
GivePlayerWeapon(playerid,24, 50);
GivePlayerWeapon(playerid,31, 200);
GivePlayerMoney(playerid, -5500);
GetPlayerName(playerid, sendername, sizeof(sendername));
format(string, sizeof(string), "%s Comprou um Kit de Armas!( /Kit )", sendername);
SendClientMessageToAll(green, string);
SendClientMessage(playerid, green, "Kit adiquirido. Mate todos!");
}
else
{
SendClientMessage(playerid, red, "Vocк nгo tem dinheiro suficint para comprar este Kit!");
return 1;
}
}
case 5:
{
if(GetPlayerMoney(playerid) >=27000)
{
GivePlayerWeapon(playerid, 9, 9999);
GivePlayerWeapon(playerid, 39, 47);
GivePlayerWeapon(playerid, 40, 9999);
GivePlayerWeapon(playerid, 24, 100);
GivePlayerWeapon(playerid, 25, 370);
GivePlayerWeapon(playerid, 31, 400);
GivePlayerWeapon(playerid, 34, 70);
GivePlayerMoney(playerid, -27000);
GetPlayerName(playerid, sendername, sizeof(sendername));
format(string, sizeof(string), "%s Comprou um Kit de Armas!( /Kit )", sendername);
SendClientMessageToAll(green, string);
SendClientMessage(playerid, green, "Kit adiquirido. Mate todos!");
}
else
{
SendClientMessage(playerid, red, "Vocк nгo tem dinheiro suficint para comprar este Kit!");
return 1;
}
}
}
}