31.05.2012, 15:02
Hi all , The Title Explain its self
He is the Code:
He is the Code:
pawn Код:
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
if(dialogid == 0)
{
if(response)
{
if(listitem == 0)
{
if(GetPlayerMoney(playerid) <= 4000) return SendClientMessage(playerid,-1,"No Enough Money");
GivePlayerWeapon(playerid,34,1000);
GivePlayerMoney(playerid,GetPlayerMoney(playerid) -4000);
}
if(listitem == 1)
{
if(GetPlayerMoney(playerid) <= 20000) return SendClientMessage(playerid,-1,"No Enough Money");
GivePlayerWeapon(playerid,16,10);
GivePlayerMoney(playerid,GetPlayerMoney(playerid) -7000);
}
if(listitem == 2)
{
if(GetPlayerMoney(playerid) <= 5000) return SendClientMessage(playerid,-1,"No Enough Money");
GivePlayerWeapon(playerid,24,400);
GivePlayerMoney(playerid,GetPlayerMoney(playerid) -5000);
}
if(listitem == 3)
{
if(GetPlayerMoney(playerid) <= 8000) return SendClientMessage(playerid,-1,"No Enough Money");
GivePlayerWeapon(playerid,26,500);
GivePlayerMoney(playerid,GetPlayerMoney(playerid) -8000);
}
if(listitem == 4)
{
if(GetPlayerMoney(playerid) <= 10000) return SendClientMessage(playerid,-1,"No Enough Money");
GivePlayerWeapon(playerid,27,500);
GivePlayerMoney(playerid,GetPlayerMoney(playerid) -10000);
}
if(listitem == 5)
{
if(GetPlayerMoney(playerid) <= 11000) return SendClientMessage(playerid,-1,"No Enough Money");
GivePlayerWeapon(playerid,28,600);
GivePlayerMoney(playerid,GetPlayerMoney(playerid) -11000);
}
if(listitem == 6)
{
if(GetPlayerMoney(playerid) <= 10000) return SendClientMessage(playerid,-1,"No Enough Money");
GivePlayerWeapon(playerid,30,700);
GivePlayerMoney(playerid,GetPlayerMoney(playerid) -10000);
}
if(listitem == 7)
{
if(GetPlayerMoney(playerid) <= 19000) return SendClientMessage(playerid,-1,"No Enough Money");
GivePlayerWeapon(playerid,38,200);
GivePlayerMoney(playerid,GetPlayerMoney(playerid) -19000);
}
}
}
return 1;
}